Here are a game i found on a romanian script post anything that require for it to be used ill post it
Code:
<?php include("config.php"); include("core.php"); echo "<?xml version=\"1.0\"?>"; echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">"; ?> <html xmlns="http://www.w3.org/1999/xhtml"> <?php echo "<head>"; echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"http://alexwap.org/themes/alex.css\"/>"; echo "<title>AlexWap.Org</title>"; echo "</head>"; ?> <html> <?php $bcon = connectdb(); if (!$bcon) { echo "<card id=\"main\" title=\"Lib3rty (ERROR!)\">"; echo "<p align=\"center\">"; echo "<img src=\"images/exit.gif\" alt=\"*\"/><br/>"; echo "Eroare, nu se poate conecta la baza d date!<br/><br/>"; echo "Aceasta eroare apare de obicei cand care serverul isi va reveni in cateva secunde!Daca problema persista va rugam sa luati legatura cat mai curand posibil cu SyrAng3l72<br/><br/>"; //echo "Soon, we will offer services that doesn't depend on MySQL databse to let you enjoy our site, while the database is not connected<br/>"; echo "<b>Va multumim foarte mult pentru intelegere!</b>"; echo "</p>"; echo "</card>"; echo "</wml>"; exit(); } $brws = explode(" / ",$HTTP_USER_AGENT); $ubr = $brws[0]; $uip = getip(); $action = $_GET["action"]; $sid = $_GET["sid"]; $page = $_GET["page"]; $who = $_GET["who"]; $uid = getuid_sid($sid); cleardata(); if(isipbanned($uip,$ubr)) { if(!isshield(getuid_sid($sid))) { echo "<card id=\"main\" title=\"$stitle.com\">"; echo "<p align=\"center\">"; echo "<img src=\"images/notok.gif\" alt=\"x\"/><br/>"; echo "Acest IP este blocat!<br/>"; echo "<br/>"; echo "Acest browser a fost banat!Daca ai scutul actiat incearca sa te loghezi!<br/><br/>"; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE penalty='2' AND ipadd='".$uip."' AND browserm='".$ubr."' LIMIT 1 ")); //echo mysql_error(); $remain = $banto[0] - time(); $rmsg = gettimemsg($remain); echo "Timp ramas pana la debanarea IP-ului: $rmsg<br/><br/>"; echo "</p>"; echo "<p>"; echo "Numele: <input name=\"loguid\" format=\"*x\" maxlength=\"15\"/><br/>"; echo "Parola: <input type=\"password\" name=\"logpwd\" maxlength=\"30\"/><br/>"; echo "<anchor>Autentificare<go href=\"login.php\" method=\"get\">"; echo "<postfield name=\"loguid\" value=\"$(loguid)\"/>"; echo "<postfield name=\"logpwd\" value=\"$(logpwd)\"/>"; echo "</go></anchor>"; echo "</p>"; echo "</card>"; echo "</wml>"; exit(); } } if(($action != "") && ($action!="")) { $uid = getuid_sid($sid); if((islogged($sid)==FALSE)||($uid==0)) { echo "<card id=\"main\" title=\"$stitle.com\">"; echo "<p align=\"center\">"; echo "<img src=\"images/notok.gif\" alt=\"X\"/>Nu esti autentificat<br/>"; echo "Sau sesiunea ta a expirat<br/><br/>"; echo "»<a href=\"index.php\">Autentificare</a>«"; echo "</p>"; echo "</card>"; echo "</wml>"; exit(); } } //echo isbanned($uid); if(isbanned($uid)) { echo "<card id=\"main\" title=\"$stitle.com\">"; echo "<p align=\"center\">"; echo "<img src=\"images/notok.gif\" alt=\"x\"/><br/>"; echo "Esti <b>Banat(a)</b><br/>"; $banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'")); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "Timp ramas pana la debanare: $rmsg<br/>"; $nick = getnick_uid($banto[2]); echo "By: $nick<br/>"; echo "Motiv ban: $banres[0]"; //echo "<a href=\"index.php\">Login</a>"; echo "</p>"; echo "</card>"; echo "</wml>"; exit(); } $res = mysql_query("UPDATE ibwf_users SET browserm='".$ubr."', ipadd='".$uip."' WHERE id='".getuid_sid($sid)."'"); ///////////////////////////////////time $res = mysql_fetch_array(mysql_query("SELECT lastact FROM ibwf_users WHERE id='".$uid."'")); $lastact = $res[0]; $atime = time() - $lastact; if($atime<1800){ $res = mysql_fetch_array(mysql_query("SELECT otime FROM ibwf_users where id='".$uid."'")); $otime = $res[0] + $atime; $res = mysql_query("UPDATE ibwf_users SET otime='".$otime."' where id='".$uid."'"); } /// ////////////////////////////////////////MAIN PAGE if ($action == "main"){ addonline(getuid_sid($sid),"Joaca la loterie",""); echo "<card id=\"Loteria $stitle\" title=\"Loteria n3sklub\">"; echo "<p><small>"; echo "Cum pot juca la loterie?<br/>"; echo "Foarte simplu...<br/>"; echo "Nu trebuie sa ai decat 50 de game pluses si putina bafta<br/>"; echo "Esti pregatit sa intri in joc?<br/>"; $pluspari = getplusses(getuid_sid($sid)); if ($pluspari < 50) { echo "<b>Ne pare rau dar ai nevoeie de 50 de game pluses pentru a intra in joc</b><br/>"; } else{ echo "»<a href=\"keno.php?action=start&sid=$sid\">Intra in joc</a><br/>"; } echo "</small></p>"; echo "<p align=\"center\">"; echo "<small>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Prim</a><br/>"; echo "</small></p>"; echo "<p><small>"; echo "P.S.:pentru a juca la loterie trebuie sa ai peste 18 ani.pmpl"; echo "</small></p>"; echo "</card>"; } /////////////////////Play the game if ($action == "play"){ addonline(getuid_sid($sid),"Joaca la loterie",""); echo "<card id=\"Loteria $stitle\" title=\"Loteria n3sklub\">"; echo "<p align=\"center\">"; echo "<small>"; $keno_numbers = array ( "0" => "", "1" => "", "2" => "", "3" => "", "4" => "", "5" => "", "6" => "", "7" => "", "8" => "", "9" => "", "10" => "", "11" => "", "12" => "", "13" => "", "14" => "", "15" => "", "16" => "", "17" => "", "18" => "", "19" => ""); $player_numbers[0] = $_POST["numbers0"]; $player_numbers[1] = $_POST["numbers1"]; $player_numbers[2] = $_POST["numbers2"]; $player_numbers[3] = $_POST["numbers3"]; $player_numbers[4] = $_POST["numbers4"]; $player_numbers[5] = $_POST["numbers5"]; $player_numbers[6] = $_POST["numbers6"]; $player_numbers[7] = $_POST["numbers7"]; $player_numbers[8] = $_POST["numbers8"]; $player_numbers[9] = $_POST["numbers9"]; $player_numbers[10] = $_POST["numbers10"]; $player_numbers[11] = $_POST["numbers11"]; $player_numbers[12] = $_POST["numbers12"]; $player_numbers[13] = $_POST["numbers13"]; $player_numbers[14] = $_POST["numbers14"]; $player_numbers[15] = $_POST["numbers15"]; $player_numbers[16] = $_POST["numbers16"]; $player_numbers[17] = $_POST["numbers17"]; $player_numbers[18] = $_POST["numbers18"]; $player_numbers[19] = $_POST["numbers19"]; $i = 0; while ($i < 20) { $temp = rand(1,99); if (!in_array($temp,$keno_numbers)) { $keno_numbers[$i] = $temp; $i++; } } sort($keno_numbers); sort($player_numbers); $i = 0; $points = 0; while ($i < 20) { if (in_array($keno_numbers[$i],$player_numbers)) $points++; $i++; } $again = " again!"; echo "<b>Numerele castigatoare sunt:</b><br/>"; $w = 0; while ($w < 20) { echo " $keno_numbers[$w]"; $w++; if ($w == 10) echo "<br/>"; } echo "<br/>----<br/><b>Numerele dumneavoastra sunt:</b><br/>"; $w = 0; while ($w < 20) { echo " $player_numbers[$w]"; $w++; if ($w == 10) echo "<br/>"; } echo "<br/><b>Ai <u>$points</u> Numere castigatoare!</b><br/>"; $whonick = getuid_sid($sid); $ugpl = mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id='".$whonick."'")); $gpl = $points * 2; $ugpl = $gpl + $ugpl[0]; $res = mysql_query("UPDATE ibwf_users SET gplus='".$ugpl."' WHERE id='".$whonick."'"); if($pluspari<0) { echo "<br/>SOMETHING IS WRONG<br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Prim</a>"; echo "</p>"; echo "</card>"; echo "</wml>"; exit(); } if(res) { echo "<img src=\"images/ok.gif\" alt=\"o\"/>Ai castigat $gpl plusuri<br/>"; } echo "<a href=\"keno.php?action=start&sid=$sid\">Joaca din nou</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Prim</a>"; echo "</small></p>"; echo "</card>"; } ////////////////Start the game if ($action == "start"){ addonline(getuid_sid($sid),"Joaca la loterie",""); echo "<card id=\"Loteria $stitle\" title=\"Loteria n3sklub\">"; echo "<p><small>"; echo "Tasteaza 20 de cifre cuprinse intre 1 si 99:<br/>"; echo "<form action=\"keno.php?action=play&sid=$sid\" method=\"post\">"; echo "<input name=\"pmtext0\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext1\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext2\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext3\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext4\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext5\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext6\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext7\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext8\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext9\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext10\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext11\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext12\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext13\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext14\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext15\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext16\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext17\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext18\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<input name=\"pmtext19\" format=\"NN\" maxlength=\"2\"/><br/>"; echo "<postfield name=\"numbers0\" value=\"$(pmtext0)\"/>"; echo "<postfield name=\"numbers1\" value=\"$(pmtext1)\"/>"; echo "<postfield name=\"numbers2\" value=\"$(pmtext2)\"/>"; echo "<postfield name=\"numbers3\" value=\"$(pmtext3)\"/>"; echo "<postfield name=\"numbers4\" value=\"$(pmtext4)\"/>"; echo "<postfield name=\"numbers5\" value=\"$(pmtext5)\"/>"; echo "<postfield name=\"numbers6\" value=\"$(pmtext6)\"/>"; echo "<postfield name=\"numbers7\" value=\"$(pmtext7)\"/>"; echo "<postfield name=\"numbers8\" value=\"$(pmtext8)\"/>"; echo "<postfield name=\"numbers9\" value=\"$(pmtext9)\"/>"; echo "<postfield name=\"numbers10\" value=\"$(pmtext10)\"/>"; echo "<postfield name=\"numbers11\" value=\"$(pmtext11)\"/>"; echo "<postfield name=\"numbers12\" value=\"$(pmtext12)\"/>"; echo "<postfield name=\"numbers13\" value=\"$(pmtext13)\"/>"; echo "<postfield name=\"numbers14\" value=\"$(pmtext14)\"/>"; echo "<postfield name=\"numbers15\" value=\"$(pmtext15)\"/>"; echo "<postfield name=\"numbers16\" value=\"$(pmtext16)\"/>"; echo "<postfield name=\"numbers17\" value=\"$(pmtext17)\"/>"; echo "<postfield name=\"numbers18\" value=\"$(pmtext18)\"/>"; echo "<postfield name=\"numbers19\" value=\"$(pmtext19)\"/>"; echo "<input type=\"submit\" value=\"Joaca\"/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Prim</a>"; echo "</small></p>"; echo "</card>"; } ?> </wml>
Comment