mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
merge with 1.5.0_english
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8287 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
commit
0943470d5f
219 changed files with 6420 additions and 8700 deletions
|
|
@ -2,7 +2,7 @@
|
|||
/**
|
||||
* @file config/config.inc.php
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief 기본적으로 사용하는 class파일의 include 및 환경 설정을 함
|
||||
* @brief set the include of the class file and other environment configurations
|
||||
**/
|
||||
|
||||
@error_reporting(E_ALL ^ E_NOTICE);
|
||||
|
|
@ -10,13 +10,13 @@
|
|||
if(!defined('__ZBXE__')) exit();
|
||||
|
||||
/**
|
||||
* @brief XE의 전체 버전 표기
|
||||
* 이 파일의 수정이 없더라도 공식 릴리즈시에 수정되어 함께 배포되어야 함
|
||||
* @brief display XE's full version
|
||||
* Even The file should be revised when releasing altough no change is made
|
||||
**/
|
||||
define('__ZBXE_VERSION__', '1.5.0');
|
||||
|
||||
/**
|
||||
* @brief zbXE가 설치된 장소의 base path를 구함
|
||||
* @brief The base path to where you installed zbXE Wanted
|
||||
**/
|
||||
define('_XE_PATH_', str_replace('config/config.inc.php', '', str_replace('\\', '/', __FILE__)));
|
||||
|
||||
|
|
@ -26,8 +26,8 @@
|
|||
ini_set('session.use_only_cookies', 0);
|
||||
|
||||
/**
|
||||
* @brief 기본 설정에 우선하는 사용자 설정 파일
|
||||
* config/config.user.inc.php 파일에 아래 내용을 저장하면 됨
|
||||
* @brief user configuration files which override the default settings
|
||||
* save the following information into config/config.user.inc.php
|
||||
* <?php
|
||||
* define('__DEBUG__', 0);
|
||||
* define('__DEBUG_OUTPUT__', 0);
|
||||
|
|
@ -45,75 +45,75 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @brief 디버깅 메시지 출력 (비트 값)
|
||||
* 0 : 디버그 메시지를 생성/ 출력하지 않음
|
||||
* 1 : debugPrint() 함수를 통한 메시지 출력
|
||||
* 2 : 소요시간, Request/Response info 출력
|
||||
* 4 : DB 쿼리 내역 출력
|
||||
* @brief output debug message(bit value)
|
||||
* 0: generate debug messages/not display
|
||||
* 1: display messages through debugPrint() function
|
||||
* 2: output execute time, Request/Response info
|
||||
* 4: output DB query history
|
||||
**/
|
||||
if(!defined('__DEBUG__')) define('__DEBUG__', 0);
|
||||
|
||||
/**
|
||||
* @brief 디버그 메세지의 출력 장소
|
||||
* 0 : files/_debug_message.php 에 연결하여 출력
|
||||
* 1 : HTML 최하단에 주석으로 출력 (Response Method가 HTML 일 때)
|
||||
* 2 : Firebug 콘솔에 출력 (PHP 4 & 5. Firebug/FirePHP 플러그인 필요)
|
||||
* @brief output location of debug message
|
||||
* 0: connect to the files/_debug_message.php and output
|
||||
* 1: HTML output as a comment on the bottom (when response method is the HTML)
|
||||
* 2: Firebug console output (PHP 4 & 5. Firebug/FirePHP plug-in required)
|
||||
**/
|
||||
if(!defined('__DEBUG_OUTPUT__')) define('__DEBUG_OUTPUT__', 0);
|
||||
|
||||
/**
|
||||
* @brief FirePHP 콘솔 및 브라우저 주석 출력 보안
|
||||
* 0 : 제한 없음 (권장하지 않음)
|
||||
* 1 : 지정한 IP 주소에만 허용
|
||||
* @brief output comments of the firePHP console and browser
|
||||
* 0: No limit (not recommended)
|
||||
* 1: Allow only specified IP addresses
|
||||
**/
|
||||
if(!defined('__DEBUG_PROTECT__')) define('__DEBUG_PROTECT__', 1);
|
||||
if(!defined('__DEBUG_PROTECT_IP__')) define('__DEBUG_PROTECT_IP__', '127.0.0.1');
|
||||
|
||||
/**
|
||||
* @brief DB 오류 메세지 출력 정의
|
||||
* 0 : 출력하지 않음
|
||||
* 1 : files/_debug_db_query.php 에 연결하여 출력
|
||||
* @brief DB error message definition
|
||||
* 0: No output
|
||||
* 1: files/_debug_db_query.php connected to the output
|
||||
**/
|
||||
if(!defined('__DEBUG_DB_OUTPUT__')) define('__DEBUG_DB_OUTPUT__', 0);
|
||||
|
||||
/**
|
||||
* @brief DB 쿼리중 정해진 시간을 넘기는 쿼리의 로그 남김
|
||||
* 0 : 로그를 남기지 않음
|
||||
* 0 이상 : 단위를 초로 하여 지정된 초 이상의 실행시간이 걸린 쿼리를 로그로 남김
|
||||
* 로그파일은 ./files/_db_slow_query.php 파일로 저장됨
|
||||
* @brief Query log for only timeout query among DB queries
|
||||
* 0: Do not leave a log
|
||||
* = 0: leave a log when the slow query takes over specified seconds
|
||||
* Log file is saved as ./files/_db_slow_query.php file
|
||||
**/
|
||||
if(!defined('__LOG_SLOW_QUERY__')) define('__LOG_SLOW_QUERY__', 0);
|
||||
|
||||
/**
|
||||
* @brief DB 쿼리 정보를 남김
|
||||
* 0 : 쿼리에 정보를 추가하지 않음
|
||||
* 1 : XML Query ID를 쿼리 주석으로 남김
|
||||
* @brief Leave DB query information
|
||||
* 0: Do not add information to the query
|
||||
* 1: Comment the XML Query ID
|
||||
**/
|
||||
if(!defined('__DEBUG_QUERY__')) define('__DEBUG_QUERY__', 0);
|
||||
|
||||
/**
|
||||
* @brief ob_gzhandler를 이용한 압축 기능을 강제로 사용하거나 끄는 옵션
|
||||
* 0 : 사용하지 않음
|
||||
* 1 : 사용함
|
||||
* 대부분의 서버에서는 문제가 없는데 특정 서버군에서 압축전송시 IE에서 오동작을 일으키는경우가 있음
|
||||
* @brief option to enable/disable a compression feature using ob_gzhandler
|
||||
* 0: Not used
|
||||
* 1: Enabled
|
||||
* Only particular servers may have a problem in IE browser when sending a compression
|
||||
**/
|
||||
if(!defined('__OB_GZHANDLER_ENABLE__')) define('__OB_GZHANDLER_ENABLE__', 1);
|
||||
|
||||
/**
|
||||
* @brief php unit test (경로/tests/index.php) 의 실행 유무 지정
|
||||
* 0 : 사용하지 않음
|
||||
* 1 : 사용함
|
||||
* @brief decide to use/not use the php unit test (Path/tests/index.php)
|
||||
* 0: Not used
|
||||
* 1: Enabled
|
||||
**/
|
||||
if(!defined('__ENABLE_PHPUNIT_TEST__')) define('__ENABLE_PHPUNIT_TEST__', 0);
|
||||
|
||||
/**
|
||||
* @brief __PROXY_SERVER__ 는 대상 서버를 거쳐서 외부 요청을 하도록 하는 서버의 정보를 가지고 있음
|
||||
* FileHandler::getRemoteResource 에서 이 상수를 사용함
|
||||
* @brief __PROXY_SERVER__ has server information to request to the external through the target server
|
||||
* FileHandler:: getRemoteResource uses the constant
|
||||
**/
|
||||
if(!defined('__PROXY_SERVER__')) define('__PROXY_SERVER__', null);
|
||||
|
||||
/**
|
||||
* @brief Firebug 콘솔 출력 사용시 관련 파일 require
|
||||
* @brief Require specific files when using Firebug console output
|
||||
**/
|
||||
if((__DEBUG_OUTPUT__ == 2) && version_compare(PHP_VERSION, '6.0.0') === -1) {
|
||||
require _XE_PATH_.'libs/FirePHPCore/FirePHP.class.php';
|
||||
|
|
@ -129,15 +129,15 @@
|
|||
|
||||
if(!defined('__XE_LOADED_CLASS__')){
|
||||
/**
|
||||
* @brief 간단하게 사용하기 위한 함수 정의한 파일 require
|
||||
* @brief Require a function-defined-file for simple use
|
||||
**/
|
||||
require(_XE_PATH_.'config/func.inc.php');
|
||||
|
||||
if(__DEBUG__) define('__StartTime__', getMicroTime());
|
||||
|
||||
/**
|
||||
* @brief 기본적인 class 파일 include
|
||||
* @TODO : PHP5 기반으로 바꾸게 되면 _autoload()를 이용할 수 있기에 제거 대상
|
||||
* @brief include the class files
|
||||
* @TODO : When _autoload() can be used for PHP5 based applications, it will be removed.
|
||||
**/
|
||||
if(__DEBUG__) define('__ClassLoadStartTime__', getMicroTime());
|
||||
require(_XE_PATH_.'classes/object/Object.class.php');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue