<?php
#-----------------------------------------------------#
# ********* WAP-NEWS ********* #
# Made by : X-ray #
# E-mail : [email protected] #
# Site : http://www.zugdidi.us #
# WAP-Site : http://geowap.mobi #
# ICQ : 49-47-485-47 #
# Вы не имеете право вносить изменения в код скрипта #
# ЗАПРЕЩЕННО ПЕРЕПРОДАВАТЬ ДАННЫЙ СКРИПТ!!! #
#-----------------------------------------------------#
#------- НИЖЕ НИЧЕГО НЕ РЕДАКТИРОВАТЬ!!! -------#
function check_email($value) {
return eregi("^([0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-wyz][a-z](fo|g|l|m|mes|o|op|pa|ro|seum|t|u|v|z)?)$", $value);
}
function utf_to_win($str){
$str=strtr($str,array("Р°"=>"а","Р±"=>"б","РІ"=>"в","Рі"=>"г","Рґ"=>"д","Рµ"=>"е","С‘"=>"ё","Р¶"=>"ж","Р·"=>"з","Рё"=>"и","Р№"=>"й","Рє"=>"к","Р»"=>"л","Рј"=>"м","РЅ"=>"н","Рѕ"=>"о","Рї"=>"п","СЂ"=>"р","СЃ"=>"с","С‚"=>"т","Сѓ"=>"у","С„"=>"ф","С…"=>"х","С†"=>"ц","С‡"=>"ч","С€"=>"ш","С‰"=>"щ","СЉ"=>"ъ","С‹"=>"ы","СЊ"=>"ь","СЌ"=>"э","СЋ"=>"ю","СЏ"=>"я",
"Рђ"=>"А","Р‘"=>"Б","Р’"=>"В","Р“"=>"Г","Р”"=>"Д","Р•"=>"Е","РЃ"=>"Ё","Р–"=>"Ж","Р—"=>"З","Р?"=>"И","Р™"=>"Й","Рљ"=>"К","Р›"=>"Л","Рњ"=>"М","Рќ"=>"Н","Рћ"=>"О","Рџ"=>"П","Р "=>"Р","РЎ"=>"С","Рў"=>"Т","РЈ"=>"У","Р¤"=>"Ф","РҐ"=>"Х","Р¦"=>"Ц","Р§"=>"Ч","РЁ"=>"Ш","Р©"=>"Щ","РЄ"=>"Ъ","Р«"=>"Ы","Р¬"=>"Ь","Р"=>"Э","Р®"=>"Ю","РЇ"=>"Я"));
return $str;
}
function check($message){
$message=str_replace("|","I",$message);
$message=str_replace("||","I",$message);
$message=htmlspecialchars($message);
$message=str_replace("'","'",$message);
$message=str_replace("\"",""",$message);
$message=str_replace("/\\\$/","$",$message);
$message=str_replace("$","$",$message);
$message=str_replace("\\","\", $message);
$message=str_replace("@","@", $message);
$message=str_replace("`","", $message);
$message=str_replace("^","", $message);
$message=str_replace("%","%", $message);
$message=str_replace(":",":",$message);
$message=preg_replace("/:/",":",$message,2);
$message=stripslashes(trim($message));
return $message;}
function check_admin($message){
$message=str_replace("\r", "", $message);
$message=str_replace("\n", "<br/>", $message);
$message=htmlspecialchars($message);
$message=str_replace("'",""",$message);
$message=str_replace('"',""",$message);
$message=stripslashes(trim($message));
$message=str_replace('<br/>',"<br/>",$message);
$message=str_replace('&quot;',""",$message);
return $message;}
function antimat($string){
$string=preg_replace('/(с|c|С|C)(у|y|Y|У)(ч|4|Ч)?(к|k|K|К|ча|чa|4a|4а)?(а|a)/i',"[Цензура]",$string);
$string=preg_replace('/(Рї|n|Рџ)(Рё|u|Р?)(Рґ|g|Р”)(Рѕ|o|0|a|Р°|e|Рµ)?(СЂ|p)(Р°|a)?(Р·|c|СЃ)?/i',"[Цензура]",$string);
$string=preg_replace('/(С…|x|X|РҐ)(Сѓ|РЈ|Y|y)(Р№|Рё|Р™|Р?|u|Рµ|e|Р•|РЃ|С‘)(b|РІ)?(o|0|Рѕ|a|Р°)?/i',"[Цензура]",$string);
$string=preg_replace('/(Рї|n|Рџ)(Рё|u|Р?)(Р·|3|Р—)(Рґ|g|Р”)?/i',"[Цензура]",$string);
$string=preg_replace('/(е|e|E|Е)(б|6|Б)(а|a|А|A)(т|л)?/i',"[Цензура]",$string);
$string=preg_replace('/(б|6|Б)(л|Л)(я|Я)/i',"[Цензура]",$string);
return $string;}
if ($_SERVER['HTTP_X_OPERAMINI_PHONE_UA']) $browsus = htmlspecialchars(stripslashes($_SERVER['HTTP_X_OPERAMINI_PHONE_UA']));
else $browsus=htmlspecialchars(stripslashes($_SERVER['HTTP_USER_AGENT']));
$brow=strtok($browsus,'(');
$brow=strtok($brow,' ');
$brow=substr($brow,0,22);
$brow=str_replace("http://","", $brow);
if(empty($brow)){$brow='Неизвестный';}
if ($_SERVER['HTTP_X_FORWARDED_FOR']) $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
else if($_SERVER['HTTP_CLIENT_IP']) $ip = $_SERVER['HTTP_CLIENT_IP'];
else if($_SERVER['REMOTE_ADDR']) $ip = $_SERVER['REMOTE_ADDR'];
else {$ip = 'not detected';}
$ip = preg_replace("/[^0-9.]/", "", $ip);
$ip=htmlspecialchars(stripslashes($ip));
?>