1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Upcoming single entry point support added

This commit is contained in:
secretr 2011-11-22 12:53:23 +00:00
parent 8e80b45ddb
commit 6f0009f795

View File

@ -65,15 +65,16 @@ class redirection
{
if(!$url)
{
if(in_array(e_SELF, $this->self_exceptions))
// e_SELF, e_PAGE and e_QUERY not set early enough when in e_SINGLE_ENTRY mod
if(defset('e_SELF') && in_array(e_SELF, $this->self_exceptions))
{
return;
}
if(in_array(e_PAGE, $this->page_exceptions))
if(defset('e_PAGE') && in_array(e_PAGE, $this->page_exceptions))
{
return;
}
if(in_array(e_QUERY, $this->query_exceptions))
if(in_array($_SERVER['QUERY_STRING'], $this->query_exceptions))
{
return;
}
@ -95,7 +96,7 @@ class redirection
else
{
// TODO - e107::requestUri() - sanitize, add support for various HTTP servers
$url = SITEURLBASE.strip_tags($_SERVER['REQUEST_URI']);
$url = e_REQUEST_URI;
}
return $url;
}