1234567891011121314151617181920212223242526272829 |
- <?php
- // +--------------------------------------------------------------------------
- // | Senthot [ DEVELOPED BY ME ]
- // +--------------------------------------------------------------------------
- // | Copyright (c) 2005-2013 http://www.senthot.com All rights reserved.
- // | License ( http://www.apache.org/licenses/LICENSE-2.0 )
- // | Author: ms134n ( [email protected] )
- // +--------------------------------------------------------------------------
- // Senthot Import documents
- //Recording start running time
- $GLOBALS['_beginTime'] = microtime(TRUE);
- // Record the initial memory use
- define('MEMORY_LIMIT_ON',function_exists('memory_get_usage'));
- if(MEMORY_LIMIT_ON) $GLOBALS['_startUseMems'] = memory_get_usage();
- defined('APP_PATH') or define('APP_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
- defined('RUNTIME_PATH') or define('RUNTIME_PATH',APP_PATH.'Runtime/');
- defined('APP_DEBUG') or define('APP_DEBUG',false); // Whether Debug Mode
- $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)) {
- // Deployment Mode to run the cache directly load
- require RUNTIME_FILE;
- }else{
- // System directory definition
- defined('SEN_PATH') or define('SEN_PATH', dirname(__FILE__).'/');
- // Loaded runtime files
- require SEN_PATH.'Common/runtime.php';
- }
|