Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/utility/http_query.php
Show First 20 Lines • Show All 374 Lines • ▼ Show 20 Line(s) | |||||
trigger_error('Non mod-rewrite url "<strong>' . $_SERVER['REQUEST_URI'] . '</strong>" used', E_USER_NOTICE); | trigger_error('Non mod-rewrite url "<strong>' . $_SERVER['REQUEST_URI'] . '</strong>" used', E_USER_NOTICE); | ||||
$this->Application->Redirect('', $url_params); | $this->Application->Redirect('', $url_params); | ||||
} | } | ||||
} | } | ||||
else { | else { | ||||
$this->Application->VerifyThemeId(); | $this->Application->VerifyThemeId(); | ||||
$this->Application->VerifyLanguageId(); | $this->Application->VerifyLanguageId(); | ||||
} | } | ||||
$virtual_template = $this->Application->getVirtualPageTemplate($this->Get('m_cat_id')); | |||||
if ( ($virtual_template !== false) && preg_match('/external:(.*)/', $virtual_template) ) { | |||||
trigger_error('URL of page, that has "External URL" set was accessed: "<strong>' . $_SERVER['REQUEST_URI'] . '</strong>"', E_USER_NOTICE); | |||||
$this->Application->Redirect($virtual_template); | |||||
} | |||||
} | } | ||||
/** | /** | ||||
* Checks, that non-rewrite url was visited and it's automatic rewrite is required | * Checks, that non-rewrite url was visited and it's automatic rewrite is required | ||||
* | * | ||||
* @return bool | * @return bool | ||||
*/ | */ | ||||
function rewriteRedirectRequired() | function rewriteRedirectRequired() | ||||
▲ Show 20 Lines • Show All 439 Lines • Show Last 20 Lines |