Share Plusses Script

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

    Share Plusses Script

    i need share plusses script n im using lavalair script so plz help me out!!!!!!!

    #2
    in index.php
    Code:
    //////////////////////////////////////////Share Plusses
    
    else if($action=="sharepl")
    {
      $who = $_GET["who"];
      addonline(getuid_sid($sid),"Sharring Plusses","");
        echo "<card id=\"main\" title=\"$sitename\">";
        echo "<onevent type=\"onenterforward\">";
        echo "<refresh>
            <setvar name=\"tfgp\" value=\"0\"/>";
        echo "</refresh></onevent>";
      echo "<p align=\"center\">";
    echo "script by Rukiya";
    echo "
    ";
      echo "[b]Give Plusses To ".getnick_uid($who)."[/b]
    
    ";
      $ps = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".getuid_sid($sid)."&#39;"));
      echo "You have $ps[0] Plusses
    
    ";
      echo "Plusses to give
    ";
      echo "<input name=\"tfgp\" format=\"*N\" maxlength=\"2\"/>";
      echo "
    <anchor>Give";
      echo "<go href=\"genproc.php?action=sharepl&amp;sid=$sid&amp;who=$who\" method=\"post\">";
      echo "<postfield name=\"ptg\" value=\"$(tfgp)\"/>";
      echo "</go></anchor>";
      echo "
    
    <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
      echo "</p>";
      echo "</card>";
    }
    usage
    Code:
    echo "<a href=\"index.php?action=sharepl&amp;who=$who&amp;sid=$sid\">Share Plusses</a>
    ";
    in genproc.php
    Code:
    //////////////////////////////////////////Share plusses
    else if($action=="sharepl")
    {
        addonline(getuid_sid($sid),"Sharring Plusses","");
        $who = $_GET["who"];
        $ptg = $_POST["ptg"];
        echo "<card id=\"main\" title=\"$sitename\">";
      echo "<p align=\"center\">";
      //$uid = getuid_sid($sid);
      $psf = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
      $pst = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
      if($psf[0]>=$ptg){
        $psf = $psf[0]-$ptg;
        $pst = $pst[0]+$ptg;
        $res = mysql_query("UPDATE ibwf_users SET plusses=&#39;".$pst."&#39; WHERE id=&#39;".$who."&#39;");
      if($res)
            {
              $res = mysql_query("UPDATE ibwf_users SET plusses=&#39;".$psf."&#39; WHERE id=&#39;".$uid."&#39;");
                echo "<img src=\"../images/ok.gif\" alt=\"o\"/>Plusses Updated Successfully
    ";
            }else{
              echo "<img src=\"../images/notok.gif\" alt=\"x\"/>Database Error!
    ";
            }
          }else{
              echo "<img src=\"../images/notok.gif\" alt=\"x\"/>You don&#39;t have enough Plusses to give
    ";
            }
    echo " script by rukiya";
            echo "
    ";
      
         echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    echo "</p>";
      echo "</card>";
    }

    Comment


      #3
      its always say that i have not enough credit to share...y??

      Comment


        #4
        copy and paste again the above written script ,it will work if you have >0 plusses

        Comment


          #5
          i need share plusses script n im using lavalair script so plz help me out!!!!!!! [/b]
          or just look for the share game plusses part andcopy that and just change the gplus to plusses ...

          Comment


            #6
            i am owner of my site n i have 2147483622 but its still view "u don&#39;t have enough Plusses to give"

            Comment


              #7
              give me the html version for this coding plz..

              Comment


                #8
                Code:
                //////////////////////////////////////////Share Plusses
                
                else if($action=="sharepl")
                {
                $who = $_GET["who"];
                addonline(getuid_sid($sid),"Sharring Plusses","");
                 echo "<head>";
                  echo "<title>$sitename</title>";
                  echo "</head>";
                  echo "<body>";
                echo "<onevent type=\"onenterforward\">";
                echo "<refresh>
                <setvar name=\"tfgp\" value=\"0\"/>";
                echo "</refresh></onevent>";
                echo "<p align=\"center\">";
                echo "script by Rukiya";
                echo "
                ";
                echo "[b]Give Plusses To ".getnick_uid($who)."[/b]
                
                ";
                $ps = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".getuid_sid($sid)."&#39;"));
                echo "You have $ps[0] Plusses
                
                ";
                echo "Plusses to give
                ";
                echo "<input name=\"tfgp\" format=\"*N\" maxlength=\"2\"/>";
                echo "
                <form action="genproc.php?action=sharepl&amp;sid=$sid&amp;who=$who\" method=\"post\">";
                echo "<input name=\"ptg\" value=\"$(tfgp)\"/>";
                
                echo"<input type = "submit" value"GO"/>";
                echo"</form>";
                echo "
                
                <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                echo "Home</a>";
                echo "</p>";
                echo "</body>";
                }
                /////////////////////////////
                do the rest yourself

                Comment


                  #9
                  i have u this code but i cannot click give cos i has became a word not a link.i think mybe cos u use anchor..fix it plz..

                  Comment


                    #10
                    Use<form></form> tag instead of <anchor></anchor> tag

                    Comment


                      #11
                      its show the same result friend..GIVE became a word n i cant click it...fix it plz..

                      Comment


                        #12
                        Use the last edited codes in the previous

                        Comment


                          #13
                          u didnt even fix it..but u make it worst..check it by urself my friend..

                          Comment


                            #14
                            in index.php
                            Code:
                            //////////////////////////////////////////Give Plusses
                            
                            else if($action=="givep")
                            {
                              $who = $_GET["who"];
                              addonline(getuid_sid($sid),"Giving Plusses","");
                                echo "<head>";
                                echo "<title>Give Plusses</title>";
                                echo "</head>";
                                echo "<body>";
                              echo "<p align=\"center\">";
                              echo "[b]Give GPs To ".getnick_uid($who)."[/b]
                            
                            ";
                              $gps = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".getuid_sid($sid)."&#39;"));
                              echo "You have $gps[0] GP&#39;s
                            
                            ";
                              echo "plusses to give
                            ";
                              echo "<form action=\"genproc.php?action=givep&amp;sid=$sid&amp;who=$who\" method=\"post\">";
                              echo "<input name=\"ptg\" style=\"-wap-input-format: &#39;*N&#39;\" maxlength=\"2\">";
                              echo "
                            <input type=\"Submit\" Value=\"Give\" name=\"Give\"></form>";
                              echo "
                            <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
                              echo "</p>";
                              echo "</body>";
                            }
                            usage in index.php
                            Code:
                            echo "<a href=\"index.php?action=givep&amp;who=$who&amp;sid=$sid\">Share Plusses</a>
                            ";
                            in genproc.php
                            Code:
                            else if($action=="givep")
                            {
                                addonline(getuid_sid($sid),"Giving Plusses","");
                                $who = $_GET["who"];
                                $ptg = $_POST["ptg"];
                                  echo "<head>";
                                  echo "<title>$sitename</title>";
                                  echo "</head>";
                                  echo "<body>";
                              echo "<p align=\"center\">";
                              //$uid = getuid_sid($sid);
                              $gpsf = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                              $gpst = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
                              if($gpsf[0]>=$ptg){
                                $gpsf = $gpsf[0]-$ptg;
                                $gpst = $gpst[0]+$ptg;
                                $res = mysql_query("UPDATE ibwf_users SET plusses=&#39;".$gpst."&#39; WHERE id=&#39;".$who."&#39;");
                              if($res)
                                    {
                                      $res = mysql_query("UPDATE ibwf_users SET plusses=&#39;".$gpsf."&#39; WHERE id=&#39;".$uid."&#39;");
                                        echo "<img src=\"../images/ok.gif\" alt=\"o\"/>Plusses Updated Successfully
                            ";
                                    }else{
                                      echo "<img src=\"../images/notok.gif\" alt=\"x\"/>Database Error!
                            ";
                                    }
                                  }else{
                                      echo "<img src=\"../images/notok.gif\" alt=\"x\"/>You don&#39;t have enough plusses to give
                            ";
                                    }
                            
                                    echo "
                            ";
                              
                            echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
                            echo "</p>";
                              echo "</body>";
                            }
                            and do copy and paste the only one work u can really do

                            Comment


                              #15
                              say wut ever u want coz u r clever than me..that coding work..a lot of thanks my friend..

                              Comment

                              Working...
                              X