Here are the bank script dnt know if this one will work but anyway enjoy
Sql
add this in core
on index at the top
usage
in genproc
Its out of blingywap edit so if it dnt work get it from there
Sql
Code:
`bank` int(11) default '0',
Code:
$sql = "UPDATE ibwf_users SET bank = (bank * 1.05)";
Code:
///////////////////bank count $now = time(); $start=date("Y-m-d")." 23:50:00"; $end=date("Y-m-d")." 23:50:10"; $tstamp1=strtotime($start); $tstamp2=strtotime($end);if($now>$tstamp1 && $now<$tstamp2) { $sql = 'UPDATE `ibwf_users` SET `bank` = `bank` * 1.05 WHERE `bank` > 100'; mysql_query($sql);}
Code:
echo "<img class=\"menu\" alt=\"Home\" src=\"bank.gif\" align=\"absbottom\"></a>"; echo "<a href=\"bank.php?action=bankpage&sid=$sid\"> $stitle-Bank</a><br/>";
Code:
//////////////////////////////////////////////////////////// else if($action=="diposit") { echo "<head>\n"; echo "<title>$stitle</title>\n"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"themes/$theme[0]\">"; echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />\n"; echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n"; echo "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n"; echo "</head>"; echo "<body>"; echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"12\" width=\"159\">"; echo "<tr>"; echo "<td id=\"body\" width=\"159\">"; echo "</td>"; echo "</tr>"; echo "</table>"; echo "<table border=\"0\" width=\"99%\" cellspacing=\"0\" cellpadding=\"0\" class=\"boxed\" align=\"center\">"; echo "<tr>"; echo "<td class=\"boxedTitle\" height=\"20\">"; echo "<h1 align=\"center\" class=\"boxedTitleText\">dipist credits</h1></td>"; echo "</tr>"; echo "<tr>"; echo "<td class=\"boxedContent\">"; addonline(getuid_sid($sid),"Diposit credits",""); $who = $_GET["who"]; $ptg = $_POST["ptg"]; echo "<p align=\"center\">"; //$uid = getuid_sid($sid); $gpsf = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'")); $gpst = mysql_fetch_array(mysql_query("SELECT bank FROM ibwf_users WHERE id='".$uid."'")); if(($gpsf[0]>=$ptg)AND ($ptg>0)){ $gpsf = $gpsf[0]-$ptg; $gpst = $gpst[0]+$ptg; $res = mysql_query("UPDATE ibwf_users SET bank='".$gpst."' WHERE id='".$uid."'"); if($res) { $res = mysql_query("UPDATE ibwf_users SET plusses='".$gpsf."' WHERE id='".$uid."'"); echo "<img src=\"images/ok.gif\" alt=\"o\"/>Amount diposited Successfully<br/>"; }else{ echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>"; } }else{ echo "<img src=\"images/notok.gif\" alt=\"x\"/>You don't have enough Plusses to diposit<br/>"; } echo "<br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; echo "</html>"; exit(); } /////////////////////////////////////withdraw mny else if($action=="wdraw") { echo "<head>\n"; echo "<title>$stilte</title>\n"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"themes/$theme[0]\">"; echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />\n"; echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n"; echo "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n"; echo "</head>"; echo "<body>"; echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"12\" width=\"159\">"; echo "<tr>"; echo "<td id=\"body\" width=\"159\">"; echo "</td>"; echo "</tr>"; echo "</table>"; echo "<table border=\"0\" width=\"99%\" cellspacing=\"0\" cellpadding=\"0\" class=\"boxed\" align=\"center\">"; echo "<tr>"; echo "<td class=\"boxedTitle\" height=\"20\">"; echo "<h1 align=\"center\" class=\"boxedTitleText\">withdraw credits</h1></td>"; echo "</tr>"; echo "<tr>"; echo "<td class=\"boxedContent\">"; addonline(getuid_sid($sid),"Withdraw credits",""); $who = $_GET["who"]; $ptg = $_POST["ptg"]; echo "<p align=\"center\">"; //$uid = getuid_sid($sid); $gpsf = mysql_fetch_array(mysql_query("SELECT bank FROM ibwf_users WHERE id='".$uid."'")); $gpst = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'")); if(($gpsf[0]>=$ptg)AND ($ptg>0)){ $gpsf = $gpsf[0]-$ptg; $gpst = $gpst[0]+$ptg; $res = mysql_query("UPDATE ibwf_users SET plusses='".$gpst."' WHERE id='".$uid."'"); if($res) { $res = mysql_query("UPDATE ibwf_users SET bank='".$gpsf."' WHERE id='".$uid."'"); echo "<img src=\"images/ok.gif\" alt=\"o\"/>Amount withdrawed Successfully<br/>"; }else{ echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>"; } }else{ echo "<img src=\"images/notok.gif\" alt=\"x\"/>You don't have enough Credits 2 withdraw<br/>"; } echo "<br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; echo "</html>"; exit(); }
Comment