
Criminal
Members-
Posts
208 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Criminal
-
Re: Whats your Favourite Sport! Oh yea kl
-
Re: Whats your Favourite Sport! i like football too what team do you support extermination i support the only one Man u :wink:
-
Re: login.php help plese bro it look likfe this nw http://criminalbusiness.exofire.net/login.php i want he form in the login now box
-
Re: login.php help plese Thank you i will try it later and let you know if its working
-
Re: login.php help plese Can some please help.
-
hi am having problem's this my login i made today the login form is the problem i cant get it to go in the login now box URL is http://criminalbusiness.exofire.net/login.php can any please help me and sort it out and post it back and can some please add the description code so when i put a description on basic settings it bes in the ABOUT THE GAME box and where the buttons are at the top can some one please put links on thank you :-) login.php <?php session_start(); include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } print <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{$set['game_name']}</title> <script language="JavaScript"> <!-- function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function DeleteCookie (name,path,domain) { if (GetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } // --> </script> <script language="JavaScript"> var usr; var pw; var sv; function getme() { usr = document.login.username; pw = document.login.password; sv = document.login.save; if (GetCookie('player') != null) { usr.value = GetCookie('username') pw.value = GetCookie('password') if (GetCookie('save') == 'true') { sv[0].checked = true; } } } function saveme() { if (usr.value.length != 0 && pw.value.length != 0) { if (sv[0].checked) { expdate = new Date(); expdate.setTime(expdate.getTime()+(365 * 24 * 60 * 60 * 1000)); SetCookie('username', usr.value, expdate); SetCookie('password', pw.value, expdate); SetCookie('save', 'true', expdate); } if (sv[1].checked) { DeleteCookie('username'); DeleteCookie('password'); DeleteCookie('save'); } } else { alert('You must enter a username/password.'); return false; } } </script> <style type="text/css"> body { font-family:Tahoma;font-size:9pt;color: white; font-variant: small-caps; background-color:#222222; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: white;text-decoration: none; } A:hover {cursor: crosshair; color: #0066FF; } table,tr,td { font-size:9pt; } img { border:none; } </style> </head> <body> <center> EOF; $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$ip)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } print "<style type='text/css'> <!-- #Layer6 { position:absolute; width:200px; height:50px; z-index:2; left: 363px; top: 255px; } #Layer7 { position:absolute; width:200px; height:115px; z-index:3; left: 5px; top: 265px; } #Layer8 { position:absolute; width:1081px; height:33px; z-index:4; left: 122px; top: 800px; } #Layer9 { position:absolute; width:200px; height:50px; z-index:2; left: 563px; top: 255px; } #Layer10 { position:absolute; width:200px; height:50px; z-index:2; left: 763px; top: 255px; } #Layer11 { position:absolute; width:200px; height:50px; z-index:2; left: 763px; top: 255px; } body { background-color: #000000; background-image: url('criminal-business-newlogin1.gif'); background-repeat: no-repeat; background-position: top } --> </style> <body bgcolor='#444444'> <div id='Layer7'> <table width='330' border='0'> <td><div align='center'><form action=authenticate.php method=post name=login onsubmit=\"return saveme();\"><font color=black>Username: <input type=text name=username> </div></td> <td><div align='center'> </div></td> </tr> <tr> <td><div align='center'><font color=black>Password: <input type=password name=password> </div></td> <td><div align='center'> </div></td> </tr> <tr> <td><div align='center'> <font color=black>Remember me? <input type=\"radio\" value=\"ON\" name=\"save\"><font color=black>Yes <input type=\"radio\" name=\"save\" value=\"OFF\" checked><font color=black>No <input type=submit value=Submit></form> </div></td> <td><div align='center'> </div></td> </tr> <tr> </tr> </table> </center></td> </tr> </table> </div> <div id='Layer6'> <tr> </div> <div id='Layer8'> <table width='70%' border='0' bgcolor='#000000'> <tr> <th scope='col'><center> </div> </center>"; print "</body></html>"; ?>
-
Re: 3 in 1 Bank System [$20] Nice mod Akash well done its good keep up the good work :-)
-
Re: Houses problem or bug never mind i have fixed the problem it was the sharing marriage mod and i removed the shareing marriage code from header.php and that sorted out my problem :-)
-
Hi on my game when i someone oh i buy a house it comes to me when ever i click on some think in the game the house sells automatically and when i create a new house it comes to me and when i buy a new house that house sells automatically and the new house i created comes to me can anyone please help me :-(
-
Re: The Best Game Ever Released Gta iv is also good with 84 missions!!
-
Re: Help Again Please with My right Sidebar! I Am here to say Killah is a good mate he is kind wid me killah curry on with your great coding i love all your games mods and coding :-)
-
Re: Advance Search {V2} tables example <table width=100% height=50%'> <table width=100% height=50% cellspacing='1'> :wink: Oh go to w3schools.com and learn the html basics :wink:
-
Re: Money sql injection crime rate is less and i give less payments
-
Re: Money sql injection Its mccode v2 game php version.
-
Hi on my game i am concerned that how the players are getting loads of money i dunno how there getting so much money in first day does any one know the sql injection secure code so there cant cheat and get loads of money thank you for your time. :x
-
Re: Templates Ok m8 ty so when i have made the template learn html so then i know what to do to put it on a site ty for your info
-
Hello everyone I wanted to ask a question can we make templates and photoshop for mccodes games and once its made to put it on my login page wot do i need to do do i need to grab the css code of the templates and insert it login form and that etc thank you sorry for any spelling mistakes?
-
Re: New improved mailbox. Killah ignore others this is a good mod not bad
-
Re: Guess the next poster Nope Spudinski
-
Re: Page Tutorials [FREE] Can anyone please show me a screenshot of this thank you
-
Hi i attack people on bounty hunter and i dont get any money rewarded game money and the time does not go down too and if failed/succeeded statement. here's the code <?php include "globals.php"; print "<h2>Bountys</h2>"; switch($_GET['action']) { case 'view': view(); break; case 'add': add(); break; case 'add2': add2(); break; case 'remove': remove(); break; case 'remove2': remove2(); break; case 'claim': claim(); break; case 'end': end2(); break; case 'reason': reason(); break; default: home(); break; } function home() { global $db,$ir,$c,$userid,$h; print "<center> [[url='bounty.php?action=add'][b]Add a bounty[/b]][/url] If you choose to take on a bounty, you have 1 hour to complete it. You must hospitalize the target, or else you wont receive the reward. Good luck. <table width=80%> <tr bgcolor=#DDDDDD> <td class='h' align=center>Target</td> <td class='h' align=center>Reward</td> <td class='h' align=center>Action</td> <td class='h' align=center>Reason</td> </tr>"; $q=mysql_query("SELECT * FROM bountys WHERE bDONE=0 ORDER BY bID DESC",$c) or die(mysql_error()); $i=0; while($r=mysql_fetch_array($q)) { $y=mysql_query("SELECT * FROM users WHERE userid={$r['bWHO']}",$c) or die(mysql_error()); $two=mysql_fetch_array($y); $i++; $money=money_formatter($r['bMONEY']); print "<tr class=\"d".($i & 1)."\">"; print "\n<td align=center><a href='viewuser.php?u={$r['bWHO']}'> {$two['username']} [{$r['bWHO']}] </a></td><td align=center>$money</td>"; if($r['bTAKEN'] == $userid) { print "<td align=center>[url='bounty.php?action=end&XID={$r[']<u><font color=brown>End</u></font>[/url]"; } else if($r['bTAKEN'] > 0) { $uy=mysql_query("SELECT * FROM users WHERE userid={$r['bTAKEN']}",$c) or die(mysql_error()); $one=mysql_fetch_array($uy); print "<td align=center>[i]<font color=purple>Taken by: [url='viewuser.php?u={$r[']<font color=purple><u>{$one['username']} [{$one['userid']}]</u> {$one['bounty']} min(s) left</font>[/url][/i]</font>"; } else if($r['bTAKEN'] < 0) { $who= abs((int) $r['bTAKEN']); $uy=mysql_query("SELECT * FROM users WHERE userid=$who",$c) or die(mysql_error()); $one=mysql_fetch_array($uy); print "<td align=center>[i]<font color=blue>Finished by: [url='viewuser.php?u={$one[']<font color=blue><u>{$one['username']} [{$one['userid']}]</u></font>[/url][/i]</font>"; } else if($r['bADDER'] == $userid) { print "<td align=center>[url='bounty.php?action=remove&XID={$r[']<u><font color=blue>Remove</u></font>[/url]"; } else if($r['bTAKEN'] == 0) { print "<td align=center>[url='bounty.php?action=claim&XID={$r[']<u><font color=green>Claim</u></font>[/url]"; } print "</td>"; if(!$r['bREASON']) { print "<td align=center>None Given</td>"; } else { print "<td align=center><a href=bounty.php?ID={$r['bID']}&action=reason>> View Reason</a></td>"; } print "</tr>"; } print "</table>"; } function add() { global $db,$ir,$c,$userid,$h; print "<center>[b]Please enter the ID # of the person you are wanting to place a bounty on? You are only allowed to have 5 bountys at a time. Minumim bounty is $50,000[/b] If the person you want to put a bounty on already has a bounty on them, you must at least double the price in order to place it. [b]<a href=http://knightsadventure.net/gamerules.php#bounty>Click here for the guidelines on bounty reasons!</a>[/b] <form action=bounty.php?action=add2 method='post'> User ID#: <input type='text' name='ID' /> Bounty: <input type='text' name='bounty' value='50000' /> Bounty Reason: <input type='text' name='reason' value='A short reason here' /> <input type='submit' value='Submit' /></form>"; } function add2() { global $db,$ir,$c,$userid,$h; $_POST['ID']= abs((int) $_POST['ID']); $_POST['bounty']= abs((int) $_POST['bounty']); if(!$_POST['ID'] || !$_POST['bounty']) { die("<center>You have to have both an user and bounty selected [url='bounty.php?action=add']> Back[/url]"); } else if($_POST['ID'] == 1 || $_POST['ID'] == 2) { die("<center>You cant put a hit on Tyler or Logan [url='bounty.php?action=add']> Back[/url]"); } else { $q=$db->query("SELECT * FROM users WHERE userid={$_POST['ID']}"); if ($db->num_rows($q) == 0) { die("<center>This isnt a real users [url='bounty.php?action=add']> Back[/url]"); } $a=$db->query("SELECT * FROM bountys WHERE bWHO={$_POST['ID']}"); if ($db->num_rows($a)) { die("<center>This users already has a bounty on them. [url='bounty.php?action=add']> Back[/url]"); } $b=$db->query("SELECT * FROM bountys WHERE bADDER=$userid AND bTAKEN >= 0"); if ($db->num_rows($b) > 5) { die("<center>You are only allowed to have 5 bountys at a time. [url='bounty.php?action=add']> Back[/url]"); } else if($_POST['ID'] == $userid) { die("<center>You cant place a bounty on yourself silly [url='bounty.php']> Back[/url]"); } else if($_POST['bounty'] > $ir['money'] || $_POST['bounty'] < 49999) { die( "<center>You do not have enough money to place this bounty or it isnt above $50,000. [url='bounty.php?action=add']> Back[/url]"); } else { $r=$db->fetch_row($q); if($r['duties'] == 'NPC') { die("<center>You cant place a bounty on an NPC. [url='bounty.php?action=add']> Back[/url]"); } print "<center>You have placed a bounty on {$r['username']} [{$r['userid']}] [url='bounty.php']> Back[/url]"; $re=mysql_real_escape_string($_POST['reason']); $reason=htmlspecialchars($_POST['reason']); mysql_query("INSERT INTO bountys VALUES('',$userid,{$_POST['bounty']},{$_POST['ID']},0,0,0,'$reason')",$c); mysql_query("UPDATE users SET money=money-{$_POST['bounty']} where userid=$userid",$c); if($_POST['reason']) { event_add($_POST['ID'],"Someone has put a bounty on you with the reason: $reason.",$c); } else { event_add($_POST['ID'],"Someone has put a bounty on you",$c); } } } } function remove() { global $db,$ir,$c,$userid,$h; $_GET['XID']= abs((int) $_GET['XID']); if($_GET['XID']) { $q=$db->query("SELECT * FROM bountys WHERE bID={$_GET['XID']}") or die(mysql_error()); $r=$db->fetch_row($q); if($r['bADDER'] != $userid) { die("<center>You do not own this bounty <a href='bounty.php>> Back</a>"); } else if($r['bTAKEN'] != 0) { die("<center>Someone is currently doing this mission <a href='bounty.php>> Back</a>"); } else { print "<center>[b]Are you sure you wish to remove this bounty? [/b] [url='bounty.php?action=remove2&XID={$_GET[']> Yes[/url] [url='bounty.php']> No[/url]"; } } } function remove2() { global $db,$ir,$c,$userid,$h; $_GET['XID']= abs((int) $_GET['XID']); if($_GET['XID']) { $q=$db->query("SELECT * FROM bountys WHERE bID={$_GET['XID']}") or die(mysql_error()); $r=$db->fetch_row($q); if($r['bADDER'] != $userid) { die("<center>You do not own this bounty <a href='bounty.php>> Back</a>"); } else if($r['bTAKEN'] != 0) { die("<center>Someone is currently doing this mission <a href='bounty.php>> Back</a>"); } else { $db->query("DELETE FROM bountys WHERE bID={$_GET['XID']}"); $db->query("UPDATE users SET money=money+{$r['bMONEY']} WHERE userid=$userid"); print "<center>Bounty removed! [url='bounty.php']> Back[/url]"; } } else { print "<center>No bounty selected [url='bounty']> Back[/url]"; } } function claim() { global $db,$ir,$c,$userid,$h; $_GET['XID']= abs((int) $_GET['XID']); if($_GET['XID']) { $q=$db->query("SELECT * FROM bountys WHERE bID={$_GET['XID']}") or die(mysql_error()); $r=$db->fetch_row($q); if($r['bTAKEN'] != 0) { die("<center>Someone already has this bounty [url='bounty.php']> Back[/url]"); } else if($ir['bounty']) { die("<center>You are already have a bounty you are doing [url='bounty.php']> Back[/url]"); } else if($r['bWHO'] == $userid) { die("<center>You cant accept the bounty on yourself silly [url='bounty.php']> Back[/url]"); } else if($r['bADDER'] == $userid) { die("<center>You cant claim the bounty you put silly [url='bounty.php']> Back[/url]"); } else { print "<center>You have accepted the bounty, you have one hour until it will put it back on the market, good luck. [b]You must hospitlize the person in order to revice the bounty prize.[/b] [url='bounty.php']> Back[/url]"; $db->query("UPDATE bountys SET bTAKEN=$userid WHERE bid={$_GET['XID']}") or die(mysql_error()); $db->query("UPDATE users SET bounty=60 WHERE userid=$userid") or die(mysql_error()); } } else { print "<center>No bounty selected [url='bounty.php']> Back[/url]"; } } function end2() { global $db,$ir,$c,$userid,$h; $db->query("UPDATE bountys SET bTAKEN=0 WHERE bTAKEN=$userid") or die(mysql_error()); $db->query("UPDATE users SET bounty=0 WHERE userid=$userid") or die(mysql_error()); print "<center>You have ended this bounty. [url='bounty.php']> Back[/url]"; } function reason() { global $db,$ir,$c,$userid,$h; $ID= abs((int) $_GET['ID']); if(!$ID) { print "Error, go back.<a href=bounty.php>> Back</a>"; } else { $q=$db->query("SELECT bREASON FROM bountys WHERE bID=$ID") or die(mysql_error()); $r=$db->fetch_row($q); print "[b]This Bountys Reason[/b] [i]{$r['bREASON']}[/i] <hr><a href=bounty.php>> Back</a><hr>"; } } $h->endpage(); ?>
-
Re: Gang records messed up cron_day.php is working i have this for crystal bank $db->query("UPDATE users SET cbank=cbank+(cbank/50) where cbank>0"); on cron_day
-
Re: Gang records messed up One more problam crystal bak isent giving 2% a day cbank.php <?php include "globals.php"; print "<h3>Crystal Reserve</h3>"; if($ir['cbank']>-1) { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>4999999) { print "Congratulations, you bought a crystal reserve account for \$5,000,000! [url='bank.php']Start using my account[/url]"; $db->query("UPDATE users SET money=money-5000000,cbank=0 WHERE userid=$userid"); } else { print "You do not have enough money to open an account. [url='explore.php']Back to town...[/url]"; } } else { print "Open a crystal reserve account today, just \$5,000,000! [url='cbank.php?buy']> Yes, sign me up![/url]"; } } function index() { global $db, $ir,$c,$userid,$h; print "\n[b]You currently have {$ir['cbank']} in the crystal reserve.[/b] At the end of each day, your crystal reserve balance will go up by 2%. <table width='75%' cellspacing=1 class='table'> <tr> <td width='50%'>[b]Deposit Crystals[/b] It will cost you 15% of the crystals you deposit, rounded up. The maximum fee is \$3,000.<form action='cbank.php?action=deposit' method='post'> Amount: <input type='text' name='deposit' value='{$ir['crystals']}' /> <input type='submit' value='Deposit' /></form></td> <td> [b]Withdraw Crystals[/b] There is no fee on withdrawals.<form action='cbank.php?action=withdraw' method='post'> Amount: <input type='text' name='withdraw' value='{$ir['cbank']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function deposit() { global $db,$ir,$c,$userid,$h; $_POST['deposit']=abs((int) $_POST['deposit']); if($_POST['deposit'] > $ir['crystals']) { print "You do not have enough crystals to deposit this amount."; } else { $fee=ceil($_POST['deposit']*15/100); if($fee > 3000) { $fee=3000; } $gain=$_POST['deposit']-$fee; $ir['cbank']+=$gain; $db->query("UPDATE users SET cbank=cbank+$gain, crystals=crystals-{$_POST['deposit']} where userid=$userid"); print "You hand over {$_POST['deposit']} to be deposited, after the fee is taken ($fee), $gain crystals is added to your crystal reserve account. [b]You now have {$ir['cbank']} in the crystal reserve.[/b] [url='cbank.php']> Back[/url]"; } } function withdraw() { global $db,$ir,$c,$userid,$h; $_POST['withdraw']=abs((int) $_POST['withdraw']); if($_POST['withdraw'] > $ir['cbank']) { print "You do not have enough reserved crystals to withdraw this amount."; } else { $gain=$_POST['withdraw']; $ir['cbank']-=$gain; $db->query("UPDATE users SET cbank=cbank-$gain, crystals=crystals+$gain where userid=$userid"); print "You ask to withdraw $gain, the crystal reserve automated teller spits out your crystals into a little satchel. A robotic arm then picks up the satchel and drops it into your hand. You there hear a robotic voice chime - Have a nice day {$ir['username']} - [b]You now have {$ir['cbank']} crystals in the crystal reserve.[/b] [url='cbank.php']> Back[/url]"; } } $h->endpage(); ?>
-
Re: Gang records messed up Thank you very much again
-
Re: Gang records messed up Thank you very much fbiss :-)