
Absolute Zero
Members-
Posts
303 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Absolute Zero
-
Re: Anti-sql injection function In global_func.php I put this: function Clean($String) { if (ini_get('magic_quotes_gpc') == 'off') { $String = addslashes($String); } else { $String = htmlentities($String, ENT_QUOTES); $String = mysql_real_escape_string($String); } return $String } Then for either post or get I would put this: $_GET['EXAMPLE'] = Clean($_GET['EXAMPLE']); $_POST['EXAMPLE'] = Clean($_POST['EXAMPLE']); This has worked so far for me. 8-)
-
Attractive Advertisement Tutorial!
Absolute Zero replied to Absolute Zero's topic in Art and Content
Re: Attractive Advertisement Tutorial! Thanks so much for the comment, I really appreciate it. Did you make an ad yet? May I see it? -
Re: ehm? There are multiple guides to install CRONS, search them. To change how your game looks, speaking from using mccodes v1, you would go to header.php and mainmenu.php to change how the general layout of your site looks.
-
[Free] [v1] User Verification [Captcha]
Absolute Zero replied to Isomerizer's topic in Free Modifications
Re: [Free] [v1] User Verification [Captcha] So is there anyway I could modify Isomerizer's code to work for my problem? I really do appreciate the help Isomerizer and Ferdi, thanks :-) -
[Free] [v1] User Verification [Captcha]
Absolute Zero replied to Isomerizer's topic in Free Modifications
Re: [Free] [v1] User Verification [Captcha] So I'm guessing the image is not needed, then why does it Fatal Error? -
[Free] [v1] User Verification [Captcha]
Absolute Zero replied to Isomerizer's topic in Free Modifications
Re: [Free] [v1] User Verification [Captcha] Learn to read: OXI said: 3) You forgot to mention, you need to make a file in your directory images/ (If you have one prefferably) and you need to make a file called verify.jpeg AND chmod it to 0666 Creator of Mod said: 3) Incorrect , not needed -
[Free] [v1] User Verification [Captcha]
Absolute Zero replied to Isomerizer's topic in Free Modifications
Re: [Free] [v1] User Verification [Captcha] 1. Validate every time you train at least once. So not every login. 2. Everything can be bypassed now a days. 3. Incorrect , not needed :-P lol. He says its not needed. -
[Free] [v1] User Verification [Captcha]
Absolute Zero replied to Isomerizer's topic in Free Modifications
Re: [Free] [v1] User Verification [Captcha] Fatal error: Call to undefined function: gd_info() in /home2/battlefi/public_html/validate.php on line 1 -
[Free] [v1] User Verification [Captcha]
Absolute Zero replied to Isomerizer's topic in Free Modifications
Re: [Free] [v1] User Verification [Captcha] Fatal error: Call to undefined function: gdinfo() in /home2/battlefi/public_html/validate.php on line 1 -
[Free] [v1] User Verification [Captcha]
Absolute Zero replied to Isomerizer's topic in Free Modifications
Re: [Free] [v1] User Verification [Captcha] Anyone got any idea why? -
Re: [Free] [v1] Jail It was your code that you just posted. I don't wan't 100% bust rate, I just changed it to that to test. But it's alright, I just ended up coding a bust.php and bail.php! Thanks for all the help though Isomerzier!
-
Re: [Free] [v1] Jail Bail does work, but I just changed everything to bust to make sure you get 100% sucess rate, yet it says you fail everytime.
-
Re: [Free] [v1] Jail Still doesn't work. Bail doesn't work at all, you pay 10k they don't get freed. Attempt escape doesn't have a sucess rate, I've tried a lot of times. Bust out doesn't work also. Thanks for the mod though! But if you could fix these it would be great! :-)
-
Re: [Free] [v1] Jail I found what was wrong with bail. This should be your prison: <?php /*----------------------------------------------------- -- Isomerizer Copyright 2007 -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $bail=$_GET['bail']; $bust=$_GET['bust']; if ($bail=="" && $bust=="") { print "<h3>The Local Prison</h3>"; if ($ir['prison']!=0) { print "<a href=escape.php>[Attempt to escape]</a> "; } print "<table width='75%' border='2'><tr bgcolor='#004400'><th>ID</th><th>Name</th> <th>Level</th> <th>Time</th><th>Reason</th><th>Options</th></tr>"; $q=mysql_query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.prison > 0 ORDER BY u.prison DESC",$c); while($r=mysql_fetch_array($q)) { $blah=$r['userid']; print "\n<tr><td>{$r['userid']}</td><td>{$r['gangPREFIX']} [url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td><td> {$r['level']}</td><td>{$r['prison']} minutes</td><td>{$r['prisonreason']}</td><td><form action=prison.php method=GET><a href=prison.php?bust={$r['userid']}>Bust</a> | <a href=prison.php?bail={$r['userid']}>Bail</a></form></td></tr>"; } print "</table>"; } if ($bust!="") { if ($ir['energy']<1) { print "You need 7 power to bust! <a href=prison.php>Back</a>"; exit; } if ($bust==$userid) { print "You cannot bust yourself out! <a href=prison.php>Back</a>"; exit; } $bustlvl=$ir['bustlvl']; $randd=rand(1,300); $rand=$randd*$bustlvl; $lvllrand=rand(1,50); $lvlrand=$lvllrand*$bustlvl; if ($rand<=200) { $eeeeee=mysql_query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.prison > 0 ORDER BY u.prison DESC",$c); while($eee=mysql_fetch_array($eeeeee)) { $busterr=$eee['userid']; $bustooo=$eee['username']; if ($ir['hospital']!="0") { print "You cannot bust out while in Hospital!"; exit; } if ($ir['prison']!="0") { print "You cannot bust out while in Prison!"; exit; } print "You were caught trying to bust $bustooo out of prison and thrown in prison yourself!"; mysql_query("UPDATE users SET energy=energy-1 WHERE userid=$userid", $c); event_add($busterr, "<a href=viewuser.php?u={$ir['ID']}>{$ir['username']}</a> was caught trying to bust you out!", $c); mysql_query("UPDATE users SET prison='100' WHERE userid=$userid", $c); mysql_query("UPDATE users SET totalprison=totalprison+1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET prisonreason='Attempting to bust $bustooo out of prison' WHERE userid=$userid", $c); exit; } } if ($rand>100 && $lvlrand<10) { $e=mysql_query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.prison > 0 ORDER BY u.prison DESC",$c); while($eee=mysql_fetch_array($e)) { $bustingg=$eee['userid']; if ($ir['hospital']!="0") { print "You cannot bust out while in Hospital!"; exit; } if ($ir['prison']!="0") { print "You cannot bust out while in Prison!"; exit; } print "You Busted $busto out of prison! And your bust level went up!"; mysql_query("UPDATE users SET bustlvl=bustlvl+1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET energy=energy-1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET totalbust=totalbust+1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET prison=0 WHERE userid=$bustingg", $c); event_add($bustingg, "<a href=viewuser.php?u={$ir['ID']}>{$ir['username']}</a> busted you out of prison!", $c); exit; } } if ($rand>110) { $e=mysql_query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.prison > 0 ORDER BY u.prison DESC",$c); while($ee=mysql_fetch_array($e)) { $busting=$ee['userid']; $busto=$ee['username']; if ($ir['hospital']!="0") { print "You cannot bust out while in Hospital!"; exit; } if ($ir['prison']!="0") { print "You cannot bust out while in Prison!"; exit; } print "You Busted $busto out of prison!"; mysql_query("UPDATE users SET totalbust=totalbust+1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET energy=energy-1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET prison=0 WHERE userid=$busting", $c); event_add($busting, "<a href=viewuser.php?u={$ir['ID']}>{$ir['username']}</a> busted you out of prison!", $c); exit; } } } if ($bail!="") { $cost=10000; if ($ir['money']<10000) { print "You dont have that sort of cash"; exit; } if ($ir['hospital']!="0") { print "You cannot bail out while in Hospital!"; exit; } if ($ir['prison']!="0") { print "You cannot bail out while in Prison!"; exit; } print "You payed $$cost to bail $busto out of prison!"; mysql_query("UPDATE users SET money=money-10000 WHERE userid=$userid", $c); mysql_query("UPDATE users SET prison=0 WHERE userid=$busting", $c); } $h->endpage(); ?> Find mysql_query("UPDATE users SET prison=0 WHERE userid=$busting", $c); Replace with mysql_query("UPDATE users SET prison=0 WHERE userid=$bail", $c); I will try to figure out escape and bust now. Thanks.
-
Re: F.A.Q. And how would I make it so the code is [u*][/*u] when clicking underline, sorry if its a stupid question.
-
[mccodes] Free Crystal Bank [v1]
Absolute Zero replied to Absolute Zero's topic in Free Modifications
Re: [mccodes] Free Crystal Bank [v1] Thanks, anyone have any comments/thoughts/problems? Please post. -
Re: F.A.Q. Nice guide, but I currently have a problem with changing background images IF in jail/hospital. Any Idea? Also if this even fits here, how do you make it so when you click a smilies or [underline] it gives you the code for underline and the smilies?
-
[mccodes] Free Crystal Bank [v1]
Absolute Zero replied to Absolute Zero's topic in Free Modifications
Re: [mccodes] Free Crystal Bank [v1] No problem. Any problems or questions please post here. +1 if you used it also :lol: -
Re: throw an object at the top poster I throw smilies at you! :-) :-( :-o :? 8-) :lol: :-D :x :-P :lol: :oops: :cry: :evil: :roll: :wink: :| :mrgreen: Eat my army! LOL
-
There may be other crystal banks out there, but maybe not like mine. Features: -When purchasing money/crystal bank you buy both. -No withdraw/deposit fees. -No cron needed. -Different updated look. Now to get started with installing this mod on your mccodes V1 game. Create a new file called: crystalbank.php <?php // Crystal Bank mod // Absolute Zero // [url]www.battlefield-online.com[/url] // Free for criminal existence members session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); print "Crystal Bank"; if($ir['bankcrystal']>-1) { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>49999) { print " Congratulations, you bought the crystal and money bank for \$50,000! Start using my accounts! "; mysql_query("UPDATE users SET money=money-50000,bankcrystal=0 WHERE userid=$userid",$c); } else { print " You do not have enough money to open the crystal and money bank accounts! Home "; } } else { print " Open a crystal and money bank account today, just \$50,000! Yes, sign me up! "; } } function index() { global $ir,$c,$userid,$h; print " \n[b]You currently have {$ir['bankcrystal']} crystals in the crystal bank.[/b] There is no interest involved with crystal bank, only for army bank! There is no fee on crystals deposits. Amount: There is no fee on crystal withdrawals. Amount: "; } function deposit() { global $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. [url='index.php']Home[/url]"; } else { $gain=$_POST['deposit']-$fee; $ir['bankcrystal']+=$gain; mysql_query("UPDATE users SET bankcrystal=bankcrystal+$gain, crystals=crystals-{$_POST['deposit']} where userid=$userid",$c); print " You hand over {$_POST['deposit']} crystals and they are deposited. You now have [b]{$ir['bankcrystal']}[/b] crystals in the bank. [url='crystalbank.php'] Back[/url]"; } } function withdraw() { global $ir,$c,$userid,$h; $_POST['withdraw']=abs((int) $_POST['withdraw']); if($_POST['withdraw'] > $ir['bankcrystal']) { print " You do not have enough banked crystals to withdraw this amount. [url='crystalbank.php']Back[/url]"; } else { $gain=$_POST['withdraw']; $ir['bankcrystal']-=$gain; mysql_query("UPDATE users SET bankcrystal=bankcrystal-$gain, crystals=crystals+$gain where userid=$userid",$c); print "You withdraw $gain crystals from your bank. You now have [b]{$ir['bankcrystal']}[/b] crystals in the bank. [url='crystalbank.php'] Back[/url]"; } } $h->endpage(); ?> Then run this in MYSQL: ALTER TABLE `users` ADD `bankcrystal` INT( 11 ) NOT NULL DEFAULT '0'; And your done! You now have yourself a great crystal bank, change it as needed. If used in another location do not claim it as your own! Keep the comments at the top, thank you. If there are any errors, please post here! +1 if you like, thanks.
-
Re: [Free] [V1] Random Explore Mod Also its way to ***** big
-
Re: THIS OR THAT? goldfish battlefield-online -or- quick buck mccodes game
-
Re: Counting (nr game) 1560
-
Re: Guess the next poster tear
-
Re: Guess the next poster tears