cpmsg('noaccess_isfounder', '', 'error'); } if ($operation == 'filecheck') { $step = max(1, intval($_G['gp_step'])); shownav('tools', 'nav_filecheck'); showsubmenusteps('nav_filecheck', array(array('nav_filecheck_confirm', $step == 1), array('nav_filecheck_verify', $step == 2), array('nav_filecheck_completed', $step == 3))); if ($step == 1) { cpmsg($lang[filecheck_tips_step1], 'action=checktools&operation=filecheck&step=2', 'button', '', FALSE); } elseif ($step == 2) { cpmsg(cplang('filecheck_verifying'), "action=checktools&operation=filecheck&step=3", 'loading', '', FALSE); } elseif ($step == 3) { if (!($discuzfiles = @file('./source/admincp/discuzfiles.md5'))) { cpmsg('filecheck_nofound_md5file', '', 'error'); } $md5data = array(); $cachelist = checkcachefiles('data/cache/'); checkfiles('./', '\\.php|\\.txt|\\.ico|\\.xml', 0); checkfiles('config/', '\\.php', 1, 'config_global.php,config_ucenter.php'); checkfiles('data/', '\\.xml', 0); checkfiles('data/avatar/', '\\.htm', 0); checkfiles('data/cache/', '\\.htm', 0); checkfiles('data/ipdata/', '\\.htm|\\.dat', 0); checkfiles('data/template/', '\\.htm', 0); checkfiles('data/threadcache/', '\\.htm', 0); checkfiles('template/', '\\.php|\\.htm|\\.css|\\.jpg|\\.xml'); checkfiles('api/', '\\.php|\\.htm'); checkfiles('source/', '\\.php|\\.md5|\\.htm|\\.table|\\.xml', 1, 'discuzfiles.md5'); checkfiles('static/', '\\.js'); checkfiles('static/', '\\.png|\\.css|\\.jpg'); checkfiles('uc_client/', '\\.php|\\.htm', 0); checkfiles('uc_client/data/', '\\.htm');
cpmsg('noaccess_isfounder', '', 'error'); } if ($operation == 'filecheck') { $step = max(1, intval($_GET['step'])); shownav('tools', 'nav_filecheck'); showsubmenusteps('nav_filecheck', array(array('nav_filecheck_confirm', $step == 1), array('nav_filecheck_verify', $step == 2), array('nav_filecheck_completed', $step == 3))); if ($step == 1) { cpmsg(cplang('filecheck_tips_step1'), 'action=checktools&operation=filecheck&step=2', 'button', '', FALSE); } elseif ($step == 2) { cpmsg(cplang('filecheck_verifying'), "action=checktools&operation=filecheck&step=3", 'loading', '', FALSE); } elseif ($step == 3) { if (!($discuzfiles = @file('./source/admincp/discuzfiles.md5'))) { cpmsg('filecheck_nofound_md5file', '', 'error'); } $md5data = array(); $cachelist = checkcachefiles('data/sysdata/'); checkfiles('./', '', 0); checkfiles('config/', '', 1, 'config_global.php,config_ucenter.php'); checkfiles('data/', '\\.xml', 0); checkfiles('data/', '\\.htm', 0); checkfiles('data/log/', '\\.htm', 0); checkfiles('data/plugindata/', '\\.htm', 0); checkfiles('data/download/', '\\.htm', 0); checkfiles('data/addonmd5/', '\\.htm', 0); checkfiles('data/avatar/', '\\.htm', 0); checkfiles('data/cache/', '\\.htm', 0); checkfiles('data/ipdata/', '\\.htm|\\.dat', 0); checkfiles('data/template/', '\\.htm', 0); checkfiles('data/threadcache/', '\\.htm', 0); checkfiles('template/', ''); checkfiles('api/', '');
cpmsg('noaccess_isfounder', '', 'error'); } if ($operation == 'filecheck') { $step = max(1, intval($step)); shownav('tools', 'nav_filecheck'); showsubmenusteps('nav_filecheck', array(array('nav_filecheck_confirm', $step == 1), array('nav_filecheck_verify', $step == 2), array('nav_filecheck_completed', $step == 3))); if ($step == 1) { cpmsg($lang[filecheck_tips_step1], $BASESCRIPT . '?action=checktools&operation=filecheck&step=2', 'button', '', FALSE); } elseif ($step == 2) { cpmsg(lang('filecheck_verifying'), "{$BASESCRIPT}?action=checktools&operation=filecheck&step=3", 'loading', '', FALSE); } elseif ($step == 3) { if (!($discuzfiles = @file('admin/discuzfiles.md5'))) { cpmsg('filecheck_nofound_md5file', '', 'error'); } $md5data = array(); $cachelist = checkcachefiles('forumdata/cache/'); checkfiles('./', '\\.php', 0, 'config.inc.php'); checkfiles('include/', '\\.php|\\.htm|\\.js'); checkfiles('templates/default/', '\\.php|\\.htm'); checkfiles('wap/', '\\.php'); checkfiles('archiver/', '\\.php'); checkfiles('api/', '\\.php'); checkfiles('plugins/', '\\.php'); checkfiles('admin/', '\\.php'); checkfiles('modcp/', '\\.php'); checkfiles('uc_client/', '\\.php', 0); checkfiles('uc_client/control/', '\\.php'); checkfiles('uc_client/model/', '\\.php'); checkfiles('uc_client/lib/', '\\.php'); foreach ($discuzfiles as $line) { $file = trim(substr($line, 34));