Файл: admin/config/secur.php
Строк: 8
<?
function fsafe($zs)
{
$zs = preg_replace('/select/i',"selесt",$zs);
$zs = preg_replace('/delete/i',"delеtе",$zs);
$zs = preg_replace('/update/i',"uрdаtе",$zs);
$zs = preg_replace('/where/i',"whеrе",$zs);
$zs = preg_replace('/hex/i',"hех",$zs);
$zs = preg_replace('/0x/i',"",$zs);
$zs = preg_replace('/load_file/i',"lоаd_filе",$zs);
return $zs;
}
///GLobal
$_POST=fsafe($_POST);
$_GET=fsafe($_GET);
$_SERVER=fsafe($_SERVER);
$_REQUEST=fsafe($_REQUEST);
$_COOKIE=fsafe($_COOKIE);
///
function uc($zs,$cut=700,$op=1)
{
$zs = trim($zs);
$zs = str_replace("'","",$zs);
$zs = str_replace('`',"",$zs);
$zs = str_replace('"',"",$zs);
$zs = str_replace('#',"№",$zs);
$zs = str_replace('^',"",$zs);
$zs = preg_replace('/n/i',"",$zs);
$zs = preg_replace('/r/i',"",$zs);
$zs = preg_replace('/0x/i',"",$zs);
$zs = str_replace('~'," ",$zs);
$zs = str_replace("|","/",$zs);
$zs = str_replace('\',"/",$zs);
$zs = fsafe($zs);
$zs=substr($zs,0,$cut);
$zs = htmlspecialchars(stripslashes($zs));
return $zs;
}
?>