File size: 0.99Kb
<?php
include("head.php");
//////////////////////////////////////////Give Gold
if($action=="gold"){
$who = $_GET["who"];
addonline(getuid_sid($sid),"Giving Gold","");
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 "<b>Give Gold To ".getnick_uid($who)."</b><br/><br/>";
$gps = mysql_fetch_array(mysql_query("SELECT gold FROM ibwf_users WHERE id='".getuid_sid($sid)."'"));
echo "You have $gps[0] Gold<br/><br/>";
echo "Gold to give<br/>";
echo "<input name=\"tfgp\" format=\"*N\" maxlength=\"2\"/>";
echo "<br/><anchor>Give";
echo "<go href=\"genproc.php?action=gold&sid=$sid\" method=\"post\">";
echo "<postfield name=\"ptg\" value=\"$(tfgp)\"/>";
echo "</go></anchor>";
echo "<br/><br/><a href=\"index.php?action=main\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
?>
</wml>