"; else $divide = "-=-
"; $anti = "[Reklam]"; $SQLlink = ""; $ver = trim(addslashes(htmlspecialchars($ver))); $dtd = ''; $xml = ''; function connect_db() { $SQLlink = @mysql_connect (DBhost, DBuser, DBpass); if($SQLlink) { if(@mysql_select_db(DBname)){ return $SQLlink; } else { show_error('Melumat bazasi ile elaqe yoxdur.Xayiş olunur biraz gözleyin. 5 deq erzinde problem hell olacaq'); } } else { show_error('Melumat bazasi ile elaqe itib. Xayiş olunur biraz gözleyin. 5 deq erzinde problem hell olacaq '); } exit; } // ///////////////////////////////// function anti_hacker($txt){ $txt=str_replace("|","I",$txt); $txt=str_replace("../",",,/",$txt); $txt=str_replace("||","I",$txt); $txt=htmlspecialchars($txt); $txt=str_replace("\"",""",$txt); $txt=str_replace("/\\\$/","$",$txt); $txt=str_replace("$","$",$txt); $txt=str_replace("\\","\",$txt); $txt=str_replace("@","@",$txt); $txt=str_replace("`","",$txt); $txt=str_replace("^","",$txt); $txt=str_replace("%","%",$txt); $txt=stripslashes(trim($txt)); return $txt;} if(isset($_GET)){foreach($_GET as $key=>$value){$_GET[$key]=anti_hacker($value);}} if(isset($_POST)){foreach($_POST as $key=>$value){$_POST[$key]=anti_hacker($value);}} if(isset($_SESSION)){foreach($_SESSION as $key=>$value){$_SESSION[$key]=anti_hacker($value);}} if(isset($_COOKIE)){foreach($_COOKIE as $key=>$value){$_COOKIE[$key]=anti_hacker($value);}} ///////////////////////////////// if (@extension_loaded('zlib') && @ini_get('zlib.output_compression') != '1' && @ini_get('output_handler') != 'ob_gzhandler'){ $PREFER_DEFLATE = false; // �� FORCE_COMPRESSION = false; // ///////////////////////////////// function compress_output_gzip($output) { return gzencode($output); } function compress_output_deflate($output) { return gzdeflate($output, 9); } function compress_output_x_gzip($output) { return gzcompress($output, 9); } if(isset($_SERVER['HTTP_ACCEPT_ENCODING'])) $AE = $_SERVER['HTTP_ACCEPT_ENCODING']; else $AE = $_SERVER['HTTP_TE']; $support_gzip = (strpos($AE, 'gzip') !== FALSE) || $FORCE_COMPRESSION; $support_deflate = (strpos($AE, 'deflate') !== FALSE) || $FORCE_COMPRESSION; $support_x_gzip = (strpos($AE, 'x-gzip') !== FALSE) || $FORCE_COMPRESSION; if($support_gzip && $support_deflate) { $support_deflate = $PREFER_DEFLATE; } if ($support_deflate) { header("Content-Encoding: deflate"); ob_start("compress_output_deflate"); } else{ if($support_gzip){ header("Content-Encoding: gzip"); ob_start("compress_output_gzip"); } else { if($support_x_gzip){ header("Content-Encoding: x_gzip"); ob_start("compress_output_x_gzip"); } else { ob_start(); $config_gzip="0"; }}} }else{$config_gzip="0";} //////// function show_error($err) { global $dtd, $xml; echo ''; echo ''; echo ''; echo ''; echo '

'; echo ''.$err.'
'; echo '---
'; echo 'Narahatçiliğa göre üzr isteyirik.'; echo '

'; } function getmicrotime() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } function filtr($a){ $text1=array("\r\n", "\n"); $text2=array(" ", " "); $a=trim(htmlspecialchars(stripslashes(str_replace($text1, $text2, $a)))); return $a; } function rus_to_k($str){ $str = str_replace("Ð�","a",$str); $str = str_replace("Ð�","b",$str); $str = str_replace("в","v",$str); $str = str_replace("г","g",$str); $str = str_replace("д","d",$str); $str = str_replace("Ð�","e",$str); $str = str_replace("Ñ�","e",$str); $str = str_replace("Ð�","j",$str); $str = str_replace("Ð�","z",$str); $str = str_replace("и","i",$str); $str = str_replace("й","y",$str); $str = str_replace("к","k",$str); $str = str_replace("Ð�","l",$str); $str = str_replace("м","m",$str); $str = str_replace("н","n",$str); $str = str_replace("о","o",$str); $str = str_replace("п","p",$str); $str = str_replace("ш","r",$str); $str = str_replace("с","s",$str); $str = str_replace("Ñ�","t",$str); $str = str_replace("у","u",$str); $str = str_replace("Ñ�","f",$str); $str = str_replace("Ñ�","h",$str); $str = str_replace("Ñ�","c",$str); $str = str_replace("Ñ�","q",$str); $str = str_replace("ш","w",$str); $str = str_replace("Ñ�",">",$str); $str = str_replace("ÑŒ","<",$str); $str = str_replace("Ñ�","x",$str); $str = str_replace("ÑŠ",".",$str); $str = str_replace("э",":",$str); $str = str_replace("ÑŽ",";",$str); $str = str_replace("я","}",$str); $str = str_replace("А","a",$str); $str = str_replace("Ð�","b",$str); $str = str_replace("Ð�","v",$str); $str = str_replace("Ð�","g",$str); $str = str_replace("Ð�","d",$str); $str = str_replace("Ð�","e",$str); $str = str_replace("Ё","e",$str); $str = str_replace("Ð�","j",$str); $str = str_replace("Ð�","z",$str); $str = str_replace("И","i",$str); $str = str_replace("Ð�","y",$str); $str = str_replace("К","k",$str); $str = str_replace("Ð�","l",$str); $str = str_replace("Ðœ","m",$str); $str = str_replace("Н","n",$str); $str = str_replace("О","o",$str); $str = str_replace("П","p",$str); $str = str_replace("Ð�","r",$str); $str = str_replace("С","s",$str); $str = str_replace("Т","t",$str); $str = str_replace("У","u",$str); $str = str_replace("Ð�","f",$str); $str = str_replace("Ð¥","h",$str); $str = str_replace("Ð�","c",$str); $str = str_replace("Ð�","q",$str); $str = str_replace("Ш","w",$str); $str = str_replace("Ð�",">",$str); $str = str_replace("Ð�","<",$str); $str = str_replace("Ð�","x",$str); $str = str_replace("Ъ",".",$str); $str = str_replace("Ð�",":",$str); $str = str_replace("Ð�",";",$str); $str = str_replace("Я","}",$str); return $str; } function win_to_utf($str){ $str=strtr($str,array("à"=>"Ð�","á"=>"Ð�","â"=>"в","ã"=>"г","ä"=>"д","å"=>"Ð�","¸"=>"Ñ�","æ"=>"Ð�","ç"=>"Ð�","è"=>"и","é"=>"й","ê"=>"к","ë"=>"Ð�","ì"=>"м","í"=>"н","î"=>"о","ï"=>"п","ð"=>"ш","ñ"=>"с","ò"=>"Ñ�","ó"=>"у","ô"=>"Ñ�","õ"=>"Ñ�","ö"=>"Ñ�","÷"=>"Ñ�","ø"=>"ш","ù"=>"Ñ�","ú"=>"ÑŠ","û"=>"Ñ�","ü"=>"ÑŒ","ý"=>"э","þ"=>"ÑŽ","ÿ"=>"я", "À"=>"А","Á"=>"Ð�","Â"=>"Ð�","Ã"=>"Ð�","Ä"=>"Ð�","Å"=>"Ð�","¨"=>"Ё","Æ"=>"Ð�","Ç"=>"Ð�","È"=>"Ð?","É"=>"Ð�","Ê"=>"К","Ë"=>"Ð�","Ì"=>"Ðœ","Í"=>"Н","Î"=>"О","Ï"=>"П","Ð"=>"Ð�","Ñ"=>"С","Ò"=>"Т","Ó"=>"У","Ô"=>"Ð�","Õ"=>"Ð¥","Ö"=>"Ð�","×"=>"Ð�","Ø"=>"Ш","Ù"=>"Ð�","Ú"=>"Ъ","Û"=>"Ð�","Ü"=>"Ð�","Ý"=>"Ð�","Þ"=>"Ð�","ß"=>"Я")); return $str; } function utf_to_win($str){ $str=strtr($str,array("Ð�"=>"à","Ð�"=>"á","в"=>"â","г"=>"ã","д"=>"ä","Ð�"=>"å","Ñ�"=>"¸","Ð�"=>"æ","Ð�"=>"ç","и"=>"è","й"=>"é","к"=>"ê","Ð�"=>"ë","м"=>"ì","н"=>"í","о"=>"î","п"=>"ï","ш"=>"ð","с"=>"ñ","Ñ�"=>"ò","у"=>"ó","Ñ�"=>"ô","Ñ�"=>"õ","Ñ�"=>"ö","Ñ�"=>"÷","ш"=>"ø","Ñ�"=>"ù","ÑŠ"=>"ú","Ñ�"=>"û","ÑŒ"=>"ü","э"=>"ý","ÑŽ"=>"þ","я"=>"ÿ", "А"=>"À","Ð�"=>"Á","Ð�"=>"Â","Ð�"=>"Ã","Ð�"=>"Ä","Ð�"=>"Å","Ё"=>"¨","Ð�"=>"Æ","Ð�"=>"Ç","И"=>"È","Ð�"=>"É","К"=>"Ê","Ð�"=>"Ë","Ðœ"=>"Ì","Н"=>"Í","О"=>"Î","П"=>"Ï","Ð�"=>"Ð","С"=>"Ñ","Т"=>"Ò","У"=>"Ó","Ð�"=>"Ô","Ð¥"=>"Õ","Ð�"=>"Ö","Ð�"=>"×","Ш"=>"Ø","Ð�"=>"Ù","Ъ"=>"Ú","Ð�"=>"Û","Ð�"=>"Ü","Ð�"=>"Ý","Ð�"=>"Þ","Я"=>"ß")); return $str; } function trun_to_rus($str){ $str=str_replace("ch","Ñ�",$str); $str=str_replace("sc","Ñ�",$str); $str=str_replace("sh","ш",$str); $str=str_replace("ye","э",$str); $str=str_replace("yu","ÑŽ",$str); $str=str_replace("ya","я",$str); $str=str_replace("CH","Ð�",$str); $str=str_replace("Ch","Ð�",$str); $str=str_replace("SC","Ð�",$str); $str=str_replace("Sc","Ð�",$str); $str=str_replace("SH","Ш",$str); $str=str_replace("Sh","Ш",$str); $str=str_replace("""","Ъ",$str); $str=str_replace(""","ÑŠ",$str); $str=str_replace("‘‘","Ð�",$str); $str=str_replace("‘","ÑŒ",$str); $str=str_replace("YE","Ð�",$str); $str=str_replace("Ye","Ð�",$str); $str=str_replace("YU","Ð�",$str); $str=str_replace("Yu","Ð�",$str); $str=str_replace("YA","Я",$str); $str=str_replace("Ya","Я",$str); $str=strtr($str,array("\""=>"","a"=>"Ð�","b"=>"Ð�","v"=>"в","g"=>"г","d"=>"д","e"=>"Ð�","j"=>"Ð�","z"=>"Ð�","i"=>"и","y"=>"й","k"=>"к","l"=>"Ð�","m"=>"м","n"=>"н","o"=>"о","p"=>"п","r"=>"ш","s"=>"с","t"=>"Ñ�","u"=>"у","f"=>"Ñ�","h"=>"Ñ�","c"=>"Ñ�","w"=>"ш","x"=>"Ñ�","A"=>"А","B"=>"Ð�","V"=>"Ð�","G"=>"Ð�","D"=>"Ð�","E"=>"Ð�","J"=>"Ð�","Z"=>"Ð�","I"=>"И","Y"=>"Ð�","K"=>"К","L"=>"Ð�","M"=>"Ðœ","N"=>"Н","O"=>"О","P"=>"П","R"=>"Ð�","S"=>"С","T"=>"Т","U"=>"У","F"=>"Ð�","H"=>"Ð¥","C"=>"Ð�","W"=>"Ш","X"=>"Ð�")); return $str; } function check($message){ $message = str_replace("\\n", " ", $message); $message = str_replace("\n", " ", $message); $message = trim(" $message "); $message = ereg_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 = HtmlSpecialChars($message); $message = str_replace("\"", """, $message); $message = str_replace("|", "¦", $message); $message = str_replace("'", "‘", $message); $message = str_replace("\\", "", $message); $message=addslashes($message); return $message; } function replace_rus($str){ $str = str_replace("Ð�","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("в","|",$str); $str = str_replace("г","|",$str); $str = str_replace("д","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ñ�","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("и","|",$str); $str = str_replace("й","|",$str); $str = str_replace("к","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("м","|",$str); $str = str_replace("н","|",$str); $str = str_replace("о","|",$str); $str = str_replace("п","|",$str); $str = str_replace("ш","|",$str); $str = str_replace("с","|",$str); $str = str_replace("Ñ�","|",$str); $str = str_replace("у","|",$str); $str = str_replace("Ñ�","|",$str); $str = str_replace("Ñ�","|",$str); $str = str_replace("Ñ�","|",$str); $str = str_replace("Ñ�","|",$str); $str = str_replace("ш","|",$str); $str = str_replace("Ñ�","|",$str); $str = str_replace("ÑŒ","|",$str); $str = str_replace("Ñ�","|",$str); $str = str_replace("ÑŠ","|",$str); $str = str_replace("э","|",$str); $str = str_replace("ÑŽ","|",$str); $str = str_replace("я","|",$str); $str = str_replace("А","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ё","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ð?","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("К","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ðœ","|",$str); $str = str_replace("Н","|",$str); $str = str_replace("О","|",$str); $str = str_replace("П","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("С","|",$str); $str = str_replace("Т","|",$str); $str = str_replace("У","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ð¥","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ш","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ъ","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Ð�","|",$str); $str = str_replace("Я","|",$str); return $str; } function check_login($link) { global $REMOTE_ADDR, $HTTP_USER_AGENT, $HTTP_GET_VARS, $ver, $rm, $us, $ses, $trun, $id, $ps, $ref; $ref = rand(10000, 1000000); if(isset($HTTP_GET_VARS['us'])) {$us = mysql_escape_string($HTTP_GET_VARS['us']);} if(isset($HTTP_GET_VARS['id'])) {$id = mysql_escape_string($HTTP_GET_VARS['id']);} if(isset($HTTP_GET_VARS['ps'])) {$ps = mysql_escape_string($HTTP_GET_VARS['ps']);} if(isset($HTTP_GET_VARS['ver'])) {$ver = mysql_escape_string($HTTP_GET_VARS['ver']);} if(isset($us)){ $us=trim($us); if($us=="") {$bad_login = 1;}} if(isset($id)){ if (!ctype_digit($id)) { header("Location: index.php"); die; } $result = @mysql_query ("Select * from users where id='".$id."' LIMIT 1;"); } else { if (!ctype_digit($us)) { if($trun==1) {$us=trun_to_rus($us);} $latuser=strtolower($us); $ruser = rus_to_k($us); if($ruser==$us){ $result = mysql_query ("Select * from users where latuser = '".$latuser."' LIMIT 1;"); } else { $result = mysql_query ("Select * from users where ruser = '".$ruser."' LIMIT 1;"); } } else { $result = mysql_query ("Select * from users where id = '".$us."' LIMIT 1;"); } if (mysql_affected_rows() == 0) {$bad_login = 1;} } $row = mysql_fetch_array ($result); if(!isset($id)){$id=$row["id"];} if ($ps !== $row["pass"]) {$bad_login = 2;} if($bad_login) { echo ""; echo ""; echo "\n"; echo "\n"; echo "

"; echo ""; if ($bad_login == 1) echo "Istifadeçi tapilmadi."; else if ($bad_login == 3) echo "ID (qeydiyyat nömreniz)-de icaze verilmeyen simvollar var."; else echo "Nik ve ya parol düzgün deyil."; echo ""; echo "

"; mysql_close($link); exit; } if($row['fsize'] == "verysmall") { $fsize1 = ""; $fsize2 = ""; } elseif($row['fsize'] == "small") { $fsize1 = ""; $fsize2 = ""; } elseif($row['fsize'] == "big") { $fsize1 = ""; $fsize2 = ""; } else { $fsize1 = ""; $fsize2 = ""; } $kick=$row["kik"]; if((time()<$row["kik"])||(time()<$row["kik"]&&$row["whokik"]=="[Xeberçi]")) { $tkick = $kick - time(); if($tkick < 60 && $tkick > 0) { $var = "saniyeden"; } elseif($tkick < 3600 && $tkick > 60) { $new = $tkick; $tkick = $new/60; $var = "deqiqeden"; } elseif($tkick < 86400 && $tkick > 3600) { $new = $tkick; $tkick = $new/3600; $var = "saatdan"; } elseif($tkick > 86400) { $new = $tkick; $tkick = $new/86400; $var = "günden"; } $tkick = round($tkick, 0); echo ""; echo ""; echo ""; echo ""; echo "

"; echo $fsize1; $whokik = $row["whokik"]; $whykik = $row["whykik"]; echo "$whokik sizi çatdan xariç edib!
\n"; echo "
Sebeb: $whykik
---
Siz, Çata ".$tkick." $var sonra daxil ola bilersiz
\n"; echo "-=-
"; echo "wap.sevenler.ru\n"; echo $fsize2; echo "

"; mysql_close($link); exit; } if (($row["banned"]==1)&&($row["level"]<7)) { echo ""; echo ""; echo ""; echo ""; echo "

"; echo $fsize1; echo "Bu Nik yandirilib. Bu Nikden istifade ede bilmezsiniz.!
"; echo "-=-
"; echo "wap.sevenler.ru"; echo $fsize2; echo "

"; mysql_close($link); exit; } $user=$row["user"]; $ip=getenv("REMOTE_ADDR"); $HTTP_USER_AGENT=getenv("HTTP_USER_AGENT"); $REMOTE_ADDR=getenv("REMOTE_ADDR"); if(strpos($_SERVER['HTTP_USER_AGENT'], "'") !== false) die(); if(substr($_SERVER['HTTP_USER_AGENT'], 0 , 7) == "SamSunf") die(); if(preg_match("'Nokia(\d{3})/'", $_SERVER['HTTP_USER_AGENT'])) die(); mysql_query ("Select * from bannlist WHERE (ip = '".$REMOTE_ADDR."')and(soft = '".$HTTP_USER_AGENT."')"); if ((mysql_affected_rows()!=0)&&($rm!=9)&&($row["level"]<8)) { echo ""; echo ""; echo ""; echo ""; echo "

"; echo $fsize1; echo "Sizin IP: ".$REMOTE_ADDR."
ve Tel SOFT u: ".$HTTP_USER_AGENT."
Ban edilib!
"; echo "-=-
"; echo "wap.sevenler.ru"; echo $fsize2; echo "

"; mysql_close($link); exit; } $user=$row["user"]; $ip=getenv("REMOTE_ADDR"); $HTTP_USER_AGENT=getenv("HTTP_USER_AGENT"); $REMOTE_ADDR=getenv("REMOTE_ADDR"); $q = mysql_query("SELECT * FROM `chat_banned` WHERE `ip` = '".getenv('REMOTE_ADDR')."' AND `ua` = '-';"); if((mysql_num_rows($q) != 0)&&($row["level"]<8)) { echo ""; echo ""; echo ""; echo ""; echo "

"; echo $fsize1; echo "Sizin IP Adresiniz:
".$REMOTE_ADDR." Ban edilib!
"; echo "-=-
"; echo "wap.sevenler.ru\n"; echo $fsize2; echo "

"; mysql_close($link); exit; } $q = mysql_query("SELECT * FROM `chat_banned` WHERE `ip` = '-' AND `ua` = '".htmlspecialchars(getenv('HTTP_USER_AGENT'))."';"); if((mysql_num_rows($q) != 0)&&($row["level"]<8)) { echo ""; echo ""; echo ""; echo ""; echo "

"; echo $fsize1; echo "Sizin Tel Softunuz:
".$HTTP_USER_AGENT." Ban edilib!
"; echo "-=-
"; echo "wap.sevenler.ru\n"; echo $fsize2; echo "

"; mysql_close($link); exit; } $user=$row["user"]; $ip=getenv("REMOTE_ADDR"); $HTTP_USER_AGENT=getenv("HTTP_USER_AGENT"); $REMOTE_ADDR=getenv("REMOTE_ADDR"); $us_ip = $row["user_ip"]; $us_soft = $row["user_soft"]; if(($row["user_soft"]!==$HTTP_USER_AGENT||$row["user_ip"]!==$REMOTE_ADDR)){ mysql_query ("Update users set user_soft='". $HTTP_USER_AGENT."', user_ip = '".$REMOTE_ADDR."' WHERE id = '".$id."';"); if ($row["safe"]==1){ $data = date("d-M-Y [H:i]"); $kolf = rand(0,99999999); $time = time(); $message = "Diqqet Bextiyar qaqas ".$user." ipsoftu deyisdi!
Onun evvelki IPi $us_ip
ve SOFTu $us_soft idi
Indiki IP: ".$REMOTE_ADDR."
ve SOFT: ".$HTTP_USER_AGENT." oldu"; $robokop = @mysql_fetch_array(@mysql_query ("Select user from users where id='7' LIMIT 1;")); @mysql_query("Insert into zapiski set klu4='".$kolf."', who ='".$robokop[0]."', idwho ='7', message = '".$message."', towhom = 'ICEBERG', idtowhom = '22', time = '".$time."', readd = '0', topic = 'Ip+Soft Nezareti !', date='".$data."'"); echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "

\n"; echo ""; echo "Davam et
*****
\n"; echo "Siz Çata başqa Operator ve ya Telefon modeliyle daxil oldunuz.
Sonuncu defe daxil olduğunuz IP $us_ip
ve SOFT $us_soft
Sizin hazirki IP: ".$REMOTE_ADDR."
ve SOFT: ".$HTTP_USER_AGENT."
ile uyğun deyil. Ola bilsin Nikinizden istifade olunur. Parolunuzu Deyişmek meslehetdir.!
"; echo "
"; echo "

\n"; mysql_close($link); exit;} } $user=$row["user"]; $syst = @mysql_query ("Select user from users where id='1' LIMIT 1;"); $rr = @mysql_fetch_array ($syst); $adm = $rr["user"]; if (($row["posts"]>=1000)&&($row["level"]<1)){ $levelselect = @mysql_query ("Select name from levels where level=1"); $levels = @mysql_fetch_array($levelselect); $levelname = $levels["name"]; $row["level"] = 1; $row["status"] = "".$levelname.""; mysql_query ("UPDATE users SET status = '".$row["status"]."', level = '".$row["level"]."' WHERE id = '".$id."';"); $data = date("d-M-Y [H:i]"); $kolw = rand(0,99999999); $time = time(); $message = "Xoş Geldin ".$user."!!! ".$adm." Admin size ".$levelname." statusunu teyin edir."; @mysql_query("Insert into zapiski set klu4='".$kolw."', who ='".$adm."', idwho ='1', message = '".$message."', towhom = '".$user."', idtowhom = '".$id."', time = '".$time."', readd = '0', topic = 'Tebrikler!!!', date='".$data."'"); } if (($row["posts"]>=3000)&&($row["level"]<2)){ $levelselect = @mysql_query ("Select name from levels where level=2"); $levels = @mysql_fetch_array($levelselect); $levelname = $levels["name"]; $row["level"] = 2; $row["status"] = "".$levelname.""; mysql_query ("UPDATE users SET status = '".$row["status"]."', level = '".$row["level"]."' WHERE id = '".$id."';"); $data = date("d-M-Y [H:i]"); $kolw = rand(0,99999999); $time = time(); $message = "Tebrikler ".$user."!!! Siz lazimi postu yigdiniz ".$adm." Admin size ".$levelname." statusunu teyin edir."; @mysql_query("Insert into zapiski set klu4='".$kolw."', who ='".$adm."', idwho ='1', message = '".$message."', towhom = '".$user."', idtowhom = '".$id."', time = '".$time."', readd = '0', topic = 'Tebrikler!!!', date='".$data."'"); } if (($row["posts"]>=7000)&&($row["level"]<3)){ $levelselect = @mysql_query ("Select name from levels where level=3"); $levels = @mysql_fetch_array($levelselect); $levelname = $levels["name"]; $row["level"] = 3; $row["status"] = "".$levelname.""; mysql_query ("UPDATE users SET status = '".$row["status"]."', level = '".$row["level"]."' WHERE id = '".$id."';"); $data = date("d-M-Y [H:i]"); $kolw = rand(0,99999999); $time = time(); $message = "Tebrikler ".$user."!!! Siz lazimi postu yigdiniz ".$adm." Admin size ".$levelname." statusunu teyin edir."; @mysql_query("Insert into zapiski set klu4='".$kolw."', who ='".$adm."', idwho ='1', message = '".$message."', towhom = '".$user."', idtowhom = '".$id."', time = '".$time."', readd = '0', topic = 'Tebrikler!!!', date='".$data."'"); } return array($row, $id, $ps, $fsize1, $fsize2); } ?>