Файл: system.php
Строк: 47
<?php
//Error_Reporting(0);
if ($ver=='wml') {$herror = '<wml><card id="error" title="ERROR!"><p align="center">Сработала система безопасности или введенные вами данные неверны!</p></card></wml>';
}else{$herror = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><link rel="stylesheet" type="text/css" href="css/css.css"/>
<title>ERROR!</title><div align="center">Сработала система безопасности или введенные вами данные неверны!</div></body></html>';}
if (isset($id) and !ctype_digit($id)) { die($herror); }
if (isset($ci) and !ctype_digit($ci)) { die($herror); }
if (isset($usid) and !ctype_digit($usid)) { die($herror); }
if (isset($nk) and !ctype_digit($nk)) { die($herror); }
if (isset($ps) and !ctype_alnum($ps)) { die($herror); }
if (isset($rm) and !ctype_digit($rm)) { die($herror); }
if (isset($num) and !ctype_digit($num)) { die($herror); }
if (isset($mid) and !ctype_digit($mid)) { die($herror); }
if (isset($posts) and !ctype_digit($posts)) { die($herror); }
if (isset($klu4) and !ctype_digit($klu4)) { die($herror); }
if (isset($pwd) and !ctype_alnum($pwd)) { die($herror); }
if (isset($pass) and !ctype_alnum($pass)) { die($herror); }
if (isset($id) and $id!= 0){$id = intval($id);}
if (isset($ci) and $ci!= 0){$ci = intval($ci);}
if (isset($uid) and $uid!= 0){$uid = intval($uid);}
if (isset($level) and $level!= 0){$level = intval($level);}
if (isset($posts) and $posts!= 0){$posts = intval($posts);}
if (isset($gposts) and $gposts!= 0){$gposts = intval($gposts);}
$HTTP_USER_AGENT = htmlentities(mysql_escape_string($HTTP_USER_AGENT));
$HTTP_USER_AGENT = str_replace("&#", "", $HTTP_USER_AGENT);
$HTTP_USER_AGENT = str_replace("%", "", $HTTP_USER_AGENT);
$REMOTE_ADDR = htmlentities(mysql_escape_string($REMOTE_ADDR));
?>