public function intval_allrequestsendid()
{
global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS;
if ($this->_done_intval) {
return true;
} else {
$this->_done_intval = true;
}
foreach ($_GET as $key => $val) {
if (substr($key, -2) === 'id' && !is_array($_GET[$key])) {
$newval = preg_replace('/[^0-9a-zA-Z_-]/', '', $val);
$_GET[$key] = $HTTP_GET_VARS[$key] = $newval;
if ($_REQUEST[$key] == $_GET[$key]) {
$_REQUEST[$key] = $newval;
}
}
}
foreach ($_POST as $key => $val) {
if (substr($key, -2) === 'id' && !is_array($_POST[$key])) {
$newval = preg_replace('/[^0-9a-zA-Z_-]/', '', $val);
$_POST[$key] = $HTTP_POST_VARS[$key] = $newval;
if ($_REQUEST[$key] == $_POST[$key]) {
$_REQUEST[$key] = $newval;
}
}
}
foreach ($_COOKIE as $key => $val) {
if (substr($key, -2) === 'id' && !is_array($_COOKIE[$key])) {
$newval = preg_replace('/[^0-9a-zA-Z_-]/', '', $val);
$_COOKIE[$key] = $HTTP_COOKIE_VARS[$key] = $newval;
if ($_REQUEST[$key] == $_COOKIE[$key]) {
$_REQUEST[$key] = $newval;
}
}
}
return true;