copy n paste it in index.php
In user profile index.php?action=users
copy n paste in genproc.php
add it on main page
add it also edit upper part of site
add this line in ibwf_user table
hey guys ive gotten this bank script when i try ading it on methos the credit rnt going up whats the error there supose to get credits from the bank everyday and it just stay the same not getting more intrest on the credits
Code:
///////////// else if($action=="bankpage") { addonline(getuid_sid($sid),"In the bank",""); echo "<head>\n"; echo "<title>SpiderWap</title>\n"; echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/$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 "<p align=\"center\">"; echo "<b>Welcome to the SpiderWap BANK</b><br/>"; echo "----<br/>"; echo "<b>You can deposit your earned plusses here</b><br/>"; echo "You will get a <b>interest of 10%</b> each day<br/>"; echo "You can withdraw your plusses at any time from the <b>SpiderWap Bank or ATM machine</b> situated in the Funmenu<br/>"; echo "<a href=\"index.php?action=diposit&sid=$sid\">Diposit credits</a><br/>"; echo "<a href=\"index.php?action=wdraw&sid=$sid\">Withdraw credits</a><br/>"; echo "</p>"; echo "<p align=\"center\">"; 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(); } ///////////////////////////mwap bank diposit else if($action=="diposit") { echo "<head>\n"; echo "<title>SpiderWap</title>\n"; echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/$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>"; addonline(getuid_sid($sid),"Diposit credits 2 BANK",""); echo "<p align=\"center\">"; echo "<b>Welcome to the bank ".getnick_uid($uid)."</b><br/><br/>"; echo "<form action=\"genproc.php?action=diposit&sid=$sid&who=$who\" method=\"post\">"; echo "Amount dipositing<br/>"; echo "<input name=\"ptg\" maxlength=\"8\"/>"; echo "<br/>"; echo "<input type=\"submit\" value=\"Diposit\"/>"; echo "</form>"; echo "<br/><br/><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 else if($action=="wdraw") { echo "<head>\n"; echo "<title>SpiderWap</title>\n"; echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/$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>"; addonline(getuid_sid($sid),"Withdraw credits from BANK",""); echo "<p align=\"center\">"; echo "<b>Welcome to the bank ".getnick_uid($uid)."</b><br/><br/>"; $gps = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".getuid_sid($sid)."'")); echo "You have $gps[0] Credits in your hand<br/>"; $gpb = mysql_fetch_array(mysql_query("SELECT bank FROM ibwf_users WHERE id='".getuid_sid($sid)."'")); echo "and $gpb[0] Credits in the bank<br/><br/>"; echo "<form action=\"genproc.php?action=wdraw&sid=$sid&who=$who\" method=\"post\">"; echo "Amount withdrawing<br/>"; echo "<input name=\"ptg\" maxlength=\"8\"/>"; echo "<br/>"; echo "<input type=\"submit\" value=\"withdraw\"/>"; echo "</form>"; echo "<br/><br/><a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; echo "</html>"; exit(); }
Code:
$bank = mysql_fetch_array(mysql_query("SELECT bank FROM ibwf_users WHERE id='".$who."'")); echo "<b>Plusses In Bank:</b> $bank[0]<br/>";
Code:
//////////////////////////////////////////////////////////// else if($action=="diposit") { echo "<head>\n"; echo "<title>SpiderWap</title>\n"; echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/$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>"; 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){ $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>SpiderWap</title>\n"; echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/$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>"; 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){ $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(); }
Code:
echo "<a href=\"index.php?action=bankpage&sid=$sid\">»Bank</a><br/>";
Code:
$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);} echo "<div align=\"center\">\n"; //echo "<small>".date("D d M y-H:i:s")."</small><br/>"; echo "<small>".date("D d M y - ")."</small>\n"; echo "<small><a href=\"time.php?sid=$sid\">".date("H:i")."</a></small><br/>"; echo "<img src=\"images/logo.gif\" alt=\"*\"/>";
Code:
`bank` int(100) NOT NULL default '0',
Comment