Salam, Qonaq
 Əsas Səhifə | GirişQeydiyyatDil seç: AZ  

Son Aktivlik

Master Forum | Skript / Komek | Komek Lazimdir
Axtarış | Başliq Fayllari (1)
  Mafiya Oyununda Komek
Dj_Master Dj_Master [Off] [#] (14.09.2011 / 12:11)
Hosting Provayder
salamlar men mafiya oyunu qurdum amma qeyd olmaq olmur kim bilir bu niye awbka verir ki?qeydiyyati .... http://mixaz.biz/games/mafia(tablicu)/
Dj_KaSiMoFF Dj_KaSiMoFF [Off] [#] (14.09.2011 / 12:13)
baza parolun ver mene baxim
DomeNick DomeNick [Off] [#] (14.09.2011 / 12:14)
Yixilanda durmagi,vurulunda vurmagi bacarmalisan heyatda!
mysql a elaqe yaranmir
firat firat [Off] [#] (14.09.2011 / 12:14)
@_@_@
reg.phpni yaz bura baxim
firat firat [Off] [#] (14.09.2011 / 12:17)
@_@_@
yazda
Dj_KaSiMoFF Dj_KaSiMoFF [Off] [#] (14.09.2011 / 12:17)
DomeNick, mysqlden deyl
firat firat [Off] [#] (14.09.2011 / 12:18)
@_@_@
reg.php de problem var
Dj_Master Dj_Master [Off] [#] (14.09.2011 / 12:18)
Hosting Provayder
firat (14.09.2011/16:17)
yazda
buda reg.php

<?php
header("Cache-Control: no-cache");
header("Content-type:text/vnd.wap.wml");
require("inc.php");
if(!@$go)
{
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">\n";
echo "<wml>\n";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>\n";
echo "<card id=\"reg\" title=\"Регистрация\">\n";
echo "<p mode=\"wrap\">\n";
echo "*Желаемый ник:<br/>\n";
echo "<input name=\"user\" maxlength=\"15\" title=\"nick\"/><br/>\n";
echo "*Пароль:<br/>\n";
echo "<input name=\"pass\" maxlength=\"10\" title=\"pass\"/><br/>\n";
echo "*Повторите пароль:<br/>\n";
echo "<input name=\"pass2\" maxlength=\"10\" title=\"verpass\"/><br/>\n";
echo "*Подпольная кличка:<br/>\n";
echo "<input name=\"name\" maxlength=\"15\" title=\"name\"/><br/>\n";
echo "Пол:<br/>\n";
echo "<select name=\"sex\">\n";
echo "<option value=\"М\">&#x041C;</option>\n";
echo "<option value=\"Ğ–\">&#x0416;</option>\n";
echo "</select><br/>\n";
echo "*Дата рождения:<br/>\n";
echo "День:<input name=\"day\" maxlength=\"2\" title=\"day\" format=\"*N\"/><br/>\n";
echo "Месяц:<input name=\"month\" maxlength=\"2\" title=\"month\" format=\"*N\"/><br/>\n"; echo "Год:<input name=\"year\" maxlength=\"4\" title=\"year\" format=\"*N\"/><br/>\n";
echo "*Город:<br/>\n";
echo "<input name=\"city\" maxlength=\"40\" title=\"city\"/><br/>\n";

echo "*Кратко о себе:<br/>\n";
echo "<input name=\"infa\" maxlength=\"200\" title=\"infa\"/><br/>\n";
echo "<anchor title=\"go\">OK<go href=\"reg.php?go=reg\" method=\"post\">\n";
echo "<postfield name=\"user\" value=\"$(user)\"/>\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=\"day\" value=\"$(day)\"/>\n";
echo "<postfield name=\"month\" value=\"$(month)\"/>\n";
echo "<postfield name=\"year\" value=\"$(year)\"/>\n";
echo "<postfield name=\"city\" value=\"$(city)\"/>\n";
echo "<postfield name=\"infa\" value=\"$(infa)\"/>\n";
echo "</go></anchor><br/>\n";
echo "*********<br/>\n";
echo "<a href=\"../index.php\">На главную</a>\n";
echo "</p>\n";
echo "</card>\n";
echo "</wml>\n";
exit;
}
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 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;
}

$error = true;
$user = trim(" $user ");
$user = ereg_replace(" +"," ",$user);
$pass = trim(" $pass ");
$pass = ereg_replace(" +"," ",$pass);
$name = trim(" $name ");
$name = ereg_replace(" +"," ",$name);
$day = trim(" $day ");
$day = ereg_replace(" +"," ",$day);
$month = trim(" $month ");
$month = ereg_replace(" +"," ",$month);
$year = trim(" $year ");
$year = ereg_replace(" +"," ",$year);
$city = trim(" $city ");
$city = ereg_replace(" +"," ",$city);

$infa = trim(" $infa ");
$infa = ereg_replace(" +"," ",$infa);
$infa=substr($infa,0,400);
$user = eregi_replace("\\(P!\\)", "0", $user);
$user = eregi_replace("\\[P!\\]", "0", $user);
$user = str_replace("_", "0", $user);
$user = str_replace(" ", "_", $user);
$bak = $user;
$bak = replace_rus($bak);
$emp = "Не заполнены обязательные поля!";

if ($user === "") {
$msg = "$emp";
} elseif ($pass === "") {
$msg = "$emp";
}elseif (strpos($user,"|")!==false) {$msg = "В нике обнаружены запрешенные знаки!";}

elseif((!preg_match("!^[a-z1-9@\\*\\)\\(\\?\\!\\-_\\.\\]\\[=~]+$!i",$user))&&(!preg_match("!^[1-9@\\*\\)\\(\\?\\!\\-_\\]\\|\\[=~]+$!i",$bak))) {$msg = "В нике обнаружены запрешенные знаки!";}

elseif(!preg_match("!^[a-z0-9]+$!i",$pass)) {
$msg = "В пароле обнаружены запрешенные знаки!";
} elseif ($name == "") {
$msg = "$emp";
} elseif ($day == "") {
$msg = "$emp";
} elseif ($month == "") {
$msg = "$emp";
} elseif ($year == "") {
$msg = "$emp";
} elseif ($city == "") {
$msg = "$emp";
} elseif ($infa == "") {
$msg = "$emp";
} elseif ($pass !== $pass2) {
$msg = "пароли не совпадают!";
} else {


$user = HtmlSpecialChars($user);
$pass = HtmlSpecialChars($pass);
$name = HtmlSpecialChars($name);
$day = HtmlSpecialChars($day);
$month = HtmlSpecialChars($month);
$year = HtmlSpecialChars($year);
$city = HtmlSpecialChars($city);

$infa = HtmlSpecialChars($infa);

$user = str_replace("", "", $user);
$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);
$city = str_replace("", "", $city);
$city = str_replace("", "", $city);
$city = str_replace("", "", $city);
$city = str_replace("", "", $city);
$city = str_replace("", "", $city);
$city = str_replace("", "", $city);

$infa = str_replace("", "", $infa);
$infa = str_replace("", "", $infa);
$infa = str_replace("", "", $infa);
$infa = str_replace("", "", $infa);
$infa = str_replace("", "", $infa);
$infa = str_replace("", "", $infa);

$user = str_replace("$", "$$", $user);
$user = str_replace("|", "&#0166;", $user);
$pass = str_replace("$", "$$", $pass);
$pass = str_replace("|", "&#0166;", $pass);
$name = str_replace("$", "$$", $name);
$name = str_replace("|", "&#0166;", $name);
$day = str_replace("$", "$$", $day);
$day = str_replace("|", "&#0166;", $day);
$month = str_replace("$", "$$", $month);
$month = str_replace("|", "&#0166;", $month);
$year = str_replace("$", "$$", $year);
$year = str_replace("|", "&#0166;", $year);
$city = str_replace("$", "$$", $city);
$city = str_replace("|", "&#0166;", $city);

$infa = str_replace("$", "$$", $infa);
$infa = str_replace("|", "&#0166;", $infa);

$name = str_replace("'", "&#8216;", $name);
$day = str_replace("'", "&#8216;", $day);
$month = str_replace("'", "&#8216;", $month);
$year = str_replace("'", "&#8216;", $year);
$city = str_replace("'", "&#8216;", $city);
$infa = str_replace("'", "&#8216;", $infa);

$open=fopen("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 version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">\n";
echo "<wml>\n";
echo "<card id=\"error\" title=\"error\" ontimer=\"reg.php\"><timer value=\"10\"/>\n";
echo "<p>\n";
echo "Этот ник забанен!\n";
echo "</p>\n";
echo "</card>\n";
echo "</wml>\n";
exit;
}

$link = @mysql_connect ($MySQL_Hostname, $MySQL_Username, $MySQL_Password)
or die ("<wml>
<card id=\"error\" title=\"error\">
<do type=\"prev\" label=\"Back\"><prev/></do><p align=\"center\">Can not connect to MySQL</p>
</card>
</wml>");

if (mysql_select_db ($MySQLDatabasename)) {
$ruser = rus_to_k($user);
$latuser=strtolower($user);
mysql_query ("select * from mafusers where ruser = '".$ruser."'");
if (mysql_affected_rows()==0) $est = false; else if ($ruser!=$user) $est = true;
$result = mysql_query ("Select * from mafusers where latuser = '".$latuser."'");

if ((mysql_affected_rows() == 0)&&($est==false)) {

$birth = "$day-$month-$year";
$now = date("j-m-Y");
if (strlen($ruser)<13)
if ($ruser!=$user)$ins_str = "Insert into mafusers set user='".$user."', pass='".$pass."', name='".$name."', sex='".$sex."', birth='".$birth."', city='".$city."', infa='".$infa."', date='".$now."', ruser = '".$ruser."'";
else $ins_str = "Insert into mafusers set user='".$user."', pass='".$pass."', name='".$name."', sex='".$sex."', birth='".$birth."', city='".$city."', infa='".$infa."', date='".$now."', latuser = '".$latuser."'";
if (mysql_query ($ins_str)) {
$id=mysql_insert_id();
$msg = "Вы успешно зарегистрированы!";
$error = False;
} else {
$msg = " ".mysql_error()." ";

}
} else {
$msg = "Указанный вам ник \"$user\" уже занят, выберите другой";
}
} else {
$msg = "error select the database...";
}
mysql_close($link);
}
if ($error) {
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">\n";
echo "<wml>\n";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>\n";
echo "<card id=\"error\" title=\"error\" ontimer=\"reg.php\"><timer value=\"15\"/>\n";
echo "<p>\n";
echo "$msg<br/>\n";
echo "</p>\n";
echo "</card>\n";
echo "</wml>\n";

} else {

$ref=rand(10000,1000000);

echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">\n";
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";
echo "$msg<br/>\n";
echo "Ваш ник:<br/>\n";
echo "$user<br/>\n";
echo "Пароль:<br/>\n";
echo "$pass<br/><br/>\n";
echo "<a href=\"enter.php?id=$id&amp;ps=$pass&amp;ref=$ref\">Играть!</a><br/>\n";
echo "<a href=\"../index.php\">На главную</a>\n";
echo "</p>\n";
echo "</card>\n";
echo "</wml>\n";
}
?>
firat firat [Off] [#] (14.09.2011 / 12:24)
@_@_@
qaqa sen bura skripti at men qurum bura atim ok?
Dj_Master Dj_Master [Off] [#] (14.09.2011 / 12:26)
Hosting Provayder
firat (14.09.2011/16:24)
qaqa sen bura skripti at men qurum bura atim ok?
biraz tercume etsen ela olar
Fayl:
mafia_tablicu_.zip (0 кб.)
Yüklenib: 30 defe
Dj_KaSiMoFF Dj_KaSiMoFF [Off] [#] (14.09.2011 / 12:27)
qaqaw sen skripti ver mene bazavida ver mene qurum. sen o reg.php ni edit elemisen ona gore bu gune duwub
Dj_Master Dj_Master [Off] [#] (14.09.2011 / 12:29)
Hosting Provayder
scripti atdim bura
firat firat [Off] [#] (14.09.2011 / 12:37)
@_@_@
okkk
Dj_Master Dj_Master [Off] [#] (26.09.2011 / 22:29)
Hosting Provayder
verdimde scripti ne oldu hec kesden ses cixmadi
  Cemi: 14

Mövzuya Baxanlar (0 nəfər)
Müellife göre filtreleme
Mövzunu YükleForuma Keç
Üst Yenilikler
 Əsas Səhifə  Onlayn: 3 / 13 nəfər

WapUsta.Net - Wap Ustaların Mekanı

© WapUsta.Net