public function run() { if ($this->_templateName == "PAGE_CONTAINER" && XenForo_Application::debugMode()) { $this->_debugMode(); } return parent::run(); }
public function run() { switch ($this->_templateName) { case 'captcha_question_edit': $this->_captchaQuestionEdit(); break; } return parent::run(); }
public function run() { switch ($this->_templateName) { case 'node_list': $this->_nodeList(); break; } return parent::run(); }
public function run() { switch ($this->_templateName) { case 'object_field_edit': $this->_fieldEdit(); break; case 'tools_rebuild': $this->_toolsRebuild(); break; } return parent::run(); }
public function run() { if (self::$checkRedirectRules == $this->_templateName) { $redirectRules = XenForo_Application::getSimpleCacheData('th_redirectRules'); $user = XenForo_Visitor::getInstance()->toArray(); $template = $this->_template; $containerData = $this->_containerData; if ($redirectRules) { foreach ($redirectRules as $redirectRule) { if (XenForo_Helper_Criteria::userMatchesCriteria($redirectRule['user_criteria'], true, $user) && XenForo_Helper_Criteria::pageMatchesCriteria($redirectRule['page_criteria'], true, $template->getParams(), $containerData)) { $url = $this->_getRedirectUrl($redirectRule['reroute_domain']); if (filter_var($url, FILTER_VALIDATE_URL, FILTER_FLAG_HOST_REQUIRED) !== FALSE) { header("HTTP/1.1 301 Moved Permanently"); header('Location : ' . $url); exit; } } } } } return parent::run(); }