Loto 20/99

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Loto 20/99

    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 "&#187;<a href=\"index.php\">Autentificare</a>&#171;";
          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 "&#187;<a href=\"keno.php?action=start&amp;sid=$sid\">Intra in joc</a><br/>";
    	}
    	  echo "</small></p>";
    	  echo "<p align=\"center\">";
    	echo "<small>";
    	echo "<a href=\"index.php?action=main&amp;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&amp;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&amp;sid=$sid\">Joaca din nou</a><br/>";
    echo "<a href=\"index.php?action=main&amp;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&amp;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&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
      echo "Prim</a>";
      echo "</small></p>";
        echo "</card>";
    }
    ?>
    </wml>

    #2
    here is it in english
    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>$sitename</title>";
    echo "</head>";
    ?>
    
    <html>
    
    
    <?php
    
    $bcon = connectdb();
    if (!$bcon)
    {
        echo "<card id=\"main\" title=\"$sitename (ERROR!)\">";
        echo "<p align=\"center\">";
        echo "<img src=\"images/exit.gif\" alt=\"*\"/><br/>";
        echo "Error can not connect to the d data!<br/><br/>";
        echo "This error usually occurs when the server will return in a few seconds! If the problem persists please contact as soon as possible<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>Thank you very much for understanding!</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=\"$sitename\">";
          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 "The time until IP debanarea: $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=\"$sitename\">";
          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 "&#187;<a href=\"index.php\">Login</a>&#171;";
          echo "</p>";
          echo "</card>";
          echo "</wml>";
          exit();
        }
        
        
        
    }
    //echo isbanned($uid);
    if(isbanned($uid))
        {
            echo "<card id=\"main\" title=\"$sitename\">";
          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),"Play Lotto","");
    echo "<card id=\"Lotto $sitename\" title=\"$sitename\">";
          echo "<p><small>";
    	echo "Dnt know how to play?<br/>";
    	echo "Very simple...<br/>";
    	echo "No need to have only 50 range pluses and some luck<br/>";
    	echo "Are you ready to play the game?<br/>";
    	$pluspari = getplusses(getuid_sid($sid));
    	if ($pluspari < 50)
    	{
    		echo "<b>Sorry but you nevoeie 50 pluses game to get in game</b><br/>";
    		
    	}
    	else{
    	echo "&#187;<a href=\"keno.php?action=start&amp;sid=$sid\">Enter Lotto</a><br/>";
    	}
    	  echo "</small></p>";
    	  echo "<p align=\"center\">";
    	echo "<small>";
    	echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a><br/>";
    echo "</small></p>";
    echo "<p><small>";
     echo "PS: to play the lottery you must have over 18 ani.pmpl";
      echo "</small></p>";
        echo "</card>";
    }
    /////////////////////Play the game
    if ($action == "play"){
    addonline(getuid_sid($sid),"Play Lotto","");
    echo "<card id=\"Lotto $sitename\" title=\"$sitename\">";
          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>Winning numbers are:</b><br/>";
    	$w = 0;
    	while ($w < 20)
    	{
    		echo " $keno_numbers[$w]";
    		$w++;
    		if ($w == 10)
    			echo "<br/>";
    	}
    	echo "<br/>----<br/><b>Your numbers are:</b><br/>";
    	$w = 0;
    	while ($w < 20)
    	{
    		echo " $player_numbers[$w]";
    		$w++;
    		if ($w == 10)
    			echo "<br/>";
    	}
    	echo "<br/><b>For <u>$points</u> Winning numbers!</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&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    		echo "</p>";
    		echo "</card>";
    		echo "</wml>";
    		exit();
    	}
    	
    	if(res)
    	{
    		echo "<img src=\"images/ok.gif\" alt=\"o\"/>You won $gpl overs<br/>";
    	}
    	echo "<a href=\"keno.php?action=start&amp;sid=$sid\">Play Lotto</a><br/>";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    echo "</small></p>";
     echo "</card>";
     }
    ////////////////Start the game
    if ($action == "start"){
    addonline(getuid_sid($sid),"Play the lottery","");
    echo "<card id=\"Lotto $sitename\" title=\"$sitename\">";
          echo "<p><small>";
    	echo "Enter 20-digit between 1 and 99:<br/>";
    echo "<form action=\"keno.php?action=play&amp;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=\"Play\"/>";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
      echo "Home</a>";
      echo "</small></p>";
        echo "</card>";
    }
    ?>
    </wml>

    Comment


      #3
      from which script did you took this out?
      as theres missing keno.php ...
      It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
      ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
      ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
      キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

      Comment


        #4
        oh yea forgot to say save this page as keno.php its a romanian script alexwap

        Comment


          #5
          Originally posted by riderz View Post
          oh yea forgot to say save this page as keno.php its a romanian script alexwap
          ah lol i just saw that file needs to be saved as keno.php lmao
          It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
          ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
          ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
          キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

          Comment


            #6
            hehe yea its a nice loto code this one

            Comment


              #7
              Originally posted by riderz View Post
              hehe yea its a nice loto code this one
              well... seems to be very nice idea...
              though it needs to be completely recoded..
              as coding is mixed xhtml and wml...
              so this cant work properly on phones...
              it doesnt even work with firefox...
              only possible to se script in action
              from opera if you reparse site as html lol
              It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
              ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
              ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
              キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

              Comment


                #8
                here are one ive made xhtml fully so there no wml in here
                Code:
                <?php
                include("config.php");
                include("core.php");
                include("xhtmlfunctions.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>$sitename</title>";
                echo "</head>";
                ?>
                
                <html>
                
                
                <?php
                
                $bcon = connectdb();
                if (!$bcon)
                {
                     $pstyle = gettheme($sid);
                  echo xhtmlhead("$stitle",$pstyle);
                    echo "<p align=\"center\">";
                    echo "<img src=\"images/exit.gif\" alt=\"*\"/><br/>";
                    echo "Error can not connect to the d data!<br/><br/>";
                    echo "This error usually occurs when the server will return in a few seconds! If the problem persists please contact as soon as possible<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>Thank you very much for understanding!</b>";
                    echo "</p>";
                
                    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)))
                      {
                        $pstyle = gettheme($sid);
                  echo xhtmlhead("$stitle",$pstyle);
                      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 "The time until IP debanarea: $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>";
                
                      exit();
                      }
                    }
                if(($action != "") && ($action!=""))
                {
                    $uid = getuid_sid($sid);
                    if((islogged($sid)==FALSE)||($uid==0))
                    {
                        $pstyle = gettheme($sid);
                  echo xhtmlhead("$stitle",$pstyle);
                      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\">Login</a>«";
                      echo "</p>";
                
                      exit();
                    }
                
                
                
                }
                //echo isbanned($uid);
                if(isbanned($uid))
                    {
                        $pstyle = gettheme($sid);
                  echo xhtmlhead("$stitle",$pstyle);
                      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>";
                         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),"Play Lotto","");
                 $pstyle = gettheme($sid);
                  echo xhtmlhead("$stitle",$pstyle);
                      echo "<p><small>";
                	echo "Dnt know how to play?<br/>";
                	echo "Very simple...<br/>";
                	echo "No need to have only 50 range pluses and some luck<br/>";
                	echo "Are you ready to play the game?<br/>";
                	$pluspari = getplusses(getuid_sid($sid));
                	if ($pluspari < 50)
                	{
                		echo "<b>Sorry but you nevoeie 50 pluses game to get in game</b><br/>";
                
                	}
                	else{
                	echo "»<a href=\"keno.php?action=start&amp;sid=$sid\">Enter Lotto</a><br/>";
                	}
                	  echo "</small></p>";
                	  echo "<p align=\"center\">";
                	echo "<small>";
                	echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                echo "Home</a><br/>";
                echo "</small></p>";
                echo "<p><small>";
                 echo "PS: to play the lottery you must have over 18 ani.pmpl";
                  echo "</small></p>";
                   }
                /////////////////////Play the game
                if ($action == "play"){
                addonline(getuid_sid($sid),"Play Lotto","");
                 $pstyle = gettheme($sid);
                  echo xhtmlhead("$stitle",$pstyle);
                      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>Winning numbers are:</b><br/>";
                	$w = 0;
                	while ($w < 20)
                	{
                		echo " $keno_numbers[$w]";
                		$w++;
                		if ($w == 10)
                			echo "<br/>";
                	}
                	echo "<br/>----<br/><b>Your numbers are:</b><br/>";
                	$w = 0;
                	while ($w < 20)
                	{
                		echo " $player_numbers[$w]";
                		$w++;
                		if ($w == 10)
                			echo "<br/>";
                	}
                	echo "<br/><b>For <u>$points</u> Winning numbers!</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&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                echo "Home</a>";
                		echo "</p>";
                 		exit();
                	}
                
                	if(res)
                	{
                		echo "<img src=\"images/ok.gif\" alt=\"o\"/>You won $gpl overs<br/>";
                	}
                	echo "<a href=\"keno.php?action=start&amp;sid=$sid\">Play Lotto</a><br/>";
                echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                echo "Home</a>";
                echo "</small></p>";
                
                 }
                ////////////////Start the game
                if ($action == "start"){
                addonline(getuid_sid($sid),"Play the lottery","");
                 $pstyle = gettheme($sid);
                  echo xhtmlhead("$stitle",$pstyle);
                      echo "<p><small>";
                	echo "Enter 20-digit between 1 and 99:<br/>";
                echo "<form action=\"keno.php?action=play&amp;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=\"Play\"/><br/>";
                  echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                  echo "Home</a>";
                  echo "</small></p>";
                
                }
                ?>

                Comment


                  #9
                  ok m8 need to add this in sql if u dnt have it

                  ibwf_users

                  `otime` int(100) NOT NULL default '0',
                  `mtime` int(100) NOT NULL default '0',

                  Comment


                    #10
                    Originally posted by riderz View Post
                    ok m8 need to add this in sql if u dnt have it

                    ibwf_users

                    `otime` int(100) NOT NULL default '0',
                    `mtime` int(100) NOT NULL default '0',
                    or delete this part
                    PHP Code:
                    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."'");
                    }
                    /// 
                    <?php unlink('World/Europe/Romania.country'); ?>

                    Comment

                    Working...
                    X