修复 初始化

This commit is contained in:
Comsenz 2017-08-01 09:35:19 +08:00
parent 77d6573f63
commit ca464ed59a
1 changed files with 5 additions and 2 deletions

View File

@ -11,10 +11,13 @@ if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
if(file_exists(DISCUZ_ROOT.'./data/install.lock')) {
if(file_exists(DISCUZ_ROOT.'./data/install.lock') || file_exists(DISCUZ_ROOT.'./data/update.lock')) {
exit('Access Denied');
}
@touch(DISCUZ_ROOT.'./data/install.lock');
@touch(DISCUZ_ROOT.'./data/update.lock');
if(!($_G['adminid'] == 1 && $_GET['formhash'] == formhash()) && $_G['setting']) {
exit('Access Denied');
}