| | |
| | | <?php |
| | | error_reporting(0); |
| | | |
| | | define('APP_PATH',dirname(__FILE__).'/'); |
| | | define('CONFIG_PATH',APP_PATH.'config/'); |
| | | define('DATA_PATH',APP_PATH.'data/'); |
| | | define('LIB_PATH',APP_PATH.'app/include/'); |
| | | define('TPL_PATH',APP_PATH.'app/template/'); |
| | | define('MODEL_PATH',APP_PATH.'model/'); |
| | | define('PLUS_PATH',DATA_PATH.'plus/'); |
| | | define('ALL_PS','conn'); |
| | | define('APP_PATH', dirname(__FILE__) . '/'); |
| | | const CONFIG_PATH = APP_PATH . 'config/'; |
| | | const DATA_PATH = APP_PATH . 'data/'; |
| | | const LIB_PATH = APP_PATH . 'app/include/'; |
| | | const TPL_PATH = APP_PATH . 'app/template/'; |
| | | const MODEL_PATH = APP_PATH . 'model/'; |
| | | const PLUS_PATH = DATA_PATH . 'plus/'; |
| | | const ALL_PS = 'conn'; |
| | | |
| | | ini_set('session.gc_maxlifetime',9000); |
| | | ini_set('session.gc_probability',10); |
| | | ini_set('session.gc_divisor',100); |
| | | ini_set('session.gc_maxlifetime', 9000); |
| | | ini_set('session.gc_probability', 10); |
| | | ini_set('session.gc_divisor', 100); |
| | | |
| | | include(CONFIG_PATH.'db.config.php'); |
| | | include_once(PLUS_PATH.'config.php'); |
| | | include(CONFIG_PATH.'db.safety.php'); |
| | | include(CONFIG_PATH . 'db.config.php');//$db_config |
| | | include_once(PLUS_PATH . 'config.php'); |
| | | include(CONFIG_PATH . 'db.safety.php'); |
| | | |
| | | $starttime=time(); |
| | | $starttime = time(); |
| | | define('DEF_DATA', $db_config['def']); |
| | | unset ($_ENV, $HTTP_ENV_VARS, $_REQUEST, $HTTP_POST_VARS, $HTTP_GET_VARS); |
| | | $_COOKIE = (is_array($_COOKIE)) ? $_COOKIE : $HTTP_COOKIE_VARS; |
| | |
| | | date_default_timezone_set($db_config['timezone']); |
| | | if (substr(PHP_VERSION, 0, 1) == '7') { |
| | | |
| | | include_once(LIB_PATH."mysqli.class.php"); |
| | | include_once(LIB_PATH . "mysqli.class.php"); |
| | | |
| | | }else{ |
| | | } else { |
| | | |
| | | include_once(LIB_PATH."mysql.class.php"); |
| | | include_once(LIB_PATH . "mysql.class.php"); |
| | | |
| | | } |
| | | |
| | | include_once(LIB_PATH.'libs/Smarty.class.php'); |
| | | include_once(LIB_PATH . 'libs/Smarty.class.php'); |
| | | $phpyun = new Smarty; |
| | | $phpyun->debugging = false; |
| | | $phpyun->caching = false; |
| | | $phpyun->force_cache = false; |
| | | $phpyun->template_dir = TPL_PATH; |
| | | $phpyun->compile_dir = DATA_PATH.'/templates_c/'; |
| | | $phpyun->cache_dir = DATA_PATH.'/cache/'; |
| | | $phpyun->debugging = FALSE; |
| | | $phpyun->caching = FALSE; |
| | | $phpyun->force_cache = FALSE; |
| | | $phpyun->template_dir = TPL_PATH; |
| | | $phpyun->compile_dir = DATA_PATH . '/templates_c/'; |
| | | $phpyun->cache_dir = DATA_PATH . '/cache/'; |
| | | $phpyun->left_delimiter = '{yun:}'; |
| | | $phpyun->right_delimiter= '{/yun}'; |
| | | $phpyun->right_delimiter = '{/yun}'; |
| | | $phpyun->get_install(); |
| | | |
| | | if(is_file(LIB_PATH.'webscan360/360safe/360webscan.php')){ |
| | | require_once(LIB_PATH.'webscan360/360safe/360webscan.php'); |
| | | if (is_file(LIB_PATH . 'webscan360/360safe/360webscan.php')) { |
| | | require_once(LIB_PATH . 'webscan360/360safe/360webscan.php'); |
| | | } |
| | | |
| | | $db = new mysql($db_config['dbhost'], $db_config['dbuser'], $db_config['dbpass'], $db_config['dbname'], ALL_PS, $db_config['charset'],$db_config['def']); |
| | | $db = new mysql($db_config['dbhost'], $db_config['dbuser'], $db_config['dbpass'], $db_config['dbname'], ALL_PS, $db_config['charset'], $db_config['def']); |
| | | |
| | | include_once(LIB_PATH.'public.function.php'); |
| | | include_once(LIB_PATH.'public.domain.php'); |
| | | include(LIB_PATH.'public.url.php'); |
| | | |
| | | include(PLUS_PATH.'seo.cache.php'); |
| | | |
| | | ?> |
| | | include_once(LIB_PATH . 'public.function.php'); |
| | | include_once(LIB_PATH . 'public.domain.php'); |
| | | include(LIB_PATH . 'public.url.php'); |
| | | include(PLUS_PATH . 'seo.cache.php'); |