Lavalair Mods...

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #76
    And heres another Lavalair mod called Vault upload lol.


    Use the thanks button if you like what you see......
    Attached Files
    Last edited by bOrN2pwn; 01.04.10, 10:28.
    BakGat
    Code:
    class Counter {
    public:
      void Count();
      int  ReadDisplay();
    private:
      int  CurrentCount;
    };








    Back up my hard drive? How do I put it in reverse?
    My Community
    BakGat
    sigpic

    Comment


      #77
      Originally posted by brand View Post
      has any one had any problems with this just i added it to my tester site and when i log out and logs back in it only says i have visited the site 1 time
      $uid = getuid_sid($sid);
      $addvhitv = mysql_fetch_array(mysql_query("SELECT visit FROM ibwf_users WHERE id='".$uid."'"));
      $addv = $addhitv[0] + 1;
      $addvisit = mysql_query("UPDATE ibwf_users SET visit='".$addv."' WHERE id='".$uid."'");

      Comment


        #78
        $count_visit=mysql_fetch_array(mysql_query("SELECT visit FROM members WHERE username='".$username."'"));
        $visit=$count_visit[0]+1;
        mysql_query("UPDATE members SET visit='".$visit."' WHERE username='".$username."'");

        Comment


          #79
          or even shorter:

          mysql_query("UPDATE ibwf_users SET visit=visit+1 WHERE id='".$uid."'");

          Comment


            #80
            Here is a very simple uploader for lava avatars

            index.php
            PHP Code:
            }else if($action=="uploadav"){
            echo 
            '<form enctype="multipart/form-data" action="genproc.php.php?action=uploadav&amp;sid=$sid" method="POST">
             Pic: <input name="pic" type="file"/><br/>
             <input type="submit" value="Upload"/>
             </form>'
            ;

            genproc.php
            PHP Code:
            }else if($action=="uploadav"){
            $path="avatars/".$HTTP_POST_FILES['pic']['name'];
            if(
            $pic!="none")
            {
            if(
            copy($HTTP_POST_FILES['pic']['tmp_name'], $path))
            {
            echo 
            "Successful<br/>"
            mysql_query("UPDATE ibwf_users SET avatar='".$path."' WHERE uid='".$uid."'");
            }
            else
            {
            echo 
            "Error<br/>";
            }
            }

            NOTE: You may want to add your own security to this uploader
            Last edited by something else; 20.07.10, 17:19.

            Comment


              #81
              Originally posted by riderz
              DIL there are a code on here for that to show when ppl enter the room

              I want a code that will show the users actions like if u make a post or sign gb or what ever it wil show on the main page the last 5 actions
              riderz bro,
              u can make this code easly....
              u need to creat an new table in databse in which value comes from the online user.


              PHP Code:
              ////////////////////////////////////////MAIN PAGE
              if($action=="main")
              {
                
              addvisitor();
                
              addonline(getuid_sid($sid),"Main","index.php?action=$action");
                
              //saveuinfo($sid);
                
              $nick getnick_sid($sid);
                echo 
              "<head>";
                echo 
              "<title> Hall </title>";
                echo 
              "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
                echo 
              "</head>"
              i have pase here a code in which
              addonline(getuid_sid($sid),"Main","index.php?actio n=$action");
              is function which use to add user activty on Main page and index.php?action=$action for url of that page

              use just need to add this value in new table also....

              and after that just creat a new action in index.php page in which 5 actions are shown in a list..

              i dont knw m worng or right..!!! but may be u can understand that what i want to say bro....

              Be happy ;-)
              Sandeep DiL (INDIAN)



              Comment


                #82
                Originally posted by coolboiz1 View Post
                $uid = getuid_sid($sid);
                $addvhitv = mysql_fetch_array(mysql_query("SELECT visit FROM ibwf_users WHERE id='".$uid."'"));
                $addv = $addhitv[0] + 1;
                $addvisit = mysql_query("UPDATE ibwf_users SET visit='".$addv."' WHERE id='".$uid."'");


                ///ADD THIS WHERE YOU WANT TO SEE THE VISITS TO SHOW////

                $uid = getuid_sid($sid);
                $addv = mysql_fetch_array(mysql_query("SELECT visit FROM ibwf_users WHERE id='".$uid."'"));
                $addv = $addhitv[0] + 1;
                $addvisit = mysql_query("UPDATE ibwf_users SET visit='".$addv."' WHERE id='".$uid."'");


                $visits = mysql_fetch_array(mysql_query("SELECT visits FROM ibwf_users WHERE id='".$uid."'"));

                mysql_query("UPDATE ibwf_users SET visits='".($visits[0]+1)."' WHERE id='".$uid."'");

                echo "Visits <b>$visits[0] </b><br/>";


                ///SQL//

                visits varchar 255 default 1

                visit varchar 255 default 1

                there you go!

                Comment


                  #83
                  Originally posted by mazalo
                  It isn't stupid to me.Man registers 50 nicks with stupid meaning for 10 minutes.If someone can help me i will appreciate it a lot!
                  I have validation but i have to stop nick registration every minute.

                  Originally posted by mazalo
                  I know that there is a code but can not find it.
                  I want to close the registration for a browser in 24 hours.
                  That can not spaming and register new nicks every second.
                  Originally posted by metulj
                  find code for validation...
                  as blocking new registration by browser
                  would be stupid actually...
                  if i got for example nokia6600... and after my registration
                  you/or script automaticly close registration for such browser
                  for next 24 hours... imagine hom many users will go away !?
                  have you even read what i've said above ?
                  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


                    #84
                    Originally posted by metulj View Post




                    have you even read what i've said above ?
                    Of course!And i wrote my answer that i need that code

                    ##########################
                    I found...Here's a cod!Maybe someone needs it
                    ##########################

                    PHP Code:
                    // anti-flood inregisrare
                        
                        
                    $actime mysql_fetch_array(mysql_query("SELECT regdate FROM iwbf_users WHERE browserm='".$ubr."' ORDER BY regdate DESC LIMIT 1"));
                        
                    $timeout $actime[0] + (200000000);
                            if(
                    time()<$timeout)
                            {
                                
                    $tm time();
                                
                    $ramas $timeout $tm;
                                echo 
                    "<p align=\"center\">";
                                echo 
                    "<img src=\"images/notok.gif\" alt=\"X\"/><br/><small><b>ANTI-FLOOD REGISTER</b><b>$ramas sec.</b></small><br/>";
                                echo 
                    "</p>";
                            }else{ 
                    Last edited by mazalo; 01.07.10, 20:11.

                    Comment


                      #85
                      how can i add my admin cp ....`make vip` i have a code but i want it in wml
                      PHP Code:
                       echo "VIP: <select name=\"specialid\" value=\"$specialid[0]\">";
                          echo 
                      "<option value=\"0\">Normal</option>";
                          echo 
                      "<option value=\"1\">Millionaire</option>";
                          echo 
                      "<option value=\"2\">Quiz Masters</option>";
                          echo 
                      "<option value=\"8\">Prince</option>";
                          echo 
                      "<option value=\"9\">Princess</option>";
                          echo 
                      "</select><br/>"
                      please convert it in <anchor> and post details
                      you can post admincp.php in wml not html

                      Comment


                        #86
                        i have ara bank script but i cant convert it into wml please make it wml
                        awbank.php
                        PHP Code:
                        <?php

                        /*
                        |======================================================|
                        | Arawap Wap Forum                                     |
                        | http://Arawap.net / http://Arawap.net          |
                        | Arawapwap@gmail.com                                   |
                        |======================================================|
                        */

                        include("xhtmlfunctions.php");
                        header("Content-type: text/html; charset=ISO-8859-1");
                        echo 
                        "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
                        echo 
                        "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
                        ?>
                        <?php
                        include("config.php");
                        include(
                        "core.php");
                        connectdb();
                        $action $_GET["action"];
                        $sid $_GET["sid"];
                            if(
                        islogged($sid)==false)
                            {
                              
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                              echo 
                        "<p align=\"center\">";
                              echo 
                        "You are not logged in<br/>";
                              echo 
                        "Or Your session has been expired<br/><br/>";
                              echo 
                        "<a href=\"index.php\">Login</a>";
                              echo 
                        "</p>";
                             echo 
                        xhtmlfoot();
                              exit();
                            }
                        $uid getuid_sid($sid);
                        if(
                        isbanned($uid))
                            {
                             
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                              echo 
                        "<p align=\"center\">";
                              echo 
                        "<img src=\"images/notok.gif\" alt=\"x\"/><br/>";
                              echo 
                        "You are <b>Banned</b><br/>";
                              
                        $banto mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_metpenaltiespl WHERE uid='".$uid."' AND penalty='1'"));
                              
                        $remain $banto[0]- (time()  );
                              
                        $rmsg gettimemsg($remain);
                              echo 
                        "Time to finish your penalty: $rmsg<br/><br/>";
                              
                        //echo "<a href=\"index.php\">Login</a>";
                              
                        echo "</p>";
                            echo 
                        xhtmlfoot();
                              exit();
                            }

                        if(
                        $action=="main")
                        {
                          
                        addonline(getuid_sid($sid),"Arawap Bank","awbank.php?action=main");
                         
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                          echo 
                        "<p align=\"center\">";

                          
                        $nick getnick_sid($sid);
                          
                        $who getuid_nick($nick);
                           echo 
                        "<img src=\"images/ayu.gif\" alt=\"\"/><br/>";
                          echo 
                        "<b><u>AubOwan $nick!!</u></b><br/>";
                          echo 
                        "<br/>";

                         echo 
                        "<i>Welcome to 1st w@p Bank in da w0rld! </i><br/>";
                          echo 
                        "Deposit Ur Credits in aRa bank and get <b>1% interest Daily!!</b><br/>";
                        $credits mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
                        $arabank mysql_fetch_array(mysql_query("SELECT arabank FROM ibwf_users WHERE id='".$who."'"));

                          echo 
                        "U have <b>$credits[0]</b> Credits in Pocket!<br/>";
                            echo 
                        "U have <b>$arabank[0]</b> Credits in Bank!<br/><br/>";

                           echo 
                        "<a href=\"awbank.php?action=dep&amp;sid=$sid\">» Deposit Credits</a><br/>";
                           echo 
                        "<a href=\"awbank.php?action=get&amp;sid=$sid\">» Withdraw Credits</a><br/>";
                           echo 
                        "» Bank LoanS<br/>";
                            echo 
                        "<a href=\"awbank-func.php?action=topt&amp;sid=$sid\">» Top Transactors!</a><br/>";
                           echo 
                        "<a href=\"awbank.php?action=mis&amp;sid=$sid\">» Our Aim</a><br/>";
                         echo
                        "</p>";
                          
                        ////// UNTILL HERE >>
                          
                        echo "<p align=\"center\">";
                          echo 
                        "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo 
                        "Home</a>";
                           echo 
                        "<br/><br/><i>-plz Dont Copy Us-</i>";
                          echo 
                        "<br/>100% coded by: ";
                            echo
                        "<a href=\"index.php?action=viewuser&amp;who=1&amp;sid=$sid\">aRaa</a><br/>";
                             echo
                        "(c) Arawap.net";
                          echo 
                        "</p>";
                         echo 
                        xhtmlfoot();
                        }else


                        if(
                        $action=="dep1")
                        {
                          
                        addonline(getuid_sid($sid),"Arawap Bank","awbank.php?action=main");
                         
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                          echo 
                        "<p align=\"center\">";

                          
                        $nick getnick_sid($sid);
                          
                        $who getuid_nick($nick);

                          echo 
                        "<b><u>Deposit Credits!</u></b><br/>";
                          echo 
                        "Here You are about to Deposit Your Hardly Earned Credits in aRa bank!<br/>";
                        $credits mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
                        $arabank mysql_fetch_array(mysql_query("SELECT arabank FROM ibwf_users WHERE id='".$who."'"));

                          echo 
                        "U have <b>$credits[0]</b> Credits in Pocket!<br/>";
                            echo 
                        "U have <b>$arabank[0]</b> Credits in Bank!<br/>";
                          echo 
                        "</p>";
                          echo 
                        "<p>";



                            echo 
                        " <b>Type here the Amount U gonna deposit</b>  <br/>";

                        echo 
                        "<form action=\"awbank-func.php?action=dep&amp;sid=$sid&amp;who=$who\" method=\"post\">";
                        echo 
                        "<input name=\"ptg\" format=\"*N\" maxlength=\"5\"/>";
                        echo 
                        "<input type=\"submit\" value=\"Deposit now!\"/>";
                        echo 
                        "</form>";




                          echo 
                        "</p>";
                          
                        ////// UNTILL HERE >>
                          
                        echo "<p align=\"center\">";
                          echo 
                        "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo 
                        "Home</a>";
                          echo 
                        "</p>";
                         echo 
                        xhtmlfoot();
                        }else
                        if(
                        $action=="get")
                        {
                          
                        addonline(getuid_sid($sid),"Arawap Bank","awbank.php?action=main");
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                          echo 
                        "<p align=\"center\">";

                          
                        $nick getnick_sid($sid);
                          
                        $who getuid_nick($nick);

                          echo 
                        "<b><u>Withdraw Credits</u></b><br/>";
                          echo 
                        "U can Get Back Ur Credits From AW Bank now.<br/>";
                        $credits mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
                        $arabank mysql_fetch_array(mysql_query("SELECT arabank FROM ibwf_users WHERE id='".$who."'"));

                          echo 
                        "U have <b>$credits[0]</b> Credits in Pocket!<br/>";
                            echo 
                        "U have <b>$arabank[0]</b> Credits in Bank!<br/>";
                          echo 
                        "</p>";
                          echo 
                        "<p>";




                            echo 
                        " <b>Type here the Amount U gonna Withdraw</b>  <br/>";
                            echo 
                        "<form action=\"awbank-func.php?action=get&amp;sid=$sid&amp;who=$who\" method=\"post\">";
                        echo 
                        "<input name=\"ptg\" format=\"*N\" maxlength=\"5\"/>";
                        echo 
                        "<input type=\"submit\" value=\"withdraw now\"/>";
                        echo 
                        "</form>";





                          echo 
                        "</p>";
                          
                        ////// UNTILL HERE >>
                          
                        echo "<p align=\"center\">";
                          echo 
                        "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo 
                        "Home</a>";
                          echo 
                        "</p>";
                         echo 
                        xhtmlfoot();
                        }else

                        if(
                        $action=="dep")
                        {
                          
                        addonline(getuid_sid($sid),"Arawap Bank","awbank.php?action=main");
                         
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                          echo 
                        "<p align=\"center\">";

                          
                        $nick getnick_sid($sid);
                          
                        $who getuid_nick($nick);

                          echo 
                        "<b><u>Deposit Credits!</u></b><br/>";
                          echo 
                        "

                           *if u dont have much credits to deposit contact an online staff member and ask how to earn much credits.<br/>
                          *U can deposit any amount of credits.<br/>
                         *we add u 1% intersts in everyday.<br/>
                         *U can withdraw ur Credits+interest in any time.<br/>


                          <br/>"
                        ;

                          echo 
                        "<a href=\"awbank.php?action=dep1&amp;sid=$sid\">OK, I want to Deposit My credits Now</a>";

                          echo 
                        "</p>";
                          
                        ////// UNTILL HERE >>
                          
                        echo "<p align=\"center\">";
                          echo 
                        "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo 
                        "Home</a>";
                          echo 
                        "</p>";
                         echo 
                        xhtmlfoot();
                        }else


                        if(
                        $action=="mis")
                        {
                          
                        addonline(getuid_sid($sid),"Arawap Shop","awbank.php?action=main");
                          
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                          echo 
                        "<p align=\"center\">";

                          
                        $nick getnick_sid($sid);
                          
                        $who getuid_nick($nick);

                          echo 
                        "<b><u>Our Aim</u></b><br/>";
                          echo 
                        " Hello $nick we r proud to say dat u r in da <i>1st wap-bank
                         in the world </i>, U can get an interests for ur hardly earned credits.Our target is to make wealthy ppl in da wap as wel as in real life,
                         so be the best Transactor in our bank..Now other noobs may Copy us, but we Promise u, We do more than them! Maximum fUn from arawap!
                         <br/><b> Good Luck!! </b><br/>

                         <i>-arawap team-</i><br/>"
                        ;

                          echo 
                        "</p>";

                          
                        ////// UNTILL HERE >>
                          
                        echo "<p align=\"center\">";
                           echo 
                        "<a href=\"awbank.php?action=main&amp;sid=$sid\">Back to Bank</a><br/>";
                          echo 
                        "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo 
                        "Home</a>";
                          echo 
                        "</p>";
                         echo 
                        xhtmlfoot();
                        }

                        else
                        {
                          
                        addonline(getuid_sid($sid),"Lost in Shop","");
                         
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                          echo 
                        "<p align=\"center\">";
                          echo 
                        "I don't know how did you get into here, but there's nothing to show<br/><br/>";
                          echo 
                        "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo 
                        "Home</a>";
                          echo 
                        "</p>";
                           echo 
                        xhtmlfoot();
                        }

                        ?>
                        awbank-func.php
                        PHP Code:
                        <?php

                        /*
                        |======================================================|
                        | Arawap Wap Forum                                     |
                        | http://Arawap.net / http://Arawap.net          |
                        | Arawapwap@gmail.com                                   |
                        |======================================================|
                        */

                        include("xhtmlfunctions.php");
                        header("Content-type: text/html; charset=ISO-8859-1");
                        echo 
                        "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
                        echo 
                        "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
                        ?>
                        <?php
                        include("config.php");
                        include(
                        "core.php");
                        connectdb();
                        $action $_GET["action"];
                        $sid $_GET["sid"];
                        $itemid $_GET["itemid"];
                            if(
                        islogged($sid)==false)
                            {
                            
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                              echo 
                        "<p align=\"center\">";
                              echo 
                        "You are not logged in<br/>";
                              echo 
                        "Or Your session has been expired<br/><br/>";
                              echo 
                        "<a href=\"index.php\">Login</a>";
                              echo 
                        "</p>";
                              echo 
                        xhtmlfoot();
                              exit();
                            }
                        $uid getuid_sid($sid);
                        if(
                        isbanned($uid))
                            {
                            
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                              echo 
                        "<p align=\"center\">";
                              echo 
                        "<img src=\"images/notok.gif\" alt=\"x\"/><br/>";
                              echo 
                        "You are <b>Banned</b><br/>";
                              
                        $banto mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_metpenaltiespl WHERE uid='".$uid."' AND penalty='1'"));
                              
                        $remain $banto[0]- (time()  );
                              
                        $rmsg gettimemsg($remain);
                              echo 
                        "Time to finish your penalty: $rmsg<br/><br/>";
                              
                        //echo "<a href=\"index.php\">Login</a>";
                              
                        echo "</p>";
                             echo 
                        xhtmlfoot();
                              exit();
                            }

                        if(
                        $action=="main")
                        {
                          
                        addonline(getuid_sid($sid),"Arawap Bank","");
                          
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                              echo 
                        "<p align=\"center\">";

                          
                        $nick getnick_sid($sid);
                          
                        $who getuid_nick($nick);



                          echo 
                        "<b><u>hehehe hai $nick u r good explorer .. keep it up ur work , i know who you r .. lol</u></b><br/>";

                          echo 
                        "</p>";

                          
                        ////// UNTILL HERE >>
                          
                        echo "<p align=\"center\">";

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


                        else

                        if(
                        $action=="get")
                        {
                          
                        addonline(getuid_sid($sid),"Arawap Bank","");
                         
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                          echo 
                        "<p align=\"center\">";


                            
                        $whoid=$_GET["who"];
                             
                        $ptg $_POST["ptg"];
                          
                        $nick getnick_sid($sid);
                          
                        $who getuid_nick($nick);
                          
                        $credits mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
                          
                        $arabank mysql_fetch_array(mysql_query("SELECT arabank FROM ibwf_users WHERE id='".$who."'"));





                          echo 
                        "<b><u>Withdraw credits!</u></b><br/>";

                          echo 
                        "</p>";
                          echo 
                        "<p>";


                          if(
                        $arabank[0]>=$ptg){





                          
                        $ugpl mysql_fetch_array(mysql_query("SELECT arabank FROM ibwf_users WHERE id='".$who."'"));
                          
                        $ugpl $ugpl[0] - $ptg;
                          
                        mysql_query("UPDATE ibwf_users SET arabank='".$ugpl."' WHERE id='".$who."'");



                            
                        $ugpl mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
                          
                        $ugpl $ugpl[0] + $ptg;

                          
                        mysql_query("UPDATE ibwf_users SET plusses='"$ugpl."' WHERE id='".$who."'");





                          echo 
                        "U Have Successfully withdraw $ptg credits from the bank<br/>";

                          }else{
                                 echo 
                        "<img src=\"images/notok.gif\" alt=\"x\"/>You don't have
                        enough Credits to withdraw<br/>"
                        ;
                               }




                          echo 
                        "</p>";
                          
                        ////// UNTILL HERE >>
                          
                        echo "<p align=\"center\">";
                           echo 
                        "<a href=\"awbank.php?action=main&amp;sid=$sid\">Back to Bank</a><br/>";
                          echo 
                        "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo 
                        "Home</a>";
                          echo 
                        "</p>";
                         echo 
                        xhtmlfoot();
                        }

                        else

                        if(
                        $action=="dep")
                        {
                          
                        addonline(getuid_sid($sid),"Arawap Bank","");
                         
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                          echo 
                        "<p align=\"center\">";
                          
                        $ownid[0]=1;

                            
                        $whoid=$_GET["who"];
                             
                        $ptg $_POST["ptg"];
                          
                        $nick getnick_sid($sid);
                          
                        $who getuid_nick($nick);
                          
                        $credits mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
                          
                        $arabank mysql_fetch_array(mysql_query("SELECT arabank FROM ibwf_users WHERE id='".$who."'"));





                          echo 
                        "<b><u>Deposit Credits!</u></b><br/>";

                          echo 
                        "</p>";
                          echo 
                        "<p>";


                          if(
                        $credits[0]>=$ptg){





                          
                        $ugpl mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
                          
                        $ugpl $ugpl[0] - $ptg;
                          
                        mysql_query("UPDATE ibwf_users SET plusses='".$ugpl."' WHERE id='".$who."'");



                            
                        $ugpl mysql_fetch_array(mysql_query("SELECT arabank FROM ibwf_users WHERE id='".$who."'"));
                          
                        $ugpl $ugpl[0] + $ptg;

                          
                        mysql_query("UPDATE ibwf_users SET arabank='"$ugpl."' WHERE id='".$who."'");





                          echo 
                        "U Have Successfully deposit $ptg credits in the bank<br/>";

                          }else{
                                 echo 
                        "<img src=\"images/notok.gif\" alt=\"x\"/>You don't have
                        enough Credits to Deposit in the Bank<br/><br/>Dont worry, Plz contact an online Staff member and ask How to earn much Credits..<br/>"
                        ;
                               }




                          echo 
                        "</p>";
                          
                        ////// UNTILL HERE >>
                          
                        echo "<p align=\"center\">";
                           echo 
                        "<a href=\"awbank.php?action=main&amp;sid=$sid\">Back to Bank</a><br/>";
                          echo 
                        "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo 
                        "Home</a>";
                          echo 
                        "</p>";
                         echo 
                        xhtmlfoot();
                        }


                        //////////////////////////////////Most Credits List

                        else if($action=="topt")
                        {
                            
                        addonline(getuid_sid($sid),"Top transactors","awbank-func.php?action=$action");
                          
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                            echo 
                        "<p align=\"center\">";
                            echo 
                        "<b>Top transactors in ara-bank (Top Ten)</b>";
                            echo 
                        "</p>";
                            
                        //////ALL LISTS SCRIPT <<

                                
                        if($page=="" || $page<=0)$page=1;
                            
                        $num_items regmemcount(); //changable
                            
                        $items_per_page10;
                            
                        $num_pages ceil($num_items/$items_per_page);
                            if((
                        $page>$num_pages)&&$page!=1)$page$num_pages;
                            
                        $limit_start = ($page-1)*$items_per_page;

                            
                        //changable sql

                                
                        $sql "SELECT id, name, arabank FROM ibwf_users WHERE perm='0' ORDER BY arabank DESC LIMIT $limit_start$items_per_page";

                            echo 
                        "<p>";
                            
                        $items mysql_query($sql);
                            echo 
                        mysql_error();
                            if(
                        mysql_num_rows($items)>0)
                            {
                            while (
                        $item mysql_fetch_array($items))
                            {
                              
                        $lnk "<a href=\"index.php?action=viewuser&amp;who=$item[0]&amp;sid=$sid\">$item[1]</a> <small>Deposits: $item[2]</small>";
                              echo 
                        "$lnk<br/>";
                            }
                            }
                            echo 
                        "</p>";

                          
                        ////// UNTILL HERE >>
                            
                        echo "<p align=\"center\">";
                            echo 
                        "<a href=\"awbank.php?action=main&amp;sid=$sid\">";
                        echo 
                        "Back to Bank</a><br/>";
                            echo 
                        "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                        echo 
                        "Home</a>";
                          echo 
                        "</p>";
                           echo 
                        xhtmlfoot();
                        }



                        else

                        if(
                        $action=="val")
                        {
                          
                        addonline(getuid_sid($sid),"Arawap Bank","");
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                          echo 
                        "<p align=\"center\">";
                          
                        $ownid[0]=1;

                            
                        $whoid=$_GET["who"];
                          
                        $nick getnick_sid($sid);
                          
                        $who getuid_nick($nick);
                          
                        $credits mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));



                          echo 
                        "<b><u>Validate interests!</u></b><br/>";

                          echo 
                        "</p>";
                          echo 
                        "<p>";


                        if (
                        isadmin(getuid_sid($sid)))
                        {
                        $sql 'UPDATE `ibwf_users` SET `arabank` = `arabank` * 1.01 WHERE `arabank` > 20';
                        mysql_query($sql);

                         echo 
                        "$ugpl";
                           echo 
                        "updated succesfuly";
                            
                        $message "  $nick validated bank credits manualy.[br/][small][i]p.s: this is an automated pm[/i][/small]";
                            
                        autopm($message$ownid[0]);

                        }
                        else{
                                 echo 
                        "<img src=\"images/notok.gif\" alt=\"x\"/>you are not arawap bank manager, ur stupid action got reported<br/>";
                                 
                        $message "  $nick tried to rob ara bank.[br/][small][i]p.s: this is an automated pm[/i][/small]";
                            
                        autopm($message$ownid[0]);
                               }






                          echo 
                        "</p>";
                          
                        ////// UNTILL HERE >>
                          
                        echo "<p align=\"center\">";
                           echo 
                        "<a href=\"awbank.php?action=main&amp;sid=$sid\">Back to Bank</a><br/>";
                          echo 
                        "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo 
                        "Home</a>";
                          echo 
                        "</p>";
                         echo 
                        xhtmlfoot();
                        }











                        else
                        {
                          
                        addonline(getuid_sid($sid),"Lost in bank","");
                        $pstyle gettheme($sid);
                              echo 
                        xhtmlhead("Arawap Bank",$pstyle);
                          echo 
                        "<p align=\"center\">";
                          echo 
                        "I don't know how did you get into here, but there's nothing to rob, just get out here befor bank security gards shoot u!<br/><br/>";
                          echo 
                        "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo 
                        "Home</a>";
                          echo 
                        "</p>";
                           echo 
                        xhtmlfoot();
                        }

                        ?>

                        Comment


                          #87
                          Originally posted by shakil420 View Post
                          how can i add my admin cp ....`make vip` i have a code but i want it in wml
                          PHP Code:
                           echo "VIP: <select name=\"specialid\" value=\"$specialid[0]\">";
                              echo 
                          "<option value=\"0\">Normal</option>";
                              echo 
                          "<option value=\"1\">Millionaire</option>";
                              echo 
                          "<option value=\"2\">Quiz Masters</option>";
                              echo 
                          "<option value=\"8\">Prince</option>";
                              echo 
                          "<option value=\"9\">Princess</option>";
                              echo 
                          "</select><br/>"
                          please convert it in <anchor> and post details
                          you can post admincp.php in wml not html

                          Dude you cant be serious? theres a million wml script with an <anchor> coding and u cant look at one and make the code? wow

                          Comment


                            #88
                            Originally posted by mazalo View Post
                            Of course!And i wrote my answer that i need that code

                            ##########################
                            I found...Here's a cod!Maybe someone needs it
                            ##########################

                            PHP Code:
                            // anti-flood inregisrare
                                
                                
                            $actime mysql_fetch_array(mysql_query("SELECT regdate FROM iwbf_users WHERE browserm='".$ubr."' ORDER BY regdate DESC LIMIT 1"));
                                
                            $timeout $actime[0] + (200000000);
                                    if(
                            time()<$timeout)
                                    {
                                        
                            $tm time();
                                        
                            $ramas $timeout $tm;
                                        echo 
                            "<p align=\"center\">";
                                        echo 
                            "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/><br/><small><b>ANTI-FLOOD REGISTER</b><b>$ramas sec.</b></small><br/>";
                                        echo 
                            "</p>";
                                    }else{ 
                            where to put this code in register.php in precision?
                            sigpicthe italian/international COMMUNITY of friendship
                            http://people2000.netne.net
                            WAP/WEB
                            peoplemailbox@katamail.com

                            Comment


                              #89
                              turning php errors on is ok if your site isnt up and running ....

                              a better way is to use a file like
                              eg: example.php
                              PHP Code:
                              <?php
                              $page 
                              $_GET["page"];
                              if(
                              $page==""$page "index.php";
                              error_reporting  (E_ALL);
                              ini_set ('display_errors'true);
                              include(
                              "$page");
                              ?>
                              Then goto it in your browser:

                              Comment


                                #90
                                its been posted many times before:
                                core.php
                                PHP Code:
                                ////////////////////////anti sql injection
                                function antisi($str){ 
                                return 
                                mysql_real_escape_string($str); 

                                then on top of every other page:
                                PHP Code:
                                if(isset($_GET)){foreach($_GET as $key=>$value){$_GET[$key]=antisi($value);}} 
                                if(isset(
                                $_POST)){foreach($_POST as $key=>$value){$_POST[$key]=antisi($value);}} 
                                Last edited by something else; 21.07.10, 07:57.

                                Comment

                                Working...
                                X