/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); // permission WCF::getUser()->checkPermission('admin.system.adminTools.canView'); if (isset($_REQUEST['cacheDel'])) { $this->cacheDel = $_REQUEST['cacheDel']; } if (isset($_REQUEST['cacheTpl'])) { $this->cacheTpl = $_REQUEST['cacheTpl']; } if (isset($_REQUEST['cacheLang'])) { $this->cacheLang = $_REQUEST['cacheLang']; } if (isset($_REQUEST['cacheOpt'])) { $this->cacheOpt = $_REQUEST['cacheOpt']; } if (isset($_REQUEST['cacheRSS'])) { $this->cacheRSS = $_REQUEST['cacheRSS']; } $this->spiderCur['spiderIdentifier'] = empty($_POST['spiderIdentifier']) ? '' : $_POST['spiderIdentifier']; $this->spiderCur['spiderName'] = empty($_POST['spiderName']) ? '' : $_POST['spiderName']; $this->spiderCur['spiderUrl'] = empty($_POST['spiderUrl']) ? '' : $_POST['spiderUrl']; $this->spiderID = empty($_POST['spiderID']) ? 0 : $_POST['spiderID']; // execute if (!empty($_REQUEST['cRun'])) { if ($_REQUEST['cRun'] == 'cache' && (!empty($this->cacheDel) || !empty($this->cacheTpl) || !empty($this->cacheLang) || !empty($this->cacheOpt) || !empty($this->cacheRSS))) { $ret = AdminTools::cacheDel($this->cacheDel, $this->cacheTpl, $this->cacheLang, $this->cacheOpt, $this->cacheRSS); $cntCache = $cntTpl = $cntLang = $cntOpt = $cntRSS = 0; if (isset($ret['cacheDel'])) { $cntCache = $ret['cacheDel']; } if (isset($ret['cacheTpl'])) { $cntTpl = $ret['cacheTpl']; } if (isset($ret['cacheLang'])) { $cntLang = $ret['cacheLang']; } if (isset($ret['cacheOpt'])) { $cntOpt = $ret['cacheOpt']; } if (isset($ret['cacheRSS'])) { $cntRSS = $ret['cacheRSS']; } if (empty($cntCache) && empty($cntTpl) && empty($cntLang) && empty($cntOpt) && empty($cntRSS)) { $this->errMsg = WCF::getLanguage()->get('wcf.acp.adminTools.error.cache'); } else { $this->sucMsg = WCF::getLanguage()->get('wcf.acp.adminTools.success.cache', array('$cacheDel' => $cntCache, '$cacheTpl' => $cntTpl, '$cacheLang' => $cntLang, '$cacheOpt' => $cntOpt, '$cacheRSS' => $cntRSS)); } } } }