diff --git a/upload/source/module/misc/misc_initsys.php b/upload/source/module/misc/misc_initsys.php index 3c7a296..a8436b7 100644 --- a/upload/source/module/misc/misc_initsys.php +++ b/upload/source/module/misc/misc_initsys.php @@ -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'); }