Lavalair/wapdesire [shareplusses]

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

    Lavalair/wapdesire [shareplusses]

    in genproc.php

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>//////////////////////////////////////////Give Plusses
    else if($action=="sharepl")
    {
    $wnick = getnick_uid($who);
    addonline(getuid_sid($sid),"Shared Plusses to $wnick","");
    $amount = $_POST["plusses"];
    $whonick = $_GET["whonick"];
    $who=$_GET["whoid"];
    $whoid=$_GET["who"];
    $ptg = $_POST["tfgp"];
    echo "<head>";
    echo "<title>$sitename</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo "</head>";
    echo "<card>";

    //$uid = getuid_sid($sid);
    $gpsf = mysql_fetch_array(mysql_query("SELECT plusses, name FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    $gpst = mysql_fetch_array(mysql_query("SELECT plusses, name FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
    if($gpsf[0]>=$ptg){
    $gpsf = $gpsf[0]-$ptg;
    $gpst = $gpst[0]+$ptg;
    $facedown = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    $facedown= $facedown[0];
    $ugpl2 = $facedown - "10";
    mysql_query("UPDATE ibwf_users SET plusses=&#39;".$ugpl2."&#39; WHERE id=&#39;".$uid."&#39;");
    $res = mysql_query("UPDATE ibwf_users SET plusses=&#39;".$gpst."&#39; WHERE id=&#39;".$who."&#39;");

    if($res)
    {
    $who=$_GET["whoid"];
    $whoid=$_GET["who"];
    $res = mysql_query("UPDATE ibwf_users SET plusses=&#39;".$gpsf."&#39; WHERE id=&#39;".$uid."&#39;");
    echo "Plusses Updated Succesfully!

    Also 10 Plusses Deducted for transaction.
    You Have $nopl[0] Plusses Left

    ";
    }else{
    echo "Database Error!
    ";
    }
    }else{
    echo "You don&#39;t have enough Plusses to give
    ";
    }

    echo "
    ";

    echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
    echo "</p>";
    echo "</card>";
    }</div>

    in index.php

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>//////////////////////////////////////////Give Plusses

    else if($action=="sharepl")
    {
    $who = $_GET["who"];
    $sid = $_GET["sid"];
    $uid = getuid_sid($sid);
    $wnick = getnick_uid($who);
    addonline(getuid_sid($sid),"Sharing Plusses to $wnick","");
    echo "<head>";
    echo "<title>Give Plusses</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo "</head>";
    echo "<card>";
    echo "<p align=\"left\">";
    echo "Give Plusses To ".getnick_uid($who)."

    ";
    $nopl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    echo "(Each transaction will cost 10 plusses)
    ";
    echo "You Have $nopl[0]

    ";
    echo "Plusses to give
    ";
    echo "<form action=\"genproc.php?action=sharepl&amp;sid=$sid&a mp;who=$who\" method=\"post\">";
    echo "<input name=\"tfgp\" style=\"-wap-input-format: &#39;*N&#39;\" maxlength=\"5\">";
    echo "
    <input type=\"Submit\" Value=\"Give\" name=\"Give\"></anchor>
    ";
    echo "

    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
    echo "</p>";
    echo "</card>";
    }</div>


    usage in index.php
    add in action=viewuser

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'> if($uid !=$who)
    {
    echo "<a href=\"index.php?action=sharepl&amp;who=$who&amp;s id=$sid\">Share Plusses</a>
    ";</div>

    #2
    you to pm the user when they share ?
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      <div class='quotetop'>QUOTE (subzero @ Mar 2 2009, 02:29 PM) <{POST_SNAPBACK}></div>
      you to pm the user when they share ?[/b]

      Yes!!!
      I Need it!!
      An autopm.
      to the user who recieve the plusses.

      Comment


        #4
        i got ya ,

        like i given you 50 plusses then they get a pm message sayin this

        bluangelo, subzero has given you 50 plusses enjoy..

        Code:
        $no = "This user Given you  $upl Enjoy - Note this is a auto pm...";
        $res = mysql_query("INSERT INTO ibwf_private SET text=&#39;$no&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, unread=&#39;1&#39;, timesent=&#39;".time()."&#39;");
        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
        Visit: WapMasterz Coming Back Soon!
        _______
        SCRIPTS FOR SALE BY SUBZERO
        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
        _______
        Info & Tips
        php.net
        w3schools.com

        Comment


          #5
          <div class='quotetop'>QUOTE (subzero @ Mar 2 2009, 02:47 PM) <{POST_SNAPBACK}></div>
          i got ya ,

          like i given you 50 plusses then they get a pm message sayin this

          bluangelo, subzero has given you 50 plusses enjoy..

          Code:
          $no = "This user Given you  $upl Enjoy - Note this is a auto pm...";
          $res = mysql_query("INSERT INTO ibwf_private SET text=&#39;$no&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, unread=&#39;1&#39;, timesent=&#39;".time()."&#39;");
          [/b]

          hohoho.

          no thanx i g0t the code.

          <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>//////////////////////////////////////////Give Plusses
          else if($action=="sharepl")
          {
          $wnick = getnick_uid($who);
          addonline(getuid_sid($sid),"Shared Plusses to $wnick","");
          $amount = $_POST["plusses"];
          $whonick = $_GET["whonick"];
          $who=$_GET["whoid"];
          $whoid=$_GET["who"];
          $ptg = $_POST["tfgp"];
          echo "<head>";
          echo "<title>$sitename</title>";
          echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
          echo "</head>";
          echo "<card>";

          //$uid = getuid_sid($sid);
          $gpsf = mysql_fetch_array(mysql_query("SELECT plusses, name FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
          $gpst = mysql_fetch_array(mysql_query("SELECT plusses, name FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
          if($gpsf[0]>=$ptg){
          $gpsf = $gpsf[0]-$ptg;
          $gpst = $gpst[0]+$ptg;
          $facedown = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
          $facedown= $facedown[0];
          $ugpl2 = $facedown - "10";
          mysql_query("UPDATE ibwf_users SET plusses=&#39;".$ugpl2."&#39; WHERE id=&#39;".$uid."&#39;");
          $res = mysql_query("UPDATE ibwf_users SET plusses=&#39;".$gpst."&#39; WHERE id=&#39;".$who."&#39;");

          if($res)
          {
          $uid = getnick_uid($uid);
          $who=$_GET["whoid"];
          $whoid=$_GET["who"];
          $whonick = $_GET["whonick"];
          $ptg = $_POST["tfgp"];
          $res = mysql_query("UPDATE ibwf_users SET plusses=&#39;".$gpsf."&#39; WHERE id=&#39;".$uid."&#39;");
          echo "Plusses Updated Succesfully!

          Also 10 Plusses Deducted for transaction.
          You Have $nopl[0] Plusses Left

          ";
          $msg = "Hi! /reader,[br/] $uid has shared $ptg Plusses to you. [br/][br/]p.s: this is an automated pm";
          autopm($msg, $whoid[0]);
          }else{
          echo "Database Error!
          ";
          }
          }else{
          echo "You don&#39;t have enough Plusses to give
          ";
          }

          echo "
          ";

          echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
          echo "</p>";
          echo "</card>";
          }</div>


          Comment


            #6
            i need the core part as i dont have the button bit it wont let me click give

            Comment

            Working...
            X