
Casey
Members-
Posts
69 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Casey
-
Hello there people i would like to tell you that it is DANNY696 BIRTHDAY Happy Birthday danny696
-
how is not good ? and tezzmosis you didn't change anythink
-
why dont the <br /> show up
-
is it a sick game all my mates have got it
-
i dont no why just try this code <?php $macropage="criminal.php"; include_once "globals.php"; if($ir['jail'] or $ir['hospital']) { echo 'This page cannot be accessed while in jail or hospital.'; } $q2=$db->query("SELECT * FROM crimes ORDER BY crimeBRAVE ASC"); while ($r2=$db->fetch_row($q2)) { $crimes[]=$r2; } $q=$db->query("SELECT * FROM crimegroups ORDER by cgORDER ASC"); echo '<b>Criminal Centre</b><br /> <table width="75%" cellspacing=1 class="table"> <tr><th>Crime</th> <th>Cost</th> <th>Do</th> </tr>'; while($r=$db->fetch_row($q)) { echo '<tr><td colspan="3" class="h">'.mysql_real_escape_string($r["cgNAME"]).'</td></tr>'; foreach($crimes as $v) { if($v['crimeGROUP'] == $r['cgID']) { echo '<tr><td>'.mysql_real_escape_string($v["crimeNAME"]).'</td>'; echo '<td>'.$v["crimeBRAVE"].' Brave</td>'; echo '<td><a href="docrime.php?c='.$v['crimeID'].'">Do</a></td></tr>'; } } } echo "</table>"; $h->endpage(); ?>
-
Hello there guys i haven't made a mod for 2 years lol. Ive been busy on call of duty I Tested And Fully Works So here guys i thought i may recode crystal temple and here it is Replace crystaltemple.php with this <?php include (DIRNAME(__FILE__) . "/globals.php"); ######################### # Name : Crystal Temple # # Recoded : Yes # # Made By : Casey # ######################### switch($_GET['action']) { case "refill": ctemple_refill(); break; case "iq": ctemple_iq(); break; case "iq2": ctemple_iq2(); break; case "money": ctemple_money(); break; case "money2": ctemple_money2(); break; default : ctemple_index(); break; } function ctemple_index() { global $ir,$set; echo '<b>Crystal Temple</b><br />'; echo 'Welcome to the Crystal Temple<br />'; echo 'You have '.number_format($ir['crystals']).' Crystals<br />'; echo 'What would you like to spend your crystals on?<br />'; echo '<br />'; echo '<table width="50%" cellspacing="1" cellpadding="1" class="table" align="center">'; echo '<tr> '; echo '<th width="10%">Name</th>'; echo '<th width="10%">Cost</th>'; echo '<th width="10%">Go There</th>'; echo '</tr>'; echo '<tr>'; echo '<td>Energy Refill</td>'; echo '<td>'.number_format($set["ct_refillprice"]).' Crystals</td>'; echo '<td id="energy"><a href="crystaltemple.php?action=refill">Do</td>'; echo '<tr>'; echo '<td>IQ</td>'; echo '<td>'.number_format($set["ct_iqpercrys"]).' IQ per Crystal</td>'; echo '<td id="iq"><a href="crystaltemple.php?action=iq">Do</span></td>'; echo '<tr>'; echo '<td>Money</td>'; echo '<td>$'.number_format($set["ct_moneypercrys"]).' per Crystal</td>'; echo '<td id="money"><a href="crystaltemple.php?action=money">Do</span></td>'; echo '</table>'; echo '</center>'; echo '</td>'; echo '</tr>'; echo '</table> '; } function ctemple_refill() { { global $db,$ir,$userid,$set; if($ir['crystals'] <$set['ct_refillprice']) { echo 'You dont have enough crystals!<br />'; } else if($ir['energy'] == $ir['maxenergy']) { echo 'You already have full energy.<br />'; } else { $db->query("UPDATE users SET energy=maxenergy,crystals=crystals-{$set['ct_refillprice']} WHERE userid=$userid"); echo 'You have paid '.$set['ct_refillprice'].' crystals to refill your energy bar.'; } } } function ctemple_iq() { global $ir,$set; echo 'Type in the amount of crystals you want to swap for IQ.<br />'; echo 'You have <b>'.number_format($ir['crystals']).'</b> crystals.<br />'; echo 'One crystal = '.number_format($set['ct_iqpercrys']).' IQ. <form action="crystaltemple.php?action=iq2" method="post"><input type="text" name="crystals" /><br /> <input type="submit" value="Swap" /></form>'; } function ctemple_iq2() { global $db,$ir,$userid,$set; $_POST['crystals'] = abs(@intval($_POST['crystals'])); if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { echo 'Error, you either do not have enough crystals or did not fill out the form.<br />'; echo '<a href="crystaltemple.php?action=iq">Back</a>'; } else { $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']} WHERE userid=$userid"); $db->query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid"); echo 'You traded '.$_POST['crystals'].' crystals for '.$iqgain.' IQ.'; } } function ctemple_money() { global $ir,$set; echo 'Type in the amount of crystals you want to swap for money.<br />'; echo 'You have <b>'.$ir['crystals'].'</b> crystals.<br />'; echo 'One crystal = $'.number_format($set['ct_moneypercrys']).'.'; echo '<form action="crystaltemple.php?action=money2" method="post">'; echo '<input type="text" name="crystals" /><br />'; echo '<input type="submit" value="Swap" /></form>'; } function ctemple_money2() { global $db,$ir,$userid,$set; $_POST['crystals'] = abs(@intval($_POST['crystals'])); if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { echo 'Error, you either do not have enough crystals or did not fill out the form.<br />'; echo '<a href="crystaltemple.php?action=money">Back</a>'; } else { $money = $_POST['crystals']*$set['ct_moneypercrys']; $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']},money=money+$money WHERE userid=$userid"); echo 'You traded '.$_POST['crystals'].' crystals for $'.number_format($money).'.'; } } $h->endpage(); ?>
-
i saw this on here http://makewebgames.io/showthread.php/34171-Game-Station-mod/page2 i was wondering if some one can upgrade it so you can add games from staff panel i think it will be good so it selects from data base when wanting to edit...
-
its an ok mod but aint msql_query v1 and v2 is $db-> .. Looks a nice coded script and very layed out fair play.
-
Can some one secure the do pic change cuz when i try it it makes me staff <?php include "globals.php"; switch($_GET['action']) { case 'sexchange2': do_sex_change(); break; case 'sexchange': conf_sex_change(); break; case 'passchange2': do_pass_change(); break; case 'passchange': pass_change(); break; case 'namechange2': do_name_change(); break; case 'namechange': name_change(); break; case 'picchange2': do_pic_change(); break; case 'picchange': pic_change(); break; case 'forumchange2': do_forum_change(); break; case 'forumchange': forum_change(); break; default: prefs_home(); break; } function prefs_home() { global $db,$ir,$c,$userid,$h; print "<h3>Preferences</h3> <a href='preferences.php?action=sexchange'>Sex Change</a><br /> <a href='preferences.php?action=passchange'>Password Change</a><br /> <a href='preferences.php?action=namechange'>Name Change</a><br /> <a href='preferences.php?action=picchange'>Display Pic Change</a><br /> <a href='preferences.php?action=forumchange'>Forum Info Change</a><br />"; } function conf_sex_change() { global $ir,$c,$userid,$h; if($ir['gender'] == "Male") { $g="Female"; } else { $g="Male"; } print "Are you sure you want to become a $g?<br /> <a href='preferences.php?action=sexchange2'>Yes</a> | <a href='preferences.php'>No</a>"; } function do_sex_change() { global $db,$ir,$c,$userid,$h; if($ir['gender'] == "Male") { $g="Female"; } else { $g="Male"; } $db->query("UPDATE users SET gender='$g' WHERE userid=$userid"); print "Success, you are now $g!<br /> <a href='preferences.php'>Back</a>"; } function pass_change() { global $ir,$c,$userid,$h; print "<h3>Password Change</h3><form action='preferences.php?action=passchange2' method='post'>Current Password: <input type='password' name='oldpw' /><br /> New Password: <input type='password' name='newpw' /><br /> Confirm: <input type='password' name='newpw2' /><br /> <input type='submit' value='Change PW' /></form>"; } function do_pass_change() { global $db,$ir,$c,$userid,$h; if(md5($_POST['oldpw']) != $ir['userpass']) { print "The current password you entered was wrong.<br /> <a href='preferences.php?action=passchange'>> Back</a>"; } else if($_POST['newpw'] !== $_POST['newpw2']) { print "The new passwords you entered did not match!<br /> <a href='preferences.php?action=passchange'>> Back</a>"; } else { $db->query("UPDATE users SET userpass=md5('{$_POST['newpw']}') WHERE userid=$userid"); print "Password changed!"; } } function name_change() { global $ir,$c,$userid,$h; print "<h3>Name Change</h3> Please note that you still use the same name to login, this procedure simply changes the name that is displayed. <form action='preferences.php?action=namechange2' method='post'> New Name: <input type='text' name='newname' /><br /> <input type='submit' value='Change Name' /></form>"; } function do_name_change() { global $db,$ir,$c,$userid,$h; if($_POST['newname'] == "") { print "You did not enter a new name.<br /> <a href='preferences.php?action=namechange'>> Back</a>"; } else { $_POST['newname']=str_replace(array("<", ">", "\\\'"), array("<", ">", "'"), $_POST['newname']); $db->query("UPDATE users SET username='{$_POST['newname']}' WHERE userid=$userid"); print "Username changed!"; } } function pic_change() { global $ir,$c,$userid,$h; print "<h3>Pic Change</h3> Please note that this must be externally hosted, <a href='http://imageshack.us'>ImageShack</a> is our recommendation.<br /> Any images that are not 150x150 will be automatically resized <form action='preferences.php?action=picchange2' method='post'> New Pic: <input type='text' name='newpic' value='{$ir['display_pic']}' /><br /> <input type='submit' value='Change Name' /></form>"; } function do_pic_change() { global $db,$ir,$c,$userid,$h; if($_POST['newpic'] == "") { print "You did not enter a new pic.<br /> <a href='preferences.php?action=picchange'>> Back</a>"; } else { $_POST['newpic']=str_replace('php\\\'',''', $_POST['newpic']); $db->query("UPDATE users SET display_pic='{$_POST['newpic']}' WHERE userid=$userid"); print "Pic changed!"; } } function forum_change() { global $ir,$c,$userid,$h; print "<h3>Forum Info Change</h3> Please note that the avatar must be externally hosted, <a href='http://imageshack.us'>ImageShack</a> is our recommendation.<br /> Any avatars that are not 100x100 will be automatically resized <form action='preferences.php?action=forumchange2' method='post'> Avatar: <input type='text' name='forums_avatar' value='{$ir['forums_avatar']}' /><br /> Signature (you may use BBcode): <textarea rows=10 cols=50 name='forums_signature'>{$ir['forums_signature']}</textarea><br /> <input type='submit' value='Change Info' /></form>"; } function do_forum_change() { global $db,$ir,$c,$userid,$h; $_POST['forums_avatar']=str_replace(array("<", ">"), array("<", ">"), $_POST['forums_avatar']); $db->query("UPDATE users SET forums_avatar='{$_POST['forums_avatar']}', forums_signature='{$_POST['forums_signature']}' WHERE userid=$userid"); print "Forum Info changed!"; } $h->endpage(); ?>
-
yes i did because it is needed there
-
Hey there guys i just looked at Bank and updated and secured it Replace with <?php include_once"globals.php"; echo "<h3>Bank</h3>"; if($ir['bankmoney']>-1) { switch($_GET['action']) { case "deposit":deposit();break; case "withdraw":withdraw();break; default:index();break; } } else { if(isset($_GET['buy'])) { if($ir['money']>999) { echo "Congratulations, you bought a bank account for \$1,000!<br /> <a href='bank.php'>Start using my account</a>"; $db->query("UPDATE users SET money=money-1000,bankmoney=0 WHERE userid=$userid"); } else { echo "You do not have enough money to open an account. <a href='explore.php'>Back to Town...</a>"; } } else { echo "Open a bank account today, just \$1,000!<br /> <a href='bank.php?buy'>> Yes, sign me up!</a>"; } } function index() { global $db, $ir,$c,$userid,$h; echo "\n<b>You currently have \$".number_format{$ir['bankmoney']}." in the bank.</b><br /> At the end of each day, your bank balance will go up by 2%.<br /> <table width='75%' cellspacing=1 class='table'> <tr> <td width='50%'><b>Deposit Money</b><br /> It will cost you 15% of the money you deposit, rounded up. The maximum fee is \$3,000. <form action='bank.php?action=deposit' method='post'> Amount: <input type='text' name='deposit' value='".$ir['money']."' /><br /> <input type='submit' value='Deposit' /></form></td> <td> <b>Withdraw Money</b><br /> There is no fee on withdrawals.<form action='bank.php?action=withdraw' method='post'> Amount: <input type='text' name='withdraw' value='".$ir['bankmoney']."' /><br /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function deposit() { global $db,$ir,$c,$userid,$h; $_POST['deposit']=abs(@intval($_POST['deposit'])); if($_POST['deposit'] > $ir['money']) { echo "You do not have enough money to deposit this amount."; } else { $fee=ceil($_POST['deposit']*15/100); if($fee > 3000) { $fee=3000; } $gain=$_POST['deposit']-$fee; $ir['bankmoney']+=$gain; $db->query("UPDATE users SET bankmoney=bankmoney+".$gain.", money=money-".$_POST['deposit']." where userid=".$userid.""); echo "You hand over \$".$_POST['deposit']." to be deposited, <br /> after the fee is taken \$".$fee.", \$".$gain." is added to your account. <br /> <b>You now have \$".number_format($ir['bankmoney'])." in the bank.</b><br /> <a href='bank.php'>> Back</a>"; } } function withdraw() { global $db,$ir,$c,$userid,$h; $_POST['withdraw']=abs(@intval($_POST['withdraw'])); if($_POST['withdraw'] > $ir['bankmoney']) { echo "You do not have enough banked money to withdraw this amount."; } else { $gain=$_POST['withdraw']; $ir['bankmoney']-=$gain; $db->query("UPDATE users SET bankmoney=bankmoney-".$gain.", money=money+".$gain." where userid=".$userid.""); echo "You ask to withdraw ".$gain.", <br /> the banking lady grudgingly hands it over. <br /> <b>You now have \$".number_format($ir['bankmoney'])." in the bank.</b><br /> <a href='bank.php'>> Back</a>"; } } $h->endpage(); ?>
-
Crons every time it comes up with Path to the script cannot contain any special symbols or whitespaces
-
on my testing game it says im 4seconds ago even when i refresh help me please who ever dose gets +1
-
Nice code there mate :)
-
Dose any one still have magicitallyguy cron job.php so you can run crons from data base and cronjob.php
-
Re: [V1 && V2] Simple MySQL Rank Mod! Nice Work i Might use that in my game :)
-
Re: [V2] pick a cup game[V2] lmao but magical on php ur ad and on here ur not wtf :)?:>
-
Re: [V2] pick a cup game[V2] use it its good and the imerges carnt get on here
-
Re: [V2] pick a cup game[V2] i didnt make it from scratch but some of it contact me [email protected] deadlysin
-
Re: [V2] pick a cup game[V2] didnt i say kiding on my post :?means i have posted it and i was kiding i might add hitman
-
Re: [V2] pick a cup game[V2] Code removed due to this being someone elses materiel.
-
Re: [V2] pick a cup game[V2] i have serched it not there
-
Re: [V2] pick a cup game[V2] make one u mean ?