<?php
#-----------------------------------------------------#
# +++++++++ WaP-Koder +++++++++++ #
# Made by : BIZON #
# E-mail : [email protected] #
# Site : wap.2wa.kmx.ru #
# Запрещено вносить изменения в код скрипта #
#-----------------------------------------------------#
if (!defined('DER')) { header("Location:./index.php"); exit; }
function translit($string)
{
$string = ereg_replace("j","ж",$string);
$string = ereg_replace("J","Ж",$string);
$string = ereg_replace("yo","ё",$string);
$string = ereg_replace("Yu","Ю",$string);
$string = ereg_replace("Shc","Щ",$string);
$string = ereg_replace("shc","щ",$string);
$string = ereg_replace("yu","ю",$string);
$string = ereg_replace("sh","ш",$string);
$string = ereg_replace("ye","э",$string);
$string = ereg_replace("ya","я",$string);
$string = ereg_replace("Sh","Ш",$string);
$string = ereg_replace("Ch","Ч",$string);
$string = ereg_replace("ch","ч",$string);
$string = ereg_replace("Yo","Ё",$string);
$string = ereg_replace("Ya","Я",$string);
$string = ereg_replace("Ye","Э",$string);
$string = ereg_replace("i","и",$string);
$string = ereg_replace("'","ь",$string);
$string = ereg_replace("c","ц",$string);
$string = ereg_replace("u","у",$string);
$string = ereg_replace("k","к",$string);
$string = ereg_replace("e","е",$string);
$string = ereg_replace("n","н",$string);
$string = ereg_replace("g","г",$string);
$string = ereg_replace("z","з",$string);
$string = ereg_replace("h","х",$string);
$string = ereg_replace("''","ъ",$string);
$string = ereg_replace("f","ф",$string);
$string = ereg_replace("x","ы",$string);
$string = ereg_replace("v","в",$string);
$string = ereg_replace("a","а",$string);
$string = ereg_replace("p","п",$string);
$string = ereg_replace("r","р",$string);
$string = ereg_replace("o","о",$string);
$string = ereg_replace("l","л",$string);
$string = ereg_replace("d","д",$string);
$string = ereg_replace("s","с",$string);
$string = ereg_replace("m","м",$string);
$string = ereg_replace("t","т",$string);
$string = ereg_replace("b","б",$string);
$string = ereg_replace("Y","Й",$string);
$string = ereg_replace("C","Ц",$string);
$string = ereg_replace("U","У",$string);
$string = ereg_replace("K","К",$string);
$string = ereg_replace("E","Е",$string);
$string = ereg_replace("N","Н",$string);
$string = ereg_replace("G","Г",$string);
$string = ereg_replace("Z","З",$string);
$string = ereg_replace("H","Х",$string);
$string = ereg_replace("F","Ф",$string);
$string = ereg_replace("X","Ы",$string);
$string = ereg_replace("V","В",$string);
$string = ereg_replace("A","А",$string);
$string = ereg_replace("P","П",$string);
$string = ereg_replace("R","Р",$string);
$string = ereg_replace("O","О",$string);
$string = ereg_replace("L","Л",$string);
$string = ereg_replace("D","Д",$string);
$string = ereg_replace("y","й",$string);
$string = ereg_replace("S","С",$string);
$string = ereg_replace("M","М",$string);
$string = ereg_replace("I","И",$string);
$string = ereg_replace("T","Т",$string);
$string = ereg_replace("B","Б",$string);
return $string;
}
function nosait($string){
$string = ereg_replace("ftp://","",$string);
$string = ereg_replace("http://","",$string);
$string = ereg_replace("https://","",$string);
$string = ereg_replace(".ru","",$string);
$string = ereg_replace(".com","",$string);
$string = ereg_replace(".ua","",$string);
$string = ereg_replace(".net","",$string);
$string = ereg_replace(".su","",$string);
$string = ereg_replace(".info","",$string);
$string = ereg_replace("www.","",$string);
$string = ereg_replace("wap.","",$string);
return $string;
}
function date_fixed($timestamp,$format){
$datestamp = date($format,$timestamp);
$datestamp = str_replace("January","Январь",$datestamp);
$datestamp = str_replace("February","Февраль",$datestamp);
$datestamp = str_replace("March","Март",$datestamp);
$datestamp = str_replace("April","Апрель",$datestamp);
$datestamp = str_replace("May","Май",$datestamp);
$datestamp = str_replace("June","Июнь",$datestamp);
$datestamp = str_replace("July","Июль",$datestamp);
$datestamp = str_replace("August","Август",$datestamp);
$datestamp = str_replace("September","Сентябрь",$datestamp);
$datestamp = str_replace("October","Октябрь",$datestamp);
$datestamp = str_replace("November","Ноябрь",$datestamp);
$datestamp = str_replace("December","Декабрь",$datestamp);
return $datestamp;
}
function check($namen){
$namen = str_replace("$","",$namen);
$namen = str_replace("%","",$namen);
$namen = str_replace("@","",$namen);
$namen = str_replace("#","",$namen);
$namen = str_replace("^","",$namen);
$namen = str_replace("~",'',$namen);
$namen = str_replace('`','',$namen);
$namen = str_replace('*','',$namen);
$namen = str_replace('(','',$namen);
$namen = str_replace(')','',$namen);
$namen = str_replace('{','',$namen);
$namen = str_replace('}','',$namen);
$namen = str_replace('|','',$namen);
$namen = str_replace("\"",'',$namen);
$namen = str_replace("/",'',$namen);
$namen = str_replace(":",'',$namen);
$namen = str_replace(";",'',$namen);
$namen = str_replace('"','',$namen);
$namen = str_replace("'",'',$namen);
$namen = str_replace("<",'',$namen);
$namen = str_replace("<",'',$namen);
$namen = str_replace("+",'',$namen);
$namen = str_replace("=",'',$namen);
$namen = str_replace("_",'',$namen);
$namen = str_replace("&","",$namen);
$namen = str_replace("?",'',$namen);
return $namen;
}
if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && preg_match("|^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$|", $_SERVER['HTTP_X_FORWARDED_FOR'])){
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];}
elseif(isset($_SERVER['HTTP_CLIENT_IP']) && preg_match("|^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$|", $_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];}
else {$ip = preg_replace("|[^0-9.]|", "", $_SERVER['REMOTE_ADDR']);}
$ip=check($ip);
if (isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA'])) {$browsus = htmlspecialchars(stripslashes($_SERVER['HTTP_X_OPERAMINI_PHONE_UA']));}
elseif(isset($_SERVER['HTTP_USER_AGENT'])) {$browsus=htmlspecialchars(stripslashes($_SERVER['HTTP_USER_AGENT']));}
else {$browsus='Not_detected';}
$brow=preg_replace('|http://|i','', $browsus);
$brow=strtok($brow,'(');
$brow=strtok($brow,' ');
$brow=substr($brow,0,22);
$brow=check($brow);
function profder($derekt){
$coms=substr(sprintf('%o',fileperms($derekt)),-3);
return $coms;
}
function permissions($filez){
$filez = @decoct(@fileperms("$filez")) % 1000;
return $filez;
}
function smail($msg){
$open_dir1 = opendir ('./smail/imozii');
while ( $item1 = readdir ($open_dir1)){
if(stristr($item1, '.gif')){
$item1= str_replace('.gif', '', $item1);
$msg=str_replace(".$item1.","<img src=\"./smail/imozii/$item1.gif\" alt=\".$item1.\"/>",$msg);
}
}
closedir($open_dir1);
$open_dir2 = opendir ('./smail/nasme');
while ( $item2 = readdir ($open_dir2)){
if(stristr($item2, '.gif')){
$item2= str_replace('.gif', '', $item2);
$msg=str_replace(".$item2.","<img src=\"./smail/nasme/$item2.gif\" alt=\".$item2.\"/>",$msg);
}
}
closedir($open_dir2);
$open_dir3 = opendir ('./smail/pechal');
while ( $item3 = readdir ($open_dir3)){
if(stristr($item3, '.gif')){
$item3= str_replace('.gif', '', $item3);
$msg=str_replace(".$item3.","<img src=\"./smail/pechal/$item3.gif\" alt=\".$item3.\"/>",$msg);
}
}
closedir($open_dir3);
$open_dir4 = opendir ('./smail/person');
while ( $item4 = readdir ($open_dir4)){
if(stristr($item4, '.gif')){
$item4= str_replace('.gif', '', $item4);
$msg=str_replace(".$item4.","<img src=\"./smail/person/$item4.gif\" alt=\".$item4.\"/>",$msg);
}
}
closedir($open_dir4);
$open_dir5 = opendir ('./smail/prochie');
while ( $item5 = readdir ($open_dir5)){
if(stristr($item5, '.gif')){
$item5= str_replace('.gif', '', $item5);
$msg=str_replace(".$item5.","<img src=\"./smail/prochie/$item5.gif\" alt=\".$item5.\"/>",$msg);
}
}
closedir($open_dir5);
$open_dir6 = opendir ('./smail/ushas');
while ( $item6 = readdir ($open_dir6)){
if(stristr($item6, '.gif')){
$item6= str_replace('.gif', '', $item6);
$msg=str_replace(".$item6.","<img src=\"./smail/ushas/$item6.gif\" alt=\".$item6.\"/>",$msg);
}
}
closedir($open_dir6);
$open_dir7 = opendir ('./smail/vesel');
while ( $item7 = readdir ($open_dir7)){
if(stristr($item7, '.gif')){
$item7= str_replace('.gif', '', $item7);
$msg=str_replace(".$item7.","<img src=\"./smail/vesel/$item7.gif\" alt=\".$item7.\"/>",$msg);
}
}
closedir($open_dir7);
return $msg;
}
?>