修复 初始化
This commit is contained in:
parent
77d6573f63
commit
ca464ed59a
|
@ -11,10 +11,13 @@ if(!defined('IN_DISCUZ')) {
|
|||
exit('Access Denied');
|
||||
}
|
||||
|
||||
if(file_exists(DISCUZ_ROOT.'./data/install.lock')) {
|
||||
exit('Access Denied');
|
||||
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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue