// 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'; } }
  • ¹ԭðйӾ罱 2019-05-20
  • ľ̬滮̨ Ա 2019-05-19
  • ·ܽʮꡤȫýСĻũƶ 2019-05-19
  • 2017йϷҵ 2019-05-18
  • ҡ ͽ ¶Ӫڹһɽʢ 2019-05-17
  • йʮŴδ 2019-05-16
  • г˵ɼƻDzdzմ 2019-05-15
  • ·ӭ߷ ԤƷÿ1318˴ 2019-05-15
  • Һ͵иԼᡱƷҪ 2019-05-14
  • ¸סϰƽ븸׵ļҹ 2019-05-14
  • 硤ϡף2018ĻȻŲջݳ 2019-05-13
  • սɽ¡纣IJ͹ 2019-05-13
  • 532ڣԴ ܷʳ 2019-05-12
  • ʽ÷ж½ бд󵽱 2019-05-12
  • ֱҪӿ͵ʨƵ 2019-05-11