Skip to main content
Topic: setOldURI() (Read 1334 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

setOldURI()

This should be its own function: setOldURI() and it should have a hook for $invalid_old_url "integrate_old_uri"

Code: [Select]
	// Remember this URL in case someone doesn't like sending HTTP_REFERER.
$invalid_old_url = array(
'action=dlattach',
'action=jsoption',
'action=viewadminfile',
';xml',
';api',
);
$make_old = true;
foreach ($invalid_old_url as $url)
{
if (strpos($_SERVER['REQUEST_URL'], $url) !== false)
{
$make_old = false;
break;
}
}
if ($make_old === true)
$_SESSION['old_url'] = $_SERVER['REQUEST_URL'];