点此安装'; exit(); } $DB = new \lib\PdoHelper($dbconfig); if($DB->query("select * from pre_config where 1")==FALSE)//检测安装2 { header('Content-type:text/html;charset=utf-8'); echo '你还没安装!点此安装'; exit(); } $CACHE=new \lib\Cache(); $conf=$CACHE->pre_fetch(); define('SYS_KEY', $conf['syskey']); if(!$conf['localurl'])$conf['localurl'] = $siteurl; $password_hash='!@#%!s!0'; if ($conf['version'] < DB_VERSION) { if (!$install) { header('Content-type:text/html;charset=utf-8'); echo '请先完成网站升级!点此升级'; exit; } } include_once(SYSTEM_ROOT."functions.php"); include_once(SYSTEM_ROOT."member.php"); require_once SYSTEM_ROOT."vendor/autoload.php"; if (!file_exists(ROOT.'install/install.lock') && file_exists(ROOT.'install/index.php')) { sysmsg('

检测到无 install.lock 文件


为什么必须建立 install.lock 文件?

它是安装保护文件,如果检测不到它,就会认为站点还没安装,此时任何人都可以安装/重装你的网站。

');exit; } if($conf['cdnpublic']==1){ $cdnpublic = '//lib.baomitu.com/'; }elseif($conf['cdnpublic']==2){ $cdnpublic = 'https://cdn.bootcdn.net/ajax/libs/'; }elseif($conf['cdnpublic']==4){ $cdnpublic = '//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/'; }else{ $cdnpublic = '//cdn.staticfile.org/'; } ?>