global $_POST;
$_POST = $GLOBALS['_POST'];
}
-if (!isset($_COOKIE))
+if (!isset($_SESSION))
{
- global $_COOKIE;
- $_COOKIE = $GLOBALS['_COOKIE'];
+ global $_SESSION;
+ $_SESSION = $GLOBALS['_COOKIE'];
}
// Include IP-Filter here
}
// ... and finally cookies
- foreach ($_COOKIE as $seckey=>$secvalue)
+ foreach ($_SESSION as $seckey=>$secvalue)
{
if (is_array($secvalue))
{
// Throw arrays away...
- unset($_COOKIE[$seckey]);
+ unset($_SESSION[$seckey]);
}
else
{
foreach ($SEC_CHARS['from'] as $key=>$char)
{
// Pass all through
- $_COOKIE[$seckey] = str_replace($char , $SEC_CHARS['to'][$key], $_COOKIE[$seckey]);
+ $_SESSION[$seckey] = str_replace($char , $SEC_CHARS['to'][$key], $_SESSION[$seckey]);
}
// Strip all other out
- $_COOKIE[$seckey] = strip_tags($_COOKIE[$seckey]);
+ $_SESSION[$seckey] = strip_tags($_SESSION[$seckey]);
}
}
}