plz anyone help me about lava

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

    plz anyone help me about lava

    my need Golden Lotto file of Lava script....plz anyone give it...plz

    #2
    Maybe it can help u !

    ~> goldencoin.php
    PHP Code:
    <?php
    header
    ("Content-type: text/vnd.wap.wml");
    header("Cache-Control: no-store, no-cache, must-revalidate");
    echo 
    "<?xml version=\"1.0\"?>";
    echo 
    "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""" \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
    ?>
    <wml>
    <?php
    include("config.php");
    include(
    "core.php");
    connectdb();
    $action cleanQuery($_GET["action"]);
    $sid cleanQuery($_GET["sid"]);
    $uid isnum((int)getuid_sid($sid));
    $sitename mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'"));
    $sitename $sitename[0];
    if((
    islogged($sid)==false)||($uid==0))
        {
            echo 
    "<card id=\"main\" title=\"$sitename\">";
          echo 
    "<p align=\"center\"><small>";
          echo 
    "You are not logged in<br/>";
          echo 
    "Or Your session has been expired<br/><br/>";
          echo 
    "<a href=\"index.php\">Login</a>";
          echo 
    "</small></p>";
          echo 
    "</card>";
          echo 
    "</wml>";
          
    mysql_close();
          exit();

    }
        
    date_default_timezone_set('UTC');
        
    $New_Time time() + (60 60);
        
    $Hour date("G",$New_Time);
        if(
    18>$Hour || 22<$Hour)
        {
        echo 
    "<card id=\"main\" title=\"$sitename\">";
        echo 
    "<p align=\"center\"><small>";
        echo 
    "You can play this game everyday from 6 p.m to 11 p.m BST (Bangladesh Standard Time) Please try again after 6 p.m.<br/><br/>";
        echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
        echo 
    "</small></p>";
        echo 
    "</card>";
        echo 
    "</wml>";
        
    mysql_close();    
        exit();
        } 

    if(
    $action=="main")
    {
      
    addonline(getuid_sid($sid),"Golden Coin","goldencoin.php?action=$action");
    echo 
    "<card id=\"main\" title=\"Golden Coin\">";
       echo 
    "<p align=\"center\"><small>";

    date_default_timezone_set('UTC');
    $BD_Time time() + (660 60);
    $newtime date("h:i:s a",$BD_Time);
    $lstall mysql_fetch_array(mysql_query("SELECT id, uid, coin, createtime, catchtime FROM ibwf_goldencoin ORDER BY catchtime DESC LIMIT 1"));
    $lstcoin mysql_fetch_array(mysql_query("SELECT id, createtime FROM ibwf_goldencoin WHERE uid='' ORDER BY createtime DESC LIMIT 1"));
    $unick getnick_uid($uid);
    $whonick getnick_uid($lstall[1]);

    echo 
    "<b>Golden Coin Game</b><br/><br/>Golden Coin are being thrown here with a rendom interval of time. All you need to do is, refresh this page until a link to grab your coin appears than hits the link. Remember, you need to be fast to grab the coin otherwise it will be transferred to someone else's pocket!<br/>";

    if(
    time()<$lstcoin[1])
    {
    echo 
    "<br/>Sorry there's no coin at the moment<br/>";
    echo 
    "<a href=\"goldencoin.php?action=main&amp;sid=$sid\">Search for coin</a> [$newtime]<br/>";
    }else{
    echo 
    "<br/>Here is your coin <a href=\"goldencoin.php?action=grab&amp;sid=$sid&amp;coinid=$lstcoin[0]\">Grab it!</a><br/>";
    }

    $idle gettimemsg(time() - $lstall[4]);
    echo 
    "<br/>Last Coin Gainer: <b>$whonick</b> ($idle ago)";

      echo 
    "<br/><br/><a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>";
    echo 
    "Home</a>";
      echo 
    "";
      echo 
    "</small></p>";
        echo 
    "</card>";
    }
    else if(
    $action=="grab")
    {
      
    addonline(getuid_sid($sid),"Grabing Golden Coin","goldencoin.php?action=main");
    echo 
    "<card id=\"main\" title=\"Grab Coin\">";
       echo 
    "<p align=\"center\"><small>";
    $unick getnick_uid($uid);
    $coinid $_GET["coinid"];
    $rndm rand(200500);
    $showtime time() + $rndm;
    $gcoin mysql_fetch_array(mysql_query("SELECT uid, coin, createtime, catchtime FROM ibwf_goldencoin WHERE id='".$coinid."'"));
    $nout mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_goldencoin WHERE id='".$coinid."'"));

        if(
    time()<$gcoin[2])
        {
        echo 
    "Nothing to displayed..<br/><br/>";
        echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
        echo 
    "</small></p>";
        echo 
    "</card>";
        echo 
    "</wml>";
        
    mysql_close();    
        exit();
        }

    if(
    $gcoin[0]<&& $coinid!=&& $nout[0]!=0)
    {
    $prof mysql_fetch_array(mysql_query("SELECT goldencoin FROM ibwf_users WHERE id='".$uid."'"));
    $vws $prof[0]+1mysql_query("UPDATE ibwf_users SET goldencoin='".$vws."'WHERE  id='".$uid."'");
        
    mysql_query("UPDATE ibwf_goldencoin SET uid='".$uid."', catchtime='".time()."', coin='1' WHERE id='".$coinid."'");
            echo 
    "<img src=\"../images/ok.gif\" alt=\"O\"/> Coin Grabbed Successfully<br/><a href=\"goldencoin.php?action=main&amp;sid=$sid\">Play Again!</a>";
        
    mysql_query("INSERT INTO ibwf_goldencoin SET createtime='".$showtime."'");
        
    mysql_query("INSERT INTO ibwf_shouts SET shout='".$unick." just grabbed a G-coin-lden C-coin-in', shouter='3', shtime='".time()."'");
    }else{
            echo 
    "<img src=\"../images/notok.gif\" alt=\"X\"/> Sorry this coin already grabbed!<br/><a href=\"goldencoin.php?action=main&amp;sid=$sid\">Try Again!</a>";
    }

      echo 
    "<br/><br/><a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>";
    echo 
    "Home</a>";
      echo 
    "";
      echo 
    "</small></p>";
        echo 
    "</card>";
    }
    else if(
    $action=="temprr")
    {
        echo 
    "<card id=\"main\" title=\"Erros\">";
        echo 
    "<p align=\"center\"><small>";
        
    $brws cleanQuery($_SERVER['HTTP_USER_AGENT']);
        
    $res mysql_query("UPDATE ibwf_users SET browserm='".$brws."' WHERE id='".getuid_sid($sid)."'");
              echo 
    "<br/><br/><a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>";
    echo 
    "Home</a>";
      echo 
    "</small></p>";
        echo 
    "</card>";
    }else{

      
    addonline(getuid_sid($sid),"ERROR","");
    echo 
    "<card id=\"main\" title=\"ERROR\">";
       echo 
    "<p align=\"center\"><small>";

    echo 
    "Nothing Here";

      echo 
    "<br/><br/><a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>";
    echo 
    "Home</a>";
      echo 
    "";
      echo 
    "</small></p>";
        echo 
    "</card>";
    }

    ?>
    </wml>

    Comment


      #3
      thank u...bt my need lotto script..not golden coin...

      Comment


        #4
        goldencoin.php

        bro can u post the sql for golden coin?

        Comment

        Working...
        X