Credits Share 4 Funmoile

Started on the old forum in October 2007 · view the original in the archive · old links redirect here

3 replies · 595 views · started 19 years ago · 2 min read

2 participants
Guest #1

CODECredits Share for Funmobile ScR1pT

///////////////////////////////////////////Profile Menu///////////

echo "<a href="index.php?action=givep&who=$who&ses=$ses">Give Credits</a> ";

/////////////////////////////////////////index.php///////////////////// }else if($action=="givep") { addonline(getuid_ses($ses),"Share your Credits",""); if($mime== WEB) { echo webhead($uthm,$stitle);

echo " "; echo "Here you can share credits with your Firends **Note:**All Logs are Reporting to Staff " echo "Give Credits To ".getnick_uid($who)."

"; $gps = mysql_fetch_array(mysql_query("SELECT credits FROM ibwf_users WHERE id='".getuid_ses($ses)."'")); echo "You have $gps[0] Credits

"; echo "<form action="genproc.php?action=givep&ses=$ses&who=$who" method="post">"; echo "Credits to give ";

echo "<input name="ptg" format="*N" maxlength="2"/>"; echo " ";

echo "<input type="submit" value="Give Credits"/>"; echo "</form>"; echo "

<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>"; echo "Home</a>"; echo " "; echo webfoot();

}else{
	echo waphead($stitle);

echo "<onevent type="onenterforward">"; echo "<refresh> <setvar name="tfgp" value="0"/>"; echo "</refresh></onevent>"; echo " "; echo "Give Credits To ".getnick_uid($who)."

"; $gps = mysql_fetch_array(mysql_query("SELECT credits FROM ibwf_users WHERE id='".getuid_ses($ses)."'")); echo "You have $gps[0] Credits's

"; echo "credits's to give "; echo "<input name="tfgp" format="*N" maxlength="2"/>"; echo " <anchor>Give"; echo "<go href="genproc.php?action=givep&ses=$ses&who=$who" method="post">"; echo "<postfield name="ptg" value="$(tfgp)"/>"; echo "</go></anchor>"; echo "

<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>"; echo "Home</a>"; echo " "; echo wapfoot();

}

///////////////////////////////////////////////////////////genproc.php////////////////////////

else if($action=="givep") { addonline(getuid_ses($ses),"Giving credits",""); $who = $_GET["who"]; $ptg = $_POST["ptg"]; if($mime== WEB) { echo webhead($uthm,$stitle); echo " "; //$uid = getuid_ses($ses); $gpsf = mysql_fetch_array(mysql_query("SELECT credits FROM ibwf_users WHERE id='".$uid."'")); $gpst = mysql_fetch_array(mysql_query("SELECT credits FROM ibwf_users WHERE id='".$who."'")); if($gpsf[0]>=$ptg){ $gpsf = $gpsf[0]-$ptg; $gpst = $gpst[0]+$ptg; $res = mysql_query("UPDATE ibwf_users SET credits='".$gpst."' WHERE id='".$who."'"); if($res) { $res = mysql_query("UPDATE ibwf_users SET gpoints='".$gpsf."' WHERE id='".$uid."'"); echo "<img src="images/ok.gif" alt="o"/>credits Updated Successfully "; }else{ echo "<img src="images/notok.gif" alt="x"/>Database Error! "; } }else{ echo "<img src="images/notok.gif" alt="x"/>You don't have enough credits to give "; }

    echo "

";

 echo "<a href=\"index.php?action=main&ses=$ses\"><img src=\"images/home.gif\" alt=\"*\"/>";

echo "Home</a>"; echo " "; echo webfoot();

}else{
	echo waphead($stitle);

echo " "; //$uid = getuid_ses($ses); $gpsf = mysql_fetch_array(mysql_query("SELECT credits FROM ibwf_users WHERE id='".$uid."'")); $gpst = mysql_fetch_array(mysql_query("SELECT credits FROM ibwf_users WHERE id='".$who."'")); if($gpsf[0]>=$ptg){ $gpsf = $gpsf[0]-$ptg; $gpst = $gpst[0]+$ptg; $res = mysql_query("UPDATE ibwf_users SET credits='".$gpst."' WHERE id='".$who."'"); if($res) { $res = mysql_query("UPDATE ibwf_users SET gpoints='".$gpsf."' WHERE id='".$uid."'"); echo "<img src="images/ok.gif" alt="o"/>credits Updated Successfully "; }else{ echo "<img src="images/notok.gif" alt="x"/>Database Error! "; } }else{ echo "<img src="images/notok.gif" alt="x"/>You don't have enough credits to give "; }

    echo "

";

 echo "<a href=\"index.php?action=main&ses=$ses\"><img src=\"images/home.gif\" alt=\"*\"/>";

echo "Home</a>"; echo " "; echo wapfoot();

}

}

WhiteWarrior Principal · 1,419 posts #2

thanks for sharing but you can easy do this from the game plusses, just copy the coding then change the sql part lol

Guest #3

thanks for sharing but you can easy do this from the game plusses, just copy the coding then change the sql part lol

Exactly.... Thats the easiest way!

alexism Developer · 136 posts #4

CODEelse if($action=="givep"){ addonline(getuid_ses($ses),"Giving credits",""); $who = $_GET["who"]; $ptg = $_POST["ptg"]; if($mime== WEB) { echo webhead($uthm,$stitle); echo " "; //$uid = getuid_ses($ses); $gpsf = mysql_fetch_array(mysql_query("SELECT credits FROM ibwf_users WHERE id='".$uid."'")); $gpst = mysql_fetch_array(mysql_query("SELECT credits FROM ibwf_users WHERE id='".$who."'")); if($gpsf[0]>=$ptg){ $gpsf = $gpsf[0]-$ptg; $gpst = $gpst[0]+$ptg; $res = mysql_query("UPDATE ibwf_users SET credits='".$gpst."' WHERE id='".$who."'"); if($res) { $res = mysql_query("UPDATE ibwf_users SET gpoints='".$gpsf."' WHERE id='".$uid."'"); echo "<img src="images/ok.gif" alt="o"/>credits Updated Successfully "; }else{ echo "<img src="images/notok.gif" alt="x"/>Database Error! "; } }else{ echo "<img src="images/notok.gif" alt="x"/>You don't have enough credits to give "; } echo " "; echo "<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt=""/>";echo "Home</a>";echo " "; echo webfoot(); }else{ echo waphead($stitle); echo " "; //$uid = getuid_ses($ses); $gpsf = mysql_fetch_array(mysql_query("SELECT credits FROM ibwf_users WHERE id='".$uid."'")); $gpst = mysql_fetch_array(mysql_query("SELECT credits FROM ibwf_users WHERE id='".$who."'")); if($gpsf[0]>=$ptg){ $gpsf = $gpsf[0]-$ptg; $gpst = $gpst[0]+$ptg; $res = mysql_query("UPDATE ibwf_users SET credits='".$gpst."' WHERE id='".$who."'"); if($res) { $res = mysql_query("UPDATE ibwf_users SET gpoints='".$gpsf."' WHERE id='".$uid."'"); echo "<img src="images/ok.gif" alt="o"/>credits Updated Successfully "; }else{ echo "<img src="images/notok.gif" alt="x"/>Database Error! "; } }else{ echo "<img src="images/notok.gif" alt="x"/>You don't have enough credits to give "; } echo " "; echo "<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt=""/>";echo "Home</a>";echo " ";

there is an error on this part..can someone fix it??thanks..

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