// ThinkPHP 鍏ュ彛鏂囦歡 // 璁板綍寮濮嬭繍琛屾椂?? $GLOBALS['_beginTime'] = microtime(TRUE); // 璁板綍鍐呭瓨鍒濆浣跨敤 define('MEMORY_LIMIT_ON',function_exists('memory_get_usage')); if(MEMORY_LIMIT_ON) $GLOBALS['_startUseMems'] = memory_get_usage(); // 緋葷粺鐩綍瀹氫箟 defined('THINK_PATH') or define('THINK_PATH', dirname(__FILE__).'/'); defined('APP_PATH') or define('APP_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/'); defined('RUNTIME_PATH') or define('RUNTIME_PATH',realpath(APP_PATH).'/Runtime/'); defined('APP_DEBUG') or define('APP_DEBUG',false); // 鏄惁璋冭瘯妯″紡 if(defined('ENGINE_NAME')) { defined('ENGINE_PATH') or define('ENGINE_PATH',THINK_PATH.'Extend/Engine/'); require ENGINE_PATH.strtolower(ENGINE_NAME).'.php'; }else{ $runtime = defined('MODE_NAME')?'~'.strtolower(MODE_NAME).'_runtime.php':'~runtime.php'; defined('RUNTIME_FILE') or define('RUNTIME_FILE',RUNTIME_PATH.$runtime); if(!APP_DEBUG && is_file(RUNTIME_FILE)) { // 閮ㄧ講妯″紡鐩存帴杞藉叆榪愯緙撳瓨 require RUNTIME_FILE; }else{ // 鍔犺澆榪愯鏃舵枃?? require THINK_PATH.'Common/runtime.php'; } } 财神爷 百家乐大转盘试玩