// Runtime quoting is off now...
set_magic_quotes_runtime(false);
-// Unregister all global variables because of vultures and surpress failed attemps
-@import_request_variables('');
-
-// Error reporting level
-@error_reporting(E_ALL | E_STRICT);
-
// Check if important arrays are found and define them if missing
if (!isset($_SERVER))
{
global $_POST;
$_POST = $GLOBALS['_POST'];
}
-if (!isset($_SESSION))
+if (!isset($_COOKIE))
{
- global $_SESSION;
- $_SESSION = $GLOBALS['_COOKIE'];
+ global $_COOKIE;
+ $_COOKIE = $GLOBALS['_COOKIE'];
}
// Include IP-Filter here
global $SEC_CHARS, $URL_CHARS;
$SEC_CHARS = array(
// The chars we are looking for...
- 'from' => array("{", "}", "/", ".", "'", "$", "(", ")", "{--", "--}", "%", ";", "[", "]", ":", "--"),
+ 'from' => array("{", "}", "/", ".", "'", "$", "(", ")", '{--', '--}', "%", ";", "[", "]", ":", "--"),
// ... and we will replace to.
'to' => array(
"{OPEN_ANCHOR2}",
"{CLOSE_ANCHOR2}",
"{SLASH}",
"{DOT}",
- "{QUOT}",
+ '{QUOT}',
"{DOLLAR}",
"{OPEN_ANCHOR}",
"{CLOSE_ANCHOR}",
}
// ... and finally cookies
- foreach ($_SESSION as $seckey=>$secvalue)
+ foreach ($_COOKIE as $seckey=>$secvalue)
{
if (is_array($secvalue))
{
// Throw arrays away...
- unset($_SESSION[$seckey]);
+ unset($_COOKIE[$seckey]);
}
else
{
foreach ($SEC_CHARS['from'] as $key=>$char)
{
// Pass all through
- $_SESSION[$seckey] = str_replace($char , $SEC_CHARS['to'][$key], $_SESSION[$seckey]);
+ $_COOKIE[$seckey] = str_replace($char , $SEC_CHARS['to'][$key], $_COOKIE[$seckey]);
}
// Strip all other out
- $_SESSION[$seckey] = strip_tags($_SESSION[$seckey]);
+ $_COOKIE[$seckey] = strip_tags($_COOKIE[$seckey]);
}
}
}