12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- use KIF\String\String;
- if (PHP_VERSION < '5.3.0') {
- echo 'PHP VERSION MUST > 5.3.0';
- exit;
- }
- if (!defined('DS')) {
- define('DS', DIRECTORY_SEPARATOR);
- }
- if (!defined('KIF_PATH')) {
- define('KIF_PATH', dirname(__FILE__));
- }
- if (!defined('KIF_DEBUG_PASS')) {
- define('KIF_DEBUG_PASS', '@kimiss');
- }
- if (!defined('KIF_ERROR_LEVEL')) {
- define('KIF_ERROR_LEVEL', E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_WARNING);
- }
- if (!defined('KIF_MASTER_DB_HAS_WRITE_COOKIE_KEY')) {
- define('KIF_MASTER_DB_HAS_WRITE_COOKIE_KEY', '17439a6561e7666b');
- }
- require_once KIF_PATH . DS . 'Core/Core.class.php';
- spl_autoload_register(array('KIF\Core\Core', 'autoload'));
- require_once KIF_PATH . DS . 'global_constants.php';
- ini_set('display_errors', false);
- date_default_timezone_set('PRC');
- if (get_magic_quotes_runtime()) {
- set_magic_quotes_runtime(0);
- }
- if (get_magic_quotes_gpc()) {
- foreach (array('_GET', '_POST', '_FILES', '_COOKIE', '_REQUEST') as $_v) {
- $$_v = String::stripslashes($$_v);
- }
- }
- if (isset($_REQUEST['kif_debug']) && $_REQUEST['kif_debug'] == KIF_DEBUG_PASS) {
-
- ini_set('display_errors', true);
-
- error_reporting(KIF_ERROR_LEVEL);
-
- ob_start();
-
- KIF\Debug\Debug::start();
- register_shutdown_function(array('KIF\Debug\Debug', 'show'));
- }
|