Lavalair/wapdesire [shareplusses]

Started on the old forum in March 2009 · view the original in the archive · old links redirect here

5 replies · 896 views · started 17 years ago · 1 min read

3 participants
bluangelo Junior · 19 posts #1

in genproc.php

CODE//////////////////////////////////////////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='".$uid."'")); $gpst = mysql_fetch_array(mysql_query("SELECT plusses, name FROM ibwf_users WHERE id='".$who."'")); 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='".$uid."'")); $facedown= $facedown[0]; $ugpl2 = $facedown - "10"; mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'"); $res = mysql_query("UPDATE ibwf_users SET plusses='".$gpst."' WHERE id='".$who."'");

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

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

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

    echo "

";

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

in index.php

CODE//////////////////////////////////////////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 " "; echo "Give Plusses To ".getnick_uid($who)."

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

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

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

usage in index.php add in action=viewuser

CODE if($uid !=$who) { echo "<a href="index.php?action=sharepl&who=$who&sid=$sid">Share Plusses</a> ";

subzero Super moderator Fellow · 3,954 posts #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... _______…

bluangelo Junior · 19 posts #3

QUOTE (subzero @ Mar 2 2009, 02:29 PM) <{POST_SNAPBACK}>

you to pm the user when they share ?

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

subzero Super moderator Fellow · 3,954 posts #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..

$no = "This user Given you  $upl Enjoy - Note this is a auto pm...";
$res = mysql_query("INSERT INTO ibwf_private SET text='$no', byuid='".$byuid."', touid='".$who."', unread='1', timesent='".time()."'");

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... _______…

bluangelo Junior · 19 posts #5

QUOTE (subzero @ Mar 2 2009, 02:47 PM) <{POST_SNAPBACK}>

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..

$no = "This user Given you  $upl Enjoy - Note this is a auto pm...";
$res = mysql_query("INSERT INTO ibwf_private SET text='$no', byuid='".$byuid."', touid='".$who."', unread='1', timesent='".time()."'");

hohoho.

no thanx i g0t the code.

CODE//////////////////////////////////////////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='".$uid."'")); $gpst = mysql_fetch_array(mysql_query("SELECT plusses, name FROM ibwf_users WHERE id='".$who."'")); 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='".$uid."'")); $facedown= $facedown[0]; $ugpl2 = $facedown - "10"; mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'"); $res = mysql_query("UPDATE ibwf_users SET plusses='".$gpst."' WHERE id='".$who."'");

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='".$gpsf."' WHERE id='".$uid."'"); 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't have enough Plusses to give "; }

    echo "

";

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

jamie500 Newbie · 8 posts #6

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

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close