Current Path : /var/www/html/clients/pv.e-nk.ru/ |
Current File : /var/www/html/clients/pv.e-nk.ru/func.php |
<? function strip_data($text)//Убирает зловредные символы { $quotes = array ( "*", "%", "<", ">", "?", "!","'","`" ); $text = trim( strip_tags( $text ) ); $text = str_replace( $quotes, '', $text ); $text = htmlspecialchars($text); return $text; } function access_test($num,$access){// Возвращает TRUE если num содержиться в access, иначе FALSE $boo = false; $access = explode(",", $access); foreach ($access as $val){ if($num == $val){ $boo = true; } } return $boo; } ?>