<?php
##################################################################################################
## Script name : WapChat "Region-56"##
## Version : 3.2 (23.01.2007) ##
## Made by : Медиум ##
## E-mail : seaquest@mail.ru ##
## ICQ : 299-411-279 ##
## Site : http:
## По вопросам приобритения скрипта или обновлений для него обращатьтся на вышеуказанные данные.##
## Распространение скрипта другими лицами запрешено.Скрипт защищён законом об авторском праве.##
##################################################################################################
header("Cache-Control: no-cache");
if ($ver=="wml")header ("Content-type:text/vnd.wap.wml; charset=utf-8");
else header("Content-Type:text/html; charset=UTF-8");
require("inc.php");
$link = connect_db();
include("./includes/".$ver."/banned");
include("./includes/".$ver."/bannedreg");
$ref = rand(10000,1000000);
$addr = $REMOTE_ADDR;
$agent = $HTTP_USER_AGENT;
$brayz=strtok($_SERVER["HTTP_USER_AGENT"],'/');
$brayz = htmlentities(addslashes($brayz));
$setting = @mysql_query ("Select rus,reg,computer,img from setting where klu4='1'");
$set = mysql_fetch_array ($setting);
$rus = $set["rus"];
$reg = $set["reg"];
$computer = $set["computer"];
$img = $set["img"];
mysql_query ("Select `klu4` from bannlist WHERE (ip = '".$REMOTE_ADDR."')and(soft = '".$HTTP_USER_AGENT."') LIMIT 1;");
if (mysql_affected_rows()!=0){
if ($ver=="wml"){
echo $xml;
echo $dtd;
echo "<wml>";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>";
echo "<card id=\"ban\" title=\"Ban!\" ontimer=\"index.php?ver=$ver&ref=$ref\"><timer value=\"30\"/>";
echo "<p align=\"center\">";
}else{
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head><link rel=\"stylesheet\" type=\"text/css\" href=\"css/css.css\"/>";
echo "<title>Stop!</title>";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/></head><body>";
echo "<div class=\"zero\">";
}
echo "<small>";
echo "Sizin girish ip+soft ile baglidir!!!<br/>";
echo "</small>";
if ($ver=="wml")echo "</p></card></wml>";
else echo "</div></body></html>";
mysql_close($link);
exit;
}
$addr = $REMOTE_ADDR;
if($computer[0]==0){
if ((strpos ($addr,"217.168.176.4") !== false)||(strpos ($addr,"217.168.176.3") !== false)||(strpos ($addr,"85.132.57.1") !== false)||(strpos ($addr,"85.132.57.2") !== false)||(strpos ($addr,"85.132.57.3") !== false)||(strpos ($addr,"85.132.57.4") !== false)||(strpos ($addr,"85.132.57.5") !== false)||(strpos ($addr,"77.244.112.177") !== false)||(strpos ($addr,"77.244.112.151") !== false)||(strpos ($addr,"77.244.112.152") !== false))
{
}else{
if ($ver=="wml"){
echo $xml;
echo $dtd;
echo "<wml>\n";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>\n";
echo "<card id=\"error\" title=\"Xidmet\" ontimer=\"index.php?ver=$ver&ref=$ref\"><timer value=\"100\"/>\n";
echo "<p align=\"left\">";
}else{
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head><link rel=\"stylesheet\" type=\"text/css\" href=\"css/css.css\"/>";
echo "<title>Xidmet</title>";
echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"10; URL=index.php?ver=$ver&ref=$ref\">";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/></head><body>";
echo "<div class=\"zero\">";
}
echo "<small>\n";
echo "Kompyuterden Qeydiyyat ve Chata Girish Odenishlidir.<br/>Telefonla daxil olub qeydiyyatdan kechin sonra(Eger Telefonla daxil ola bilmirsinizse Nick ve Parol Yazin,Sizin ichin Nick Qeyd olunacaq ve Tesdiqlenenler Bolmesinde Gore bileceksiniz) <b>tlb</b> yazib sonra boshluq buraxib Nikini Yaz (eger istediyin Nikden Yoxdursa) ve 9505 nomresine Gonder.<br/>Xidmetin Deyeri: <b>156 kontur</b>.<br/> Muddeti: <b>Omurlukdur</b>.<br/>Chatda Kompyuterden Girish Tam Aktiv Olacaq.<br/>En gec 1 saat erzinde Qeyd Elediyiniz Nikle Chata Gele Bileceksiniz.<br/>";
echo "</small>\n";
if ($ver=="wml")echo "</p></card></wml>\n";
else echo "</div></body></html>\n";
mysql_close($link);
exit;
}
}else{
}
if ($reg==0){
if ($ver=="wml"){
echo $xml;
echo $dtd;
echo "<wml>\n";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>\n";
echo "<card id=\"error\" title=\"Profilaktika\" ontimer=\"index.php?ver=$ver&ref=$ref\"><timer value=\"100\"/>\n";
echo "<p align=\"center\">";
}else{
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head><link rel=\"stylesheet\" type=\"text/css\" href=\"css/css.css\"/>";
echo "<title>Sehv Var</title>";
echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"10; URL=index.php?ver=$ver&ref=$ref\">";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/></head><body>";
echo "<div class=\"header\">";
}
echo "<small>\n";
echo "Chata Qeydiyyat Muveqqeti olaraq Baglanmishdir(Super Admin Terefinden).<br/>";
echo "Sonra Qeydiyyat olmaga chalishin.<br/>";
echo "Eger Qeydiyyat 1 gun erzinde bagli olarsa Super Admine mektubla muraciet edir. ";
echo "<a href=\"/mail/mail.php\">Mektub Yaz</a><br/>";
echo "</small>\n";
if ($ver=="wml")echo "</p></card></wml>\n";
else echo "</div></body></html>\n";
mysql_close($link);
exit;
}
if ($mod==="reghelp"){
if ($ver=="wml"){
echo $xml;
echo $dtd;
echo "<wml>\n";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>\n";
echo "<card id=\"help\" title=\"Help\">\n";
echo "<do type=\"prev\" label=\"Geri\"><prev/></do>\n";
echo "<p>\n";
}else{
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head><link rel=\"stylesheet\" type=\"text/css\" href=\"css/css.css\"/>";
echo "<title>Stop!</title>";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/></head><body>";
echo "<div class=\"header\">";
}
echo "<small>\n";
echo "<b>Qeydiyyata Davam</b><br/>\n";
if($ver=="xhtml"){echo "</div><div class=\"zero\">";}
echo "<b>Icaze verilir:</b> Parol 4 herfden az olmamalidi...<br/>\n";
if ($rus==1) echo "<b>Icaze verilir:</b> Parol 4 herfden az olmamalidi...<br/>\n";
echo "<b>Mutleq:</b> (<b>*</b>)---olan bolmeleri mutleq yazmalisiniz ..<br/>\n";
echo "<b>Izahat:</b> <b>GIZLI SOZ</b> parolu(shifre) unutduqda ve ya sindirsalar yeniden berpa etmek uchun size lazim olacaq.<br/>\n";
echo "<b>Diqqet:</b> <b>GIZLI SOZU</b> yaradanda diqqetli Olun.Yadda saxlayin.Sade Soz olmasin.Chunki GIZLI SOZU sonra deyishe ve baxa bilmeyeceksiniz.<br/>\n";
echo "<b>Meslehetdir:</b> Qedyiyyatdan sonra Shexsi Kabinetde Anketinizi Duzeldin.Chunki Qeydiyyat zamani qisalmish forma istifade olunur.<br/>\n";
echo "<b>Meslehetdir:</b>Oz E-mailinizi yazmagi unutmayin,Eger siz Gizli shifreni unutsaniz Shifre Sizin e-malinize gonderilecek.<br/>\n";
echo "<b>Yadda Saxlayin:</b>Nickiniz chatda 50 gunden az olduqda Bazadan Nick silinecek.<br/>\n";
echo "<b>Tehluke!!!:</b>(Parol asan tapilan,infonuzda olan melumati,dogum tarixi,adinizi,nomrenizi,nikinizi,telefonun ustundeki reqemleri qoymayin.Firildaq insanlar bundan istifade edib sizin nikinize gire biler ve nikinizden istifade ede biler.Chalishin parol herf ve reqemlerden teshkil olunsun ve sayi chox olsun.<br/>\n";
echo "</small>\n";
if ($ver=="wml"){
echo "</p>\n";
echo "<p align=\"center\">\n";
}else{
echo "</div>\n";
echo "<div class=\"header\">\n";
}
echo "<small>---<br/>\n";
echo "<a href=\"reg.php?ver=$ver\">Raziyam</a><br/>\n";
echo "<a href=\"index.php?ver=$ver\">Razi deyilem</a>\n";
echo "</small>\n";
if ($ver=="wml")echo "</p></card></wml>\n";
else echo "</div></body></html>\n";
exit;
}
if((empty($mod))||($mod!=="reghelp")){
if(!@$go){
if ($ver=="wml"){
echo $xml;
echo $dtd;
echo "<wml>\n";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>\n";
echo "<card id=\"reg\" title=\"Qeydiyyat\">\n";
echo "<p mode=\"wrap\">\n";
}else{
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head><link rel=\"stylesheet\" type=\"text/css\" href=\"css/css.css\"/>";
echo "<title>Stop!</title>";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/></head><body><small><div class=\"header\">";
echo "Qeydiyyat 3ci Addim</div><div class=\"zero\">";
echo "<form method=\"POST\" action=\"reg.php?ver=$ver&go=reg\" name=\"auth\">\n";
}
echo "(*) ulduz olan bolmeler mutleq yazilmalidir!!!<br/>\n";
echo "<small>*Nick(min=4):</small><br/>\n";
echo "<input name=\"user\" maxlength=\"12\" title=\"nick\" emptyok=\"false\"/><br/>\n";
echo "<small>*Parol(min=4):</small><br/>\n";
echo "<input name=\"pass\" maxlength=\"20\" title=\"pass\" emptyok=\"false\"/><br/>\n";
echo "<small>*Parolu tekrarla:</small><br/>\n";
echo "<input name=\"pass2\" maxlength=\"20\" title=\"verpass\" emptyok=\"false\"/><br/>\n";
echo "<small>*Telebelik vaxti soyadiniz:</small><br/>\n";
echo "<input name=\"surname_last\" maxlength=\"12\" title=\"surname_last\" emptyok=\"false\"/><br/>\n";
echo "<small>*Hal-hazirda soyadiniz:</small><br/>\n";
echo "<input name=\"surname_now\" maxlength=\"12\" title=\"surname_now\" emptyok=\"false\"/><br/>\n";
echo "<small>*Real Adiniz:</small><br/>\n";
echo "<input name=\"name\" maxlength=\"15\" title=\"name\" emptyok=\"false\"/><br/>\n";
echo "<small>Cins:</small><br/>\n";
echo "<select name=\"sex\">\n";
echo "<option value=\"K\">Kishi</option>\n";
echo "<option value=\"Q\">Qadin</option>\n";
echo "</select><br/>\n";
echo "<small>Dogum yeri:</small><br/>\n";
echo "<select name=\"city\">";
echo "<option value=\"Agcabedi \">Agcabedi</option>\n";
echo "<option value=\"Agdam \">Agdam</option>\n";
echo "<option value=\"Agdash \">Agdash</option>\n";
echo "<option value=\"Agstafa \">Agstafa</option>\n";
echo "<option value=\"Agsu \">Agsu</option>\n";
echo "<option value=\"Astara \">Astara</option>\n";
echo "<option value=\"Baki \">Baki</option>\n";
echo "<option value=\"Balaken \">Balaken</option>\n";
echo "<option value=\"Beyleqan \">Beyleqan</option>\n";
echo "<option value=\"Berde \">Berde</option>\n";
echo "<option value=\"Bilesuvar \">Bilesuvar</option>\n";
echo "<option value=\"Celilabad \">Celilabad</option>\n";
echo "<option value=\"Dashkesen \">Dashkesen</option>\n";
echo "<option value=\"Devechi \">Devechi</option>\n";
echo "<option value=\"Eli-Bayramli \">Eli-Bayramli</option>\n";
echo "<option value=\"Fuzuli \">Fuzuli</option>\n";
echo "<option value=\"Gedebey \">Gedebey</option>\n";
echo "<option value=\"Gence \">Gence</option>\n";
echo "<option value=\"Goranboy \">Goranboy</option>\n";
echo "<option value=\"Goychay \">Goychay</option>\n";
echo "<option value=\"Haciqabul \">Haciqabul</option>\n";
echo "<option value=\"Xachmaz \">Xachmaz</option>\n";
echo "<option value=\"Xankendi \">Xankendi</option>\n";
echo "<option value=\"Xanlar \">Xanlar</option>\n";
echo "<option value=\"Xizi \">Xizi</option>\n";
echo "<option value=\"Xudat \">Xudat</option>\n";
echo "<option value=\"Imishli \">Imishli</option>\n";
echo "<option value=\"Ismayilli \">Ismayilli</option>\n";
echo "<option value=\"Kelbecer \">Kelbecer</option>\n";
echo "<option value=\"Kurdemir \">Kurdemir</option>\n";
echo "<option value=\"Qax \">Qax</option>\n";
echo "<option value=\"Qazax \">Qazax</option>\n";
echo "<option value=\"Qebele \">Qebele</option>\n";
echo "<option value=\"Qobustan \">Qobustan</option>\n";
echo "<option value=\"Quba \">Quba</option>\n";
echo "<option value=\"Qusar \">Qusar</option>\n";
echo "<option value=\"Lachin \">Lachin</option>\n";
echo "<option value=\"Lenkeran \">Lenkeran</option>\n";
echo "<option value=\"Lerik \">Lerik</option>\n";
echo "<option value=\"Masalli \">Masalli</option>\n";
echo "<option value=\"Mereze \">Mereze</option>\n";
echo "<option value=\"Nabran \">Nabran</option>\n";
echo "<option value=\"Naftalan \">Naftalan</option>\n";
echo "<option value=\"Mingechevir \">Mingechevir</option>\n";
echo "<option value=\"Naxchivan \">Naxhivan</option>\n";
echo "<option value=\"Neftchala \">Neftchala</option>\n";
echo "<option value=\"Oguz \">Oguz</option>\n";
echo "<option value=\"Shemkir \">Shemkir</option>\n";
echo "<option value=\"Saatli \">Saatli</option>\n";
echo "<option value=\"Sabirabad \">Sabirabad</option>\n";
echo "<option value=\"Salyan \">Salyan</option>\n";
echo "<option value=\"Samux \">Samux</option>\n";
echo "<option value=\"Siyezen \">Siyezen</option>\n";
echo "<option value=\"Sumqayit \">Sumqayit</option>\n";
echo "<option value=\"Shamaxi \">Shamaxi</option>\n";
echo "<option value=\"Sheki \">Sheki</option>\n";
echo "<option value=\"Shusha \">Shusha</option>\n";
echo "<option value=\"Terter \">Terter</option>\n";
echo "<option value=\"Tovuz \">Tovuz</option>\n";
echo "<option value=\"Ucar \">Ucar</option>\n";
echo "<option value=\"Yardimli \">Yardimli</option>\n";
echo "<option value=\"Yevlax \">Yevlax</option>\n";
echo "<option value=\"Zaqatala \">Zaqatala</option>\n";
echo "<option value=\"Zerdab \">Zerdab</option>\n";
echo "<option value=\"Qerbi Azerbaycan \">Qerbi Azerbaycan</option>\n";
echo "<option value=\"Rusiya \">Rusiya</option>\n";
echo "<option value=\"Gurcustan \">Gurcustan</option>\n";
echo "<option value=\"Avropa \">Avropa</option>\n";
echo "<option value=\"Amerika \">Amerika</option>\n";
echo "<option value=\"Turkiye \">Turkiye</option>\n";
echo "<option value=\"Iran \">Iran</option>\n";
echo "<option value=\"Asiya \">Asiya</option>\n";
echo "</select><br/>\n";
echo "<small>*Dogum Tarixi</small><br/>\n";
echo "<small>*gun</small>\n";
echo "<select name=\"day\">";
echo "<option value=\"01 \">01</option>\n";
echo "<option value=\"02 \">02</option>\n";
echo "<option value=\"03 \">03</option>\n";
echo "<option value=\"04 \">04</option>\n";
echo "<option value=\"05 \">05</option>\n";
echo "<option value=\"06 \">06</option>\n";
echo "<option value=\"07 \">07</option>\n";
echo "<option value=\"08 \">08</option>\n";
echo "<option value=\"09 \">09</option>\n";
echo "<option value=\"10 \">10</option>\n";
echo "<option value=\"11 \">11</option>\n";
echo "<option value=\"12 \">12</option>\n";
echo "<option value=\"13 \">13</option>\n";
echo "<option value=\"14 \">14</option>\n";
echo "<option value=\"15 \">15</option>\n";
echo "<option value=\"16 \">16</option>\n";
echo "<option value=\"17 \">17</option>\n";
echo "<option value=\"18 \">18</option>\n";
echo "<option value=\"19 \">19</option>\n";
echo "<option value=\"20 \">20</option>\n";
echo "<option value=\"21 \">21</option>\n";
echo "<option value=\"22 \">22</option>\n";
echo "<option value=\"23 \">23</option>\n";
echo "<option value=\"24 \">24</option>\n";
echo "<option value=\"25 \">25</option>\n";
echo "<option value=\"26 \">26</option>\n";
echo "<option value=\"27 \">27</option>\n";
echo "<option value=\"28 \">28</option>\n";
echo "<option value=\"29 \">29</option>\n";
echo "<option value=\"30 \">30</option>\n";
echo "<option value=\"31 \">31</option>\n";
echo "</select><br/>\n";
echo "<small>*ay</small>\n";
echo "<select name=\"month\">";
echo "<option value=\"01 \">yanvar</option>\n";
echo "<option value=\"02 \">fevral</option>\n";
echo "<option value=\"03 \">mart</option>\n";
echo "<option value=\"04 \">aprel</option>\n";
echo "<option value=\"05 \">may</option>\n";
echo "<option value=\"06 \">iyun</option>\n";
echo "<option value=\"07 \">iyul</option>\n";
echo "<option value=\"08 \">avqust</option>\n";
echo "<option value=\"09 \">sentyabr</option>\n";
echo "<option value=\"10 \">oktyabr</option>\n";
echo "<option value=\"11 \">noyabr</option>\n";
echo "<option value=\"12 \">dekabr</option>\n";
echo "</select><br/>\n";
echo "<small>*il</small>\n";
echo "<select name=\"year\">";
echo "<option value=\"1970 \">1970</option>\n";
echo "<option value=\"1971 \">1971</option>\n";
echo "<option value=\"1972 \">1972</option>\n";
echo "<option value=\"1973 \">1973</option>\n";
echo "<option value=\"1974 \">1974</option>\n";
echo "<option value=\"1975 \">1975</option>\n";
echo "<option value=\"1976 \">1976</option>\n";
echo "<option value=\"1977 \">1977</option>\n";
echo "<option value=\"1978 \">1978</option>\n";
echo "<option value=\"1979 \">1979</option>\n";
echo "<option value=\"1980 \">1980</option>\n";
echo "<option value=\"1981 \">1981</option>\n";
echo "<option value=\"1982 \">1982</option>\n";
echo "<option value=\"1983 \">1983</option>\n";
echo "<option value=\"1984 \">1984</option>\n";
echo "<option value=\"1985 \">1985</option>\n";
echo "<option value=\"1986 \">1986</option>\n";
echo "<option value=\"1987 \">1987</option>\n";
echo "<option value=\"1988 \">1988</option>\n";
echo "<option value=\"1989 \">1989</option>\n";
echo "<option value=\"1990 \">1990</option>\n";
echo "<option value=\"1991 \">1991</option>\n";
echo "<option value=\"1992 \">1992</option>\n";
echo "<option value=\"1993 \">1993</option>\n";
echo "<option value=\"1994 \">1994</option>\n";
echo "<option value=\"1995 \">1995</option>\n";
echo "<option value=\"1996 \">1996</option>\n";
echo "</select><br/>\n";
echo "<small>Burcun:</small><br/>\n";
echo "<select name=\"op\">";
echo "<option value=\"Qoch \">Qoch</option>\n";
echo "<option value=\"Buga\">Buga</option>\n";
echo "<option value=\"Ekizler \">Ekizler</option>\n";
echo "<option value=\"Xercheng \">Xercheng</option>\n";
echo "<option value=\"Shir \">Shir</option>\n";
echo "<option value=\"Qiz \">Qiz</option>\n";
echo "<option value=\"Terezi \">Terezi</option>\n";
echo "<option value=\"Eqreb \">Eqreb</option>\n";
echo "<option value=\"Oxatan \">Oxatan</option>\n";
echo "<option value=\"Oglaq \">Oglaq</option>\n";
echo "<option value=\"Dolcha \">Dolcha</option>\n";
echo "<option value=\"Baliqlar \">Baliqlar</option>\n";
echo "</select><br/>\n";
echo "<small>Boy:</small>\n";
echo "<select name=\"icq\">";
echo "<option value=\"150 sm \">150 sm</option>\n";
echo "<option value=\"151 sm \">151 sm</option>\n";
echo "<option value=\"152 sm \">152 sm</option>\n";
echo "<option value=\"153 sm \">153 sm</option>\n";
echo "<option value=\"154 sm \">154 sm</option>\n";
echo "<option value=\"155 sm \">155 sm</option>\n";
echo "<option value=\"156 sm \">156 sm</option>\n";
echo "<option value=\"157 sm \">157 sm</option>\n";
echo "<option value=\"158 sm \">158 sm</option>\n";
echo "<option value=\"159 sm \">159 sm</option>\n";
echo "<option value=\"160 sm \">160 sm</option>\n";
echo "<option value=\"161 sm\">161 sm</option>\n";
echo "<option value=\"162 sm \">162 sm</option>\n";
echo "<option value=\"163 sm \">163 sm</option>\n";
echo "<option value=\"164 sm \">164 sm</option>\n";
echo "<option value=\"165 sm \">165 sm</option>\n";
echo "<option value=\"166 sm \">166 sm</option>\n";
echo "<option value=\"167 sm \">167 sm</option>\n";
echo "<option value=\"168 sm \">168 sm</option>\n";
echo "<option value=\"169 sm \">169 sm</option>\n";
echo "<option value=\"170 sm \">170 sm</option>\n";
echo "<option value=\"171 sm \">171 sm</option>\n";
echo "<option value=\"172 sm\">172 sm</option>\n";
echo "<option value=\"173 sm \">173 sm</option>\n";
echo "<option value=\"174 sm \">174 sm</option>\n";
echo "<option value=\"175 sm \">175 sm</option>\n";
echo "<option value=\"176 sm \">176 sm</option>\n";
echo "<option value=\"177 sm \">177 sm</option>\n";
echo "<option value=\"178 sm\">178 sm</option>\n";
echo "<option value=\"179 sm \">179 sm</option>\n";
echo "<option value=\"180 sm \">180 sm</option>\n";
echo "<option value=\"181 sm \">181 sm</option>\n";
echo "<option value=\"182 sm \">182 sm</option>\n";
echo "<option value=\"183 sm \">183 sm</option>\n";
echo "<option value=\"184 sm \">184 sm</option>\n";
echo "<option value=\"185 sm \">185 sm</option>\n";
echo "<option value=\"186 sm \">186 sm</option>\n";
echo "<option value=\"187 sm \">187 sm</option>\n";
echo "<option value=\"188 sm \">188 sm</option>\n";
echo "<option value=\"189 sm \">189 sm</option>\n";
echo "<option value=\"190 sm \">190 sm</option>\n";
echo "<option value=\"191 sm \">191 sm</option>\n";
echo "<option value=\"192 sm \">192 sm</option>\n";
echo "<option value=\"lap az sm \">lap az sm</option>\n";
echo "<option value=\"lap chox sm \">lap chox sm</option>\n";
echo "</select><br/>\n";
echo "<small>Cheki:</small>\n";
echo "<select name=\"mob\">";
echo "<option value=\"40 kq \">40 kq</option>\n";
echo "<option value=\"41 kq \">41 kq</option>\n";
echo "<option value=\"42 kq\">42 kq</option>\n";
echo "<option value=\"43 kq \">43 kq</option>\n";
echo "<option value=\"44 kq \">44 kq</option>\n";
echo "<option value=\"45 kq \">45 kq</option>\n";
echo "<option value=\"46 kq \">46 kq</option>\n";
echo "<option value=\"47 kq \">47 kq</option>\n";
echo "<option value=\"48 kq \">48 kq</option>\n";
echo "<option value=\"49 kq \">49 kq</option>\n";
echo "<option value=\"50 kq \">50 kq</option>\n";
echo "<option value=\"51 kq\">51 kq</option>\n";
echo "<option value=\"52 kq\">52 kq</option>\n";
echo "<option value=\"53 kq\">53 kq</option>\n";
echo "<option value=\"54 kq\">54 kq</option>\n";
echo "<option value=\"55 kq\">55 kq</option>\n";
echo "<option value=\"56 kq\">56 kq</option>\n";
echo "<option value=\"57 kq\">57 kq</option>\n";
echo "<option value=\"58 kq\">58 kq</option>\n";
echo "<option value=\"59 kq\">59 kq</option>\n";
echo "<option value=\"60 kq\">60 kq</option>\n";
echo "<option value=\"61 kq\">61 kq</option>\n";
echo "<option value=\"62 kq\">62 kq</option>\n";
echo "<option value=\"63 kq\">63 kq</option>\n";
echo "<option value=\"64 kq\">64 kq</option>\n";
echo "<option value=\"65 kq\">65 kq</option>\n";
echo "<option value=\"66 kq\">66 kq</option>\n";
echo "<option value=\"67 kq\">67 kq</option>\n";
echo "<option value=\"68 kq\">68 kq</option>\n";
echo "<option value=\"69 kq\">69 kq</option>\n";
echo "<option value=\"70 kq\">70 kq</option>\n";
echo "<option value=\"71 kq\">71 kq</option>\n";
echo "<option value=\"72 kq\">72 kq</option>\n";
echo "<option value=\"73 kq\">73 kq</option>\n";
echo "<option value=\"74 kq \">74 kq</option>\n";
echo "<option value=\"75 kq \">75 kq</option>\n";
echo "<option value=\"76 kq\">76 kq</option>\n";
echo "<option value=\"77 kq \">77 kq</option>\n";
echo "<option value=\"78 kq \">78 kq</option>\n";
echo "<option value=\"79 kq \">79 kq</option>\n";
echo "<option value=\"80 kq \">80 kq</option>\n";
echo "<option value=\"81 kq \">81 kq</option>\n";
echo "<option value=\"82 kq \">82 kq</option>\n";
echo "<option value=\"83 kq \">83 kq</option>\n";
echo "<option value=\"84 kq \">84 kq</option>\n";
echo "<option value=\"85 kq \">85 kq</option>\n";
echo "<option value=\"86 kq\">86 kq</option>\n";
echo "<option value=\"87 kq \">87 kq</option>\n";
echo "<option value=\"88 kq \">88 kq</option>\n";
echo "<option value=\"89 kq \">89 kq</option>\n";
echo "<option value=\"90 kq \">90 kq</option>\n";
echo "<option value=\"91 kq\">91 kq</option>\n";
echo "<option value=\"92 kq \">92 kq</option>\n";
echo "<option value=\"93 kq \">93 kq</option>\n";
echo "<option value=\"94 kq \">94 kq</option>\n";
echo "<option value=\"95 kq \">95 kq</option>\n";
echo "<option value=\"96 kq \">96 kq</option>\n";
echo "<option value=\"97 kq \">97 kq</option>\n";
echo "<option value=\"98 kq \">98 kq</option>\n";
echo "<option value=\"99 kq \">99 kq</option>\n";
echo "<option value=\"100 kq \">100 kq</option>\n";
echo "<option value=\"101 kq \">101 kq</option>\n";
echo "<option value=\"102 kq \">102 kq</option>\n";
echo "<option value=\"103 kq \">103 kq</option>\n";
echo "<option value=\"104 kq \">104 kq</option>\n";
echo "<option value=\"105 kq \">105 kq</option>\n";
echo "<option value=\"106 kq \">106 kq</option>\n";
echo "<option value=\"107 kq \">107 kq</option>\n";
echo "<option value=\"108 kq \">108 kq</option>\n";
echo "<option value=\"109 kq \">109 kq</option>\n";
echo "<option value=\"110 kq\">110 kq</option>\n";
echo "<option value=\"111 kq \">111 kq</option>\n";
echo "<option value=\"112 kq \">112 kq</option>\n";
echo "<option value=\"113 kq \">113 kq</option>\n";
echo "<option value=\"114 kq \">114 kq</option>\n";
echo "<option value=\"115 kq \">115 kq</option>\n";
echo "<option value=\"116 kq \">116 kq</option>\n";
echo "<option value=\"117 kq \">117 kq</option>\n";
echo "<option value=\"118 kq \">118 kq</option>\n";
echo "<option value=\"119 kq \">119 kq</option>\n";
echo "<option value=\"120 kq \">120 kq</option>\n";
echo "<option value=\"lap az kq \">lap az kq</option>\n";
echo "<option value=\"lap chox kq\">lap chox kq</option>\n";
echo "</select><br/>\n";
echo "<small>E-mail:</small><br/>\n";
echo "<input name=\"mail\" maxlength=\"70\" title=\"mail\" emptyok=\"true\"/><br/>\n";
echo "<small>*Ozun Haqqinda:</small><br/>\n";
echo "<input name=\"infa\" maxlength=\"200\" title=\"infa\" emptyok=\"false\"/><br/>\n";
echo "<small>*GIZLI SOZ:</small><br/>\n";
echo "<input name=\"gizli\" maxlength=\"15\" title=\"gizli\" emptyok=\"false\"/><br/>\n";
$img =mysql_fetch_array(mysql_query("select img from setting"));
if($img[0]==1){
echo"<img src='code/index.php' /><br/>\n";
echo "<small>*Shekildeki Kod:</small><br/>\n";
if($_GET['key'])
{
$result=@mysql_query("SELECT * FROM chat_code WHERE ip='".$addr."' && ua='".$agent."'");
$arr = mysql_fetch_array($result);
$code2=$arr['code'];
$code2 = str_replace("0","sifir ",$code2);
$code2 = str_replace("1","bir ",$code2);
$code2 = str_replace("2","iki ",$code2);
$code2 = str_replace("3","uch ",$code2);
$code2 = str_replace("4","dord ",$code2);
$code2 = str_replace("5","besh ",$code2);
$code2 = str_replace("6","alti ",$code2);
$code2 = str_replace("7","yeddi ",$code2);
$code2 = str_replace("8","sekkiz ",$code2);
$code2 = str_replace("9","doqquz ",$code2);
}
echo "<input type=\"text\" name=\"code\" size=\"6\" maxlength=\"4\" format=\"*N\" title=\"code\"/><br/>\n";
}else{
$addr = $REMOTE_ADDR;
if ((strpos ($addr,"217.168.176.4") !== false)||(strpos ($addr,"217.168.176.3") !== false)||(strpos ($addr,"85.132.57.1") !== false)||(strpos ($addr,"85.132.57.2") !== false)||(strpos ($addr,"85.132.57.3") !== false)||(strpos ($addr,"85.132.57.4") !== false)||(strpos ($addr,"85.132.57.5") !== false)||(strpos ($addr,"77.244.112.177") !== false)||(strpos ($addr,"77.244.112.151") !== false)||(strpos ($addr,"77.244.112.152") !== false))
{
}
else{
echo"<img src='code/index.php' /><br/>\n";
echo "<small>*Shekildeki Kod:</small><br/>\n";
if ($mod=="kod")
{
$result=@mysql_query("SELECT * FROM chat_code WHERE ip='".$addr."' && ua='".$agent."'");
$arr = mysql_fetch_array($result);
$code2=$arr['code'];
$code2 = str_replace("0","sifir ",$code2);
$code2 = str_replace("1","bir ",$code2);
$code2 = str_replace("2","iki ",$code2);
$code2 = str_replace("3","uch ",$code2);
$code2 = str_replace("4","dord ",$code2);
$code2 = str_replace("5","besh ",$code2);
$code2 = str_replace("6","alti ",$code2);
$code2 = str_replace("7","yeddi ",$code2);
$code2 = str_replace("8","sekkiz ",$code2);
$code2 = str_replace("9","doqquz ",$code2);
print "<b>Kod:</b> ".$code2."<br/>\n";
}
echo"[<a href=\"reg/wml/kod\">Kodu Gormurem</a>]<br/>\n";
echo "<input type=\"text\" name=\"code\" size=\"6\" maxlength=\"4\" format=\"*N\" title=\"code\"/><br/>\n";
}
}
if ($ver=="wml"){
echo "<small><anchor title=\"go\">Qedy Ol<go href=\"reg.php?ver=$ver&go=reg\" method=\"post\">\n";
echo "<postfield name=\"user\" value=\"$(user)\"/>\n";
echo "<postfield name=\"surname_last\" value=\"$(surname_last)\"/>\n";
echo "<postfield name=\"surname_now\" value=\"$(surname_now)\"/>\n";
echo "<postfield name=\"pass\" value=\"$(pass)\"/>\n";
echo "<postfield name=\"pass2\" value=\"$(pass2)\"/>\n";
echo "<postfield name=\"name\" value=\"$(name)\"/>\n";
echo "<postfield name=\"sex\" value=\"$(sex)\"/>\n";
echo "<postfield name=\"city\" value=\"$(city)\"/>\n";
echo "<postfield name=\"day\" value=\"$(day)\"/>\n";
echo "<postfield name=\"month\" value=\"$(month)\"/>\n";
echo "<postfield name=\"year\" value=\"$(year)\"/>\n";
echo "<postfield name=\"op\" value=\"$(op)\"/>\n";
echo "<postfield name=\"icq\" value=\"$(icq)\"/>\n";
echo "<postfield name=\"mob\" value=\"$(mob)\"/>\n";
echo "<postfield name=\"mail\" value=\"$(mail)\"/>\n";
echo "<postfield name=\"infa\" value=\"$(infa)\"/>\n";
echo "<postfield name=\"code\" value=\"$(code)\"/>\n";
echo "<postfield name=\"gizli\" value=\"$(gizli)\"/>\n";
echo "</go></anchor></small><br/>\n";
}else{
echo "<input type=\"submit\" value=\"Ok\" name=\"enter\"><br/>\n";
}
echo "<small>\n";
echo "---<br/>\n";
echo "<a href=\"index.php?ver=$ver\">wap.telebe.info</a>\n";
echo "</small>\n";
if ($ver=="wml")echo "</p></card></wml>\n";
else echo "</div></body></html>\n";
exit;
}
$error = true;
if ($trun==1){
$name = trun_to_rus($name);
$city = trun_to_rus($city);
$infa = trun_to_rus($infa);
}
$infa = check($infa);
$name = check($name);
$surname_last = check($surname_last);
$surname_now = check($surname_now);
$user = trim(" $user ");
$user = ereg_replace(" +"," ",$user);
$pass = trim(" $pass ");
$pass = ereg_replace(" +"," ",$pass);
$name = trim(" $name ");
$name = ereg_replace(" +"," ",$name);
$surname_last = trim(" $surname_last ");
$surname_last = ereg_replace(" +"," ",$surname_last);
$surname_now = trim(" $surname_now ");
$surname_now = ereg_replace(" +"," ",$surname_now);
$day = trim(" $day ");
$day = ereg_replace(" +"," ",$day);
$month = trim(" $month ");
$month = ereg_replace(" +"," ",$month);
$year = trim(" $year ");
$year = ereg_replace(" +"," ",$year);
$mail = trim(" $mail ");
$mail = ereg_replace(" +"," ",$mail);
$infa = trim(" $infa ");
$infa = ereg_replace(" +"," ",$infa);
$infa=substr($infa,0,400);
$op = trim(" $op ");
$op = ereg_replace(" +"," ",$op);
$icq = trim(" $icq ");
$icq = ereg_replace(" +"," ",$icq);
$mob = trim(" $mob ");
$mob = ereg_replace(" +"," ",$mob);
$city = trim(" $city ");
$city = ereg_replace(" +"," ",$city);
$user = eregi_replace("\\(P!\\)","0",$user);
$user = eregi_replace("\\[P!\\]","0",$user);
if ($rus==1){
$bak = $user;
$bak = replace_rus($bak);
$help = "Nick uchun latin herflerinden ve reqemlerden istifade edin.";
}else{
$help = "Nick uchun latin herflerinden ve reqemlerden istifade edin.";
}
$emp = "Qarshisinda ulduz olan bolmeler yazilmayib.Mutleq yazilmalidir!";
$wrongdate = "Dogum tarixi duzgun yazilmayib,duzgun ve real yazin =)";
$god=date("Y")-10;
if(ctype_digit($user)){$msg = "".$help."";}
elseif((!preg_match("!^[a-z1-9@\\*\\)\\(\\?\\!\\-_\\]\\[=~]+$!i",$user))&&(!preg_match("!^[1-9@\\*\\)\\(\\?\\!\\-_\\]\\|\\[=~]+$!i",$bak))){$msg = "Nickde Icaze Verilmeyen Ishareler Var.Rus Herfleri de Qadagandir!";}
elseif ($user === ""){$msg = "Siz Leqeb(Nick) sechmemisiniz!!!";}
elseif ($pass === ""){$msg = "Siz Parol yazmamisiniz";}
elseif ($gizli === ""){$msg = "Siz GIZLI Sozu yazmamisiniz";}
elseif (strpos($user,"|")!==false){$msg = "Nickde icaze verilmeyen ishareler var!";}
elseif(!preg_match("!^[a-z0-9]+$!i",$pass)){$msg = "Parolda icaze verilmeyen ishareler var!Rus Herfleri de Qadagandir!";}
elseif(!preg_match("!^[a-z0-9]+$!i",$gizli)){$msg = "Gizli sozde icaze verilmeyen ishareler var!Rus Herfleri de Qadagandir!";}
elseif ($name == ""){$msg = "".$emp."";}
elseif ($surname_last == ""){$msg = "".$emp."";}
elseif ($surname_now == ""){$msg = "".$emp."";}
elseif ($day == ""){$msg = "".$emp."";}
elseif ($month == ""){$msg = "".$emp."";}
elseif ($year == ""){$msg = "".$emp."";}
elseif (strlen($pass) <4){$msg = "Parol 4 herfden az olmamalidir!";}
elseif (strlen($user) <4) {$msg = "Nick 4 herfden az olmamalidir!";}
elseif ((strlen($day) !== 2)||($day>31)){$msg = "".$wrongdate."";}
elseif ((strlen($month) !== 2)||($month>12)){$msg = "".$wrongdate."";}
elseif ((strlen($year) !== 4)||($year>=$god)||($year<1950)){$msg = "".$wrongdate."";}
elseif ($pass !== $pass2){$msg = "Parol uygun gelmir!";}
elseif (($sex == "")&&($sex !== "K")&&($sex !== "Q")){$msg = "Cins duzgun yazilmayib";}
else
{
$user = HtmlSpecialChars($user);
$pass = HtmlSpecialChars($pass);
$name = HtmlSpecialChars($name);
$surname_last = HtmlSpecialChars($surname_last);
$surname_now = HtmlSpecialChars($surname_now);
$day = HtmlSpecialChars($day);
$month = HtmlSpecialChars($month);
$year = HtmlSpecialChars($year);
$infa = HtmlSpecialChars($infa);
$mob = HtmlSpecialChars($mob);
$mail = HtmlSpecialChars($mail);
$mail = str_replace("","",$mail);
$mail = str_replace("","",$mail);
$mail = str_replace("","",$mail);
$mail = str_replace("","",$mail);
$mail = str_replace("","",$mail);
$mail = str_replace("","",$mail);
$user = str_replace("","",$user);
$user = str_replace("","",$user);
$user = str_replace("","",$user);
$user = str_replace("","",$user);
$user = str_replace("","",$user);
$user = str_replace("","",$user);
$pass = str_replace("","",$pass);
$pass = str_replace("","",$pass);
$pass = str_replace("","",$pass);
$pass = str_replace("","",$pass);
$pass = str_replace("","",$pass);
$pass = str_replace("","",$pass);
$name = str_replace("","",$name);
$name = str_replace("","",$name);
$name = str_replace("","",$name);
$name = str_replace("","",$name);
$name = str_replace("","",$name);
$name = str_replace("","",$name);
$surname_last = str_replace("","",$surname_last);
$surname_last = str_replace("","",$surname_last);
$surname_last = str_replace("","",$surname_last);
$surname_last = str_replace("","",$surname_last);
$surname_last = str_replace("","",$surname_last);
$surname_last = str_replace("","",$surname_last);
$surname_now = str_replace("","",$surname_now);
$surname_now = str_replace("","",$surname_now);
$surname_now = str_replace("","",$surname_now);
$surname_now = str_replace("","",$surname_now);
$surname_now = str_replace("","",$surname_now);
$surname_now = str_replace("","",$surname_now);
$infa = str_replace("","",$infa);
$infa = str_replace("","",$infa);
$infa = str_replace("","",$infa);
$infa = str_replace("","",$infa);
$infa = str_replace("","",$infa);
$infa = str_replace("","",$infa);
$mob = str_replace("","",$mob);
$mob = str_replace("","",$mob);
$mob = str_replace("","",$mob);
$mob = str_replace("","",$mob);
$mob = str_replace("","",$mob);
$mob = str_replace("","",$mob);
$mail = str_replace("$","$$",$mail);
$mail = str_replace("|","¦",$mail);
$user = str_replace("$","$$",$user);
$user = str_replace("|","¦",$user);
$pass = str_replace("$","$$",$pass);
$pass = str_replace("|","¦",$pass);
$name = str_replace("$","$$",$name);
$name = str_replace("|","¦",$name);
$surname_last = str_replace("$","$$",$surname_last);
$surname_last = str_replace("|","¦",$surname_last);
$surname_now = str_replace("$","$$",$surname_now);
$surname_now = str_replace("|","¦",$surname_now);
$day = str_replace("$","$$",$day);
$day = str_replace("|","¦",$day);
$month = str_replace("$","$$",$month);
$month = str_replace("|","¦",$month);
$year = str_replace("$","$$",$year);
$year = str_replace("|","¦",$year);
$infa = str_replace("$","$$",$infa);
$infa = str_replace("|","¦",$infa);
$name = str_replace("'","‘",$name);
$surname_last = str_replace("'","‘",$surname_last);
$surname_now = str_replace("'","‘",$surname_now);
$gizli = trim(" $gizli ");
$gizli = ereg_replace(" +"," ",$gizli);
$gizli = HtmlSpecialChars($gizli);
$gizli = str_replace("","",$gizli);
$gizli = str_replace("","",$gizli);
$gizli = str_replace("","",$gizli);
$gizli = str_replace("","",$gizli);
$gizli = str_replace("","",$gizli);
$gizli = str_replace("","",$gizli);
$gizli = str_replace("$","$$",$gizli);
$gizli = str_replace("|","¦",$gizli);
$day = str_replace("'","‘",$day);
$month = str_replace("'","‘",$month);
$year = str_replace("'","‘",$year);
$city = str_replace("'","‘",$city);
$op = str_replace("'","‘",$op);
$icq = str_replace("'","‘",$icq);
$mob = str_replace("'","‘",$mob);
$site = str_replace("'","‘",$site);
$infa = str_replace("'","‘",$infa);
if (!eregi("^[a-z0-9\._-]+@[a-z0-9\._-]+\.[a-z]{2,4}\$",$mail))$mail="";
$open=fopen("log/bannlist.dat","r");
while(!feof($open)) @$search.=fgets($open,1024);
fclose($open);
$nick = $user;
$nick = str_replace("*","№1",$nick);
$nick = str_replace(")","№2",$nick);
$nick = str_replace("(","№3",$nick);
$nick = str_replace("?","№4",$nick);
$nick = str_replace("]","№5",$nick);
$nick = str_replace("[","№6",$nick);
$search = str_replace("*","№1",$search);
$search = str_replace(")","№2",$search);
$search = str_replace("(","№3",$search);
$search = str_replace("?","№4",$search);
$search = str_replace("]","№5",$search);
$search = str_replace("[","№6",$search);
if(eregi(strtolower("#$nick#"),strtolower($search))){
echo $xml;
echo $dtd;
echo "<wml>\n";
echo "<card id=\"error\" title=\"Sehv Var\" ontimer=\"reg.php?ver=$ver\"><timer value=\"10\"/>\n";
echo "<p>\n";
echo "Bu nick yandirilib.Bashqa Nick sechib Admine Muraciet edin!\n";
if ($ver=="wml")echo "</p></card></wml>\n";
else echo "</div></body></html>\n";
exit;
}
$img =mysql_fetch_array(mysql_query("select img from setting"));
if($img[0]==1){
$addr = $REMOTE_ADDR;
$agent = $HTTP_USER_AGENT;
$r=@mysql_query("SELECT * FROM chat_code WHERE ip='".$addr."' && ua='".$agent."' && ts>=".(time()-18000));
$arr = mysql_fetch_array($r);
$code1=$arr['code'];
if(strtolower($code)!=$code1){
if ($ver=="wml"){
echo $xml;
echo $dtd;
echo "<wml>\n";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>\n";
echo "<card id=\"error\" title=\"Sehv\" ontimer=\"reg.php?ver=$ver&ref=$ref\"><timer value=\"15\"/>\n";
echo "<p>\n";
}else{
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head><link rel=\"stylesheet\" type=\"text/css\" href=\"css/css.css\"/>";
echo "<title>Stop!</title>";
echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"2; URL=reg.php?ver=$ver&ref=$ref\">";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/></head><body>";
echo "<div class=\"zero\">";
}
echo "<small>\n";
echo "Shekildeki Kodu duzgun yazmamisiniz!\n";
echo "</small>\n";
if ($ver=="wml")echo "</p></card></wml>\n";
else echo "</div></body></html>\n";
exit;}
}else{
$r=@mysql_query("SELECT * FROM chat_code WHERE ip='".$addr."' && ua='".$agent."' && ts>=".(time()-18000));
$arr = mysql_fetch_array($r);
$code1=$arr['code'];
if(strtolower($code)!=$code1){
$addr = $REMOTE_ADDR;
if ((strpos ($addr,"217.168.176.4") !== false)||(strpos ($addr,"217.168.176.3") !== false)||(strpos ($addr,"85.132.57.1") !== false)||(strpos ($addr,"85.132.57.2") !== false)||(strpos ($addr,"85.132.57.3") !== false)||(strpos ($addr,"85.132.57.4") !== false)||(strpos ($addr,"85.132.57.5") !== false)||(strpos ($addr,"77.244.112.177") !== false)||(strpos ($addr,"77.244.112.151") !== false)||(strpos ($addr,"77.244.112.152") !== false))
{
}
else{
if ($ver=="wml"){
echo $xml;
echo $dtd;
echo "<wml>\n";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>\n";
echo "<card id=\"error\" title=\"Sehv\" ontimer=\"reg.php?ver=$ver&ref=$ref\"><timer value=\"15\"/>\n";
echo "<p>\n";
}else{
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head><link rel=\"stylesheet\" type=\"text/css\" href=\"css/css.css\"/>";
echo "<title>Stop!</title>";
echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"2; URL=reg.php?ver=$ver&ref=$ref\">";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/></head><body>";
echo "<div class=\"zero\">";
}
echo "<small>\n";
echo "Shekildeki Kodu duzgun yazmamisiniz!...\n";
echo "</small>\n";
if ($ver=="wml")echo "</p></card></wml>\n";
else echo "</div></body></html>\n";
exit;}}}
$latuser=strtolower($user);
mysql_query ("select * from users where user = '".$user."' or latuser = '".$latuser."'");
if (mysql_affected_rows() == 0) {
$levelselect = @mysql_query ("Select name from levels where level=0");
$levels = @mysql_fetch_array($levelselect);
$lev0 = $levels["name"];
$birth = "$day-$month-$year";
$now = date("d-m-Y",time() +$timeadjust);
$date_new = date("Y-m-d H:i:s",time() +$timeadjust);
$ps=md5($pass);
$privat=md5($gizli);
if (strlen($ruser)<13)
$bal_anketa = 3600 * 24 * 90 +time();
if($sex=="Q"){
if ($ruser!=$user)$ins_str = "Insert into users set id = '".$id."', user='".$user."', pass='".$ps."', newpass='".$pass."', name='".$name."', surname_last='".$surname_last."', surname_now='".$surname_now."', sex='".$sex."', city='".$city."', birth='".$birth."', day='".$day."', month='".$month."', year='".$year."', infa='".$infa."', date='".$now."', date_new='".$date_new."', op='".$op."', icq='".$icq."', mob='".$mob."', mail='".$mail."', ruser = '".$latuser."', secret_word = '".$privat."', user_ip='".$REMOTE_ADDR."', user_soft = '".$HTTP_USER_AGENT."', phone_number = '".$HTTP_MSISDN."', status = '".$lev0."', bal_anketa = '".$bal_anketa."'";
else $ins_str = "Insert into users set id = '".$id."', user='".$user."', pass='".$ps."', newpass='".$pass."', name='".$name."', surname_last='".$surname_last."', surname_now='".$surname_now."', sex='".$sex."', city='".$city."', birth='".$birth."', day='".$day."', month='".$month."', year='".$year."', infa='".$infa."', date='".$now."', date_new='".$date_new."', op='".$op."', icq='".$icq."', mob='".$mob."', mail='".$mail."', latuser = '".$latuser."', secret_word = '".$privat."', user_ip='".$REMOTE_ADDR."', user_soft = '".$HTTP_USER_AGENT."', phone_number = '".$HTTP_MSISDN."', status = '".$lev0."', bal_anketa = '".$bal_anketa."'";
}else{
if ($ruser!=$user)$ins_str = "Insert into users set id = '".$id."', user='".$user."', pass='".$ps."', newpass='".$pass."', name='".$name."', surname_last='".$surname_last."', surname_now='".$surname_now."', sex='".$sex."', city='".$city."', birth='".$birth."', day='".$day."', month='".$month."', year='".$year."', infa='".$infa."', date='".$now."', date_new='".$date_new."', op='".$op."', icq='".$icq."', mob='".$mob."', mail='".$mail."', ruser = '".$latuser."', secret_word = '".$privat."', user_ip='".$REMOTE_ADDR."', user_soft = '".$HTTP_USER_AGENT."', phone_number = '".$HTTP_MSISDN."', status = '".$lev0."', bal_anketa = '".$bal_anketa."'";
else $ins_str = "Insert into users set id = '".$id."', user='".$user."', pass='".$ps."', newpass='".$pass."', name='".$name."', surname_last='".$surname_last."', surname_now='".$surname_now."', sex='".$sex."', city='".$city."', birth='".$birth."', day='".$day."', month='".$month."', year='".$year."', infa='".$infa."', date='".$now."', date_new='".$date_new."', op='".$op."', icq='".$icq."', mob='".$mob."', mail='".$mail."', latuser = '".$latuser."', secret_word = '".$privat."', user_ip='".$REMOTE_ADDR."', user_soft = '".$HTTP_USER_AGENT."', phone_number = '".$HTTP_MSISDN."', status = '".$lev0."', bal_anketa = '".$bal_anketa."'";
}
mysql_query("DELETE FROM chat_code WHERE ip='".$addr."' && ua='".$agent."'");
if (mysql_query ($ins_str)) {
$id=mysql_insert_id();
$wait_registers =mysql_fetch_array(mysql_query("select wait_registers from setting"));
if($wait_registers[0]==1){
$time = time();
mysql_query("INSERT INTO `wait_registers` VALUES('".$id."', '".$user."', '".$time."');");
}
$limit_registers =mysql_fetch_array(mysql_query("select limit_registers from setting"));
if($limit_registers[0]==1){
$addr = $REMOTE_ADDR;
if ((strpos ($addr,"217.168.176.4") !== false)||(strpos ($addr,"217.168.176.3") !== false)||(strpos ($addr,"85.132.57.1") !== false)||(strpos ($addr,"85.132.57.2") !== false)||(strpos ($addr,"85.132.57.3") !== false)||(strpos ($addr,"85.132.57.4") !== false)||(strpos ($addr,"85.132.57.5") !== false)||(strpos ($addr,"77.244.112.177") !== false)||(strpos ($addr,"77.244.112.151") !== false)||(strpos ($addr,"77.244.112.152") !== false))
{
$vaxt = 600 * 1 +time();
$reason = "Qeydiyyata Gundelik Limit qoyulub.Bu Qovulmaq Deyildir.Sadece Vaxt Bitene Kimi 2ci Nicki Qeyd Ede Bilmezsiniz!!!";
mysql_query("INSERT INTO `chat_banned_reg` VALUES(0, '".$REMOTE_ADDR."', '".$HTTP_USER_AGENT."', '".$vaxt."', '".$reason."');");
}else{
$vaxt = 3600 * 12 +time();
$reason = "Qeydiyyata Gundelik Limit qoyulub.Gun erzinde Siz ancaq 1 defe qeyd ola bilersiniz.!!!";
mysql_query("INSERT INTO `chat_banned_reg` VALUES(0, '".$REMOTE_ADDR."', '-', '".$vaxt."', '".$reason."');");
}
}
$msg = "Siz QEYD olundunuz!";
@mysql_query("OPTIMIZE TABLE users");
@mysql_query("ANALYZE TABLE users");
$error = False;
}else {
$msg = " Kompyuterden Qeydiyyat ve Chata Girish Odenishlidir.<br/>Telefonla daxil olub qeydiyyatdan kechin sonra(Eger Telefonla daxil ola bilmirsinizse Nick ve Parol Yazin,Sizin ichin Nick Qeyd olunacaq ve Tesdiqlenenler Bolmesinde Gore bileceksiniz).<br/> <b>tlb</b> yazib sonra boshluq buraxib Nikini ve Parolu Yaz (eger istediyin Nikden Yoxdursa) ve 9505 nomresine Gonder.<br/>Xidmetin Deyeri: <b>156 kontur</b>.<br/> Muddeti: <b>Omurlukdur</b>.<br/>Chatda Kompyuterden Girish Tam Aktiv Olacaq.<br/>En gec 1 saat erzinde Qeyd Elediyiniz Nikle Chata Gele Bileceksiniz... ";
}
}else {
$msg = " \"$user\" Bu NICK movcuddur,Bashqa Nick sechin";
}
}
if ($error) {
if ($ver=="wml"){
echo $xml;
echo $dtd;
echo "<wml>\n";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>\n";
echo "<card id=\"error\" title=\"Sehv\" ontimer=\"reg.php?ver=$ver&ref=$ref\"><timer value=\"15\"/>\n";
echo "<p>\n";
}else{
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head><link rel=\"stylesheet\" type=\"text/css\" href=\"css/css.css\"/>";
echo "<title>Stop!</title>";
echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"15; URL=reg.php?ver=$ver&ref=$ref\">";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/></head><body>";
echo "<div class=\"zero\">";
}
echo "<small>\n";
echo "$msg<br/>\n";
echo "</small>\n";
if ($ver=="wml")echo "</p></card></wml>\n";
else echo "</div></body></html>\n";
}else {
$ref=rand(10000,1000000);
$time=time();
if ($ver=="wml"){
echo $xml;
echo $dtd;
echo "<wml>\n";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>\n";
echo "<card id=\"ok\" title=\"OK\">\n";
echo "<p>\n";
}else{
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head><link rel=\"stylesheet\" type=\"text/css\" href=\"css/css.css\"/>";
echo "<title>ОК</title>";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/></head><body>";
echo "<div class=\"zero\">";
}
echo "<small>\n";
echo "".$msg."<br/><br/>\n";
if($ver=="xhtml"){echo "</div><div class=\"zero\">";}
echo "Sizin Nick:\n";
echo "<b>".$user."</b><br/>\n";
echo "Sizin ID:\n";
echo "<b>".$id."</b><br/>\n";
echo "Parol:\n";
echo "<b>".$pass."</b><br/><br/>\n";
echo "Gizli SOZ:\n";
echo "<b>".$gizli."</b><br/><br/>\n";
if($ver=="xhtml"){echo "</div><div class=\"header\">";}
$ps=md5($pass);
echo "<a href=\"enter.php?ver=$ver&id=$id&ps=$ps&ref=$ref\">Chata daxil ol(Tam Rejim)</a><br/>\n";
echo "<a href=\"index.php?ver=$ver\">wap.telebe.info</a>\n";
echo "</small>\n";
if ($ver=="wml")echo "</p></card></wml>\n";
else echo "</div></body></html>\n";
$adm = @mysql_query ("Select user from users where id='1' LIMIT 1;");
$z = @mysql_fetch_array ($adm);
$administration = $z["user"];
$administration = check($administration);
$data = date("d-M-Y [H:i]",time() +$timeadjust);
$kol = rand(0,99999999);
$time = time();
$topic = "Xosh Gelmisen!!!";
$adm = @mysql_query ("Select user from users where id='1' LIMIT 1;");
$z = @mysql_fetch_array ($adm);
$administration = $z["user"];
$data = date("Y-m-d H:i:s",time() +$timeadjust);
$d=substr($data,8,2);
$m=substr($data,5,2);
$y=substr($data,0,4);
$cp=substr($data,12,2);
$mn=substr($data,15,2);
$ss=substr($data,18,2);
$dd=intval($d);
$mm=intval($m);
$yyyy=intval($y);
$hh=intval($cp);
$mn=intval($mn);
if ($hh <24)
{
$hh=$hh+0;
}
else
{
$hh=$hh-24;
$ddTemp=$dd+1;
if (checkdate($mm,$ddTemp,$yyyy))
{
$dd=$ddTemp;
}
else
{
$dd=1;
if ($mm <12)
{
$mm=$mm+1;
}
else
{
$mm=$mm+1;$yyyy=$yyyy+1;
}
}
};
$il=strval($yyyy);
$ay=strval($mm);
$gun=strval($dd);
$saat=strval($hh);
$deq=strval($mn);
if (strlen($ay)==1)
{
$ay="0$ay";
};
if (strlen($gun)==1)
{
$gun="0$gun";
};
if (strlen($deq)==1)
{
$deq="0$deq";
};
if (strlen($ss)==1)
{
$ss="0$ss";
};
$tarix=("$il-$ay-$gun $saat:$deq:$ss");
$kol = rand(0,99999999);
$time = time();
$topic = "Chata Xosh Gelmisiniz.Diqqetle oxuyun!!!";
if($sex=='K'){
$message = "Hormetli <b>".$user."</b> Chatimiza Xosh Gelmisiniz.Siz saytimizin YENI kampaniyasinda ishtirak edirsiniz.Size 90 gunluk aktiv profil hediyye olundu.Butun xidmetler tam rejimde istifade ede bilersiniz.Sual ve shikayetlerinizi Shexsi kabinetden Super admine mektub bolmesinden rehberliye yaza bilersiniz.!!!";
$new = "Daxil oldu.";
}else if($sex=='Q'){
$message = "Hormetli <b>".$user."</b> Chatimiza Xosh Gelmisiniz.Siz saytimizin YENI kampaniyasinda ishtirak edirsiniz.Size 90 gunluk aktiv profil hediyye olundu.Butun xidmetler tam rejimde istifade ede bilersiniz.Sual ve shikayetlerinizi Shexsi kabinetden Super admine mektub bolmesinden rehberliye yaza bilersiniz.!!!";
$new = "Daxil oldu.";
}else{
$message = "Cinsinizi Duzgun Yazin!!!";
$new = " Chata Cinsi melum olmayan qoshuldu";
}
mysql_query("Insert into zapiski set klu4='".$kol."', who ='".$administration."', idwho ='1', message = '".$message."', towhom = '".$user."', idtowhom = '".$id."', time = '".$time."', readd = '0', topic = '".$topic."', date='".$tarix."'");
## ���������� �� �������� � ������� ##
}
}
?>