-
Posts
218 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by AnonymousUser
-
did you tag out your php code?
-
show day cron...
-
add to your index.php $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); echo " <tr> <th width='33%'>Stat</th> <th width='33%'>Amount</th> <th width='34%'>Rank</th> </tr> <tr> <td>Strength</td> <td>{$ir['strength']}</td> <td> [Ranked: {$ir['strank']}]</td> </tr> <tr><td>Agility</td> <td> {$ir['agility']}</td> <td> [Ranked: {$ir['agirank']}]</td> </tr> <tr><td>Guard</td> <td> {$ir['guard']} </td> <td>[Ranked: {$ir['guarank']}]</td> </tr> <tr> <td>Labour</td> <td>{$ir['labour']} </td> <td>[Ranked: {$ir['labrank']}]</td></tr> <tr> <td>IQ</td> <td>{$ir['IQ']} </td> <td>[Ranked: {$ir['IQrank']}]</td></tr>
-
its not hard to figure it out, if i keep fixing these little minor things how will you learn?, change '.$gh.' to {$gh} these are common errors and i would suggest a little trial and error before asking ;) at least show you want help and not just someone who will do free work :/
-
lmfao not regular notepad, i meant notepad++ which does the same thing, i was just simply fixing up the forum xfer bugs whatever else is in there is not me its the author :D
-
why use pastebin? i'm just using my notepad :D
-
try this... <?php include "globals.php"; print "<center><font size='4' face='Arial, Helvetica, sans-serif'>User images</font> <hr width=90%>"; switch($_GET['action']) { case 'view': view_image(); break; default: user_images(); break; } function user_images() { global $db,$ir,$c,$userid,$h; $_GET['delete'] = abs((int) $_GET['delete']); if($_GET['delete']) { $db->query("DELETE FROM userimages WHERE imgID={$_GET['delete']} AND imgUSER=$userid"); print " Image deleted from gallery. <hr width=90%>"; } $_GET['set'] = abs((int) $_GET['set']); if($_GET['set']) { $image=$db->query("SELECT * FROM userimages WHERE imgID={$_GET['set']}",$c); $imgs=$db->fetch_row($image); $db->query("UPDATE users SET display_pic='{$imgs['imgURL']}' WHERE userid=$userid"); print " New display image set. <hr width=90%>"; } $_GET['XID'] = abs((int) $_GET['XID']); if(!$_GET['XID']) { print "No userID submitted<hr width=90%>> <a href='explore.php'>Back to city</a><hr width=90%>"; } else { $q=$db->query("SELECT * FROM userimages WHERE imgUSER={$_GET['XID']}",$c); $x=$db->query("SELECT * FROM users WHERE userid={$_GET['XID']}",$c); $y=$db->fetch_row($x); if($db->num_rows($x) == 0) { die (" There is no user with this ID. <hr width=90%>> <a href='explore.php'>Back to city</a><hr width=90%>"); } print "<b>{$y['userid']}'username']}'s uploaded images</b> "; if($db->num_rows($q) == 0) { print "<table width=90% bgcolor=#DFDFDF><tr><td><center>This user has no uploaded images</center></td></tr></table><hr width=90%>> <a href='viewuser.php?u={$y['userid']}'userid']}>Back to profile</a><hr width=90%>"; } else { print "<table width=90% bgcolor=#DFDFDF cellpadding='3'><tr>"; while($r=$db->fetch_row($q)) { $br++; if ($br == 3) { $div="</tr><tr>"; $br=0; } else { $div=""; } $cn++; print "<td align='center'><b>#$cn Profile image</b> <a href='userimages.php?action=view&ID={$r['userid']}'>[img]{$r['userid']}/img]</a>"; if($_GET['XID'] == $userid) { print " [<a href='userimages.php?XID={$r['userid']}'>Delete</a>] [<a href='userimages.php?XID={$r['userid']}'>Set Image</a>]"; } print " </td>"; print "$div"; } print "</tr></table> <hr width=90%>> <a href='viewuser.php?u={$y['userid']}'>Back to profile</a><hr width=90%>"; } } } function view_image() { global $db,$ir,$c,$userid,$h; $_GET['ID'] = abs((int) $_GET['ID']); $e=$db->query("SELECT * FROM userimages WHERE imgID={$_GET['ID']}",$c); $gh=$db->fetch_row($e); print "[img='.$gh.'] <hr width=90%>> <a href="userimages.php?XID='.$gh.'">Back to images</a><hr width=90%>"; } $h->endpage(); ?>
-
CREATE TABLE `userimages` ( `imgID` int(11) NOT NULL auto_increment, `imgUSER` int(11) NOT NULL, `imgURL` varchar(255) NOT NULL, PRIMARY KEY (`imgID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 forgot one :D
-
i've just looked at the code and all i can say is wow :D i'll try to clean it up but i give no promises :D
-
CREATE TABLE `userimages` ( `imgID` int(11) NOT NULL auto_increment, `imgUSER` int(11) NOT NULL, `imgURL` varchar(255) NOT NULL, PRIMARY KEY* (`imgID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 i dont know why you got asterisks here but try that, it should work...
-
Here is the code without the forum crap messing it up... <?php include_once('globals.php'); echo '<p class="heading">Your Houses</p>'; switch ($_GET['page']) { case 'move': move_house(); break; case 'move_out': move_out(); break; case 'estate': estate_agent(); break; case 'sell': sell_house(); break; case 'rentals': rental_market(); break; case 'rent': rent_house(); break; case 'upgrade': upgrade_house(); break; default: houses_index(); break; } function houses_index() { global $ir; $houses = mysql_query(sprintf("SELECT * FROM `owned_houses` LEFT JOIN `houses` ON (`hID` = `uhouseHouse`) LEFT JOIN `users` ON (`userid` = `uhouseOwner`) WHERE (`uhouseOwner` = '%u' || `uhouseTenant` = '%u') AND `uhouseId` != '%d'", $ir['userid'], $ir['userid'], $ir['house'])); echo '<table width="600"> <tr> <td width="50%" align="center"><a href="houses.php?page=estate">Estate agent</a></td> <td width="50%" align="center"><a href="houses.php?page=rentals">Rent a house</a></td> </tr> </table> '; if($ir['house']) { $fetch = mysql_query(sprintf("SELECT * FROM `owned_houses` LEFT JOIN `houses` ON (`hID` = `uhouseHouse`) WHERE (`uhouseId` = '%u')", $ir['house'])); $h = mysql_fetch_assoc($fetch); echo '<b>Current house:</b> <table width="300" class="table"> <tr> <th width="50%">Current house</th> <th width="50%">Move out</th> </tr> <tr> <td>'.stripslashes($h['hNAME']).'</td> <td><a href="houses.php?page=move_out">Move out</a></td> </tr> </table> '; } echo '<table width="600" class="table"> <tr> <th width="25%">House name</th> <th width="25%">Owner</th> <th width="25%">Mood value</th> <th width="25%">Manage</th> </tr>'; if(!mysql_num_rows($houses)) { echo '<tr> <td colspan="5">You have no houses at this time, purchase one at the estate agent\'s.</td> </tr>'; } while($r = mysql_fetch_assoc($houses)) { echo '<tr> <td>'.stripslashes($r['hNAME']).'</td> <td><a href="viewuser.php?u='.$r['userid'].'">'.stripslashes($r['username']).'</a></td> <td>'.number_format($r['uhouseMood']).' mood bar</td> <td><a href="houses.php?page=move&id='.$r['uhouseId'].'">Move in</a> <a href="houses.php?page=sell&id='.$r['uhouseId'].'">Sell house</a> <a href="houses.php?page=rent&id='.$r['uhouseId'].'">Rent house</a> <a href="houses.php?page=upgrade&id='.$r['uhouseId'].'">Add upgrades</a></td> </tr>'; } echo '</table>'; } function move_house() { global $ir; $fetch = mysql_query(sprintf("SELECT * FROM `owned_houses` LEFT JOIN `houses` ON (`hID` = `uhouseHouse`) LEFT JOIN `users` ON (`userid` = `uhouseOwner`) WHERE (`uhouseId` = '%u')", abs((int) $_GET['id']))); if(!isset($_GET['id'])) { echo 'You did not select a house to move in to.'; } else if(!mysql_num_rows($fetch)) { echo 'You cannot move into a non-existant house.'; } else { $r = mysql_fetch_assoc($fetch); if($r['uhouseOwner'] != $ir['userid'] AND $r['uhouseTenant'] != $ir['userid']) { echo 'You are not permitted to move into this house.'; } else if($r['uhouseRTime'] AND $r['uhouseOwner'] == $ir['userid']) { echo 'You cannot move into a house while it is being rented to another member.'; } else { mysql_query(sprintf("UPDATE `users` SET `house` = '%d', `maxwill` = '%d' WHERE (`userid` = '%u')", abs((int) $_GET['id']), $r['uhouseMood'], $ir['userid'])); echo 'You have moved into the '.stripslashes($r['hNAME']).', You now have a maximum mood bar of '.number_format($r['uhouseMood']).'.'; } } } function move_out() { global $ir; $fetch = mysql_query(sprintf("SELECT * FROM `owned_houses` LEFT JOIN `houses` ON (`hID` = `uhouseHouse`) LEFT JOIN `users` ON (`userid` = `uhouseOwner`) WHERE (`uhouseId` = '%u')", $ir['house'])); if(!mysql_num_rows($fetch)) { echo 'You cannot move out of a non-existant house.'; } else { $r = mysql_fetch_assoc($fetch); if($r['uhouseOwner'] != $ir['userid'] AND $r['uhouseTenant'] != $ir['userid']) { echo 'You are not permitted to move out of this house.'; } else { mysql_query(sprintf("UPDATE `users` SET `house` = '0', `maxwill` = '100' WHERE (`userid` = '%u')", $ir['userid'])); echo 'You have moved out of the '.stripslashes($r['hNAME']).', You now have a maximum mood bar of 100.'; } } } function sell_house() { global $ir; $fetch = mysql_query(sprintf("SELECT * FROM `owned_houses` LEFT JOIN `houses` ON (`hID` = `uhouseHouse`) LEFT JOIN `users` ON (`userid` = `uhouseOwner`) WHERE (`uhouseOwner` = '%u') AND (`uhouseId` = '%u')", $ir['userid'], abs((int) $_GET['id']))); if(!isset($_GET['id'])) { echo 'You did not select a house to sell.'; } else if(!mysql_num_rows($fetch)) { echo 'You cannot attempt to sell a non-existant house.'; } else { $r = mysql_fetch_assoc($fetch); if($r['uhouseOwner'] != $ir['userid']) { echo 'You do not own this house, so don\'t attempt to sell it.'; } else if($r['uhouseTenant']) { echo 'You cannot sell a house while it is being rented to another member.'; } else { mysql_query(sprintf("UPDATE `users` SET `money` = `money` + '%d' WHERE (`userid` = '%u')", $r['houseCost'], $ir['userid'])); mysql_query(sprintf("DELETE FROM `owned_houses` WHERE (`uhouseId` = '%u')", abs((int) $_GET['id']))); echo 'You have sold the '.stripslashes($r['hNAME']).' for a total of $'.number_format($r['hPRICE']).'.'; } } } function estate_agent() { global $ir; if(isset($_GET['id'])) { $house = mysql_query(sprintf("SELECT * FROM `houses` WHERE (`hID` = '%u')", abs((int) $_GET['id']))); $r = mysql_fetch_assoc($house); if(!mysql_num_rows($house)) { echo 'You cannot attempt to purchase a non-existant house.'; } else if($ir['money'] < $r['hPRICE']) { echo 'You cannot afford to purchase this house right now, come back another time.'; } else { mysql_query(sprintf("UPDATE `users` SET `money` = `money` - '%d' WHERE (`userid` = '%u')", $r['hPRICE'], $ir['userid'])); mysql_query(sprintf("INSERT INTO `owned_houses` (`uhouseId`, `uhouseOwner`, `uhouseHouse`, `uhouseMood`) VALUES ('NULL','%u', '%d', '%d')", $ir['userid'], $r['hID'], $r['hWILL'])); echo 'You have purchased the '.stripslashes($r['hNAME']).' for a total of $'.number_format($r['houseCost']).'!'; } } else { $houses = mysql_query(sprintf("SELECT * FROM `houses` ORDER BY `hWILL` ASC")); echo '<table width="600" class="table"> <tr> <th>House name</th> <th>Mood value</th> <th>Cost</th> </tr>'; while($r = mysql_fetch_assoc($houses)) { echo '<tr> <td><a href="houses.php?page=estate&id='.$r['hID'].'">'.stripslashes($r['hNAME']).'</a></td> <td>'.number_format($r['hWILL']).' mood bar</td> <td>$'.number_format($r['hPRICE']).'</td> </tr>'; } print '</table>'; } } function rental_market() { global $ir; if(isset($_GET['id'])) { $house = mysql_query(sprintf("SELECT * FROM `owned_houses` LEFT JOIN `houses` ON (`hID` = `uhouseHouse`) LEFT JOIN `users` ON (`userid` = `uhouseOwner`) WHERE (`uhouseId` = '%u')", abs((int) $_GET['id']))); $r = mysql_fetch_assoc($house); if(!mysql_num_rows($house)) { echo 'You cannot rent a house that does not exist.'; } else if($r['uhouseOwner'] == $ir['userid']) { echo 'You own this house at this time, You cannot rent it aswell.'; } else { mysql_query(sprintf("UPDATE `owned_houses` SET `uhouseTenant` = '%d' WHERE (`uhouseId` = '%u')", $ir['userid'], abs((int) $_GET['id']))); echo 'You are now renting the '.stripslashes($r['hNAME']).' for a total of $'.number_format($r['uhouseRent']).' each night!'; } } else { $houses = mysql_query(sprintf("SELECT * FROM `owned_houses` LEFT JOIN `houses` ON (`hID` = `uhouseHouse`) LEFT JOIN `users` ON (`userid` = `uhouseOwner`) WHERE `uhouseTenant` = '0' AND `uhouseRent` > '0' ORDER BY `uhouseRent` ASC")); echo '<table width="600" class="table"> <tr> <th>House name</th> <th>Owner</th> <th>Mood value</th> <th>Cost each night</th> <th>Rental time</th> <th>Manage</th> </tr>'; while($r = mysql_fetch_assoc($houses)) { echo '<tr> <td>'.stripslashes($r['hNAME']).'</td> <td><a href="userprofile.php?id='.$r['userid'].'">'.stripslashes($r['username']).'</a></td> <td>'.number_format($r['uhouseMood']).' mood bar</td> <td>$'.number_format($r['uhouseRent']).'</td> <td>'.number_format($r['uhouseRTime']).' nights</td> <td><a href="houses.php?page=rentals&id='.$r['uhouseId'].'">Rent house</a></td> </tr>'; } print '</table>'; } } function rent_house() { global $ir; $fetch = mysql_query(sprintf("SELECT * FROM `owned_houses` LEFT JOIN `houses` ON (`hID` = `uhouseHouse`) LEFT JOIN `users` ON (`userid` = `uhouseOwner`) WHERE (`uhouseOwner` = '%u') AND (`uhouseId` = '%u')", $ir['userid'], abs((int) $_GET['id']))); if(!isset($_GET['id'])) { echo 'You did not select a house to rent out to members.'; } else if(!mysql_num_rows($fetch)) { echo 'You cannot attempt to rent out a non-existant house.'; } else { $r = mysql_fetch_assoc($fetch); if($r['uhouseOwner'] != $ir['userid']) { echo 'You do not own this house, so don\'t attempt to rent it out to people.'; } else if($r['uhouseTenant']) { echo 'You cannot rent out a house while it is being rented to another member.'; } else { if(isset($_POST['time']) AND isset($_POST['cost'])) { mysql_query(sprintf("UPDATE `owned_houses` SET `uhouseRent` = '%d', `uhouseRTime` = '%d' WHERE (`uhouseId` = '%u')", abs((int) $_POST['cost']), abs((int) $_POST['time']), abs((int) $_GET['id']))); echo 'You have added the '.stripslashes($r['hNAME']).' the the rental market at a cost of $'.number_format($_POST['cost']).' per night.'; } else { echo '<form action="houses.php?page=rent&id='.$_GET['id'].'" method="post"> <table width="600"> <tr> <td><b>Amount of nights:</b></td> <td><input type="text" name="time" value="30" /></td> </tr> <tr> <td><b>Cost per nights:</b></td> <td><input type="text" name="cost" value="250" /></td> </tr> <tr> <td colspan="2" align="center"><input type="submit" value="Submit rental" /></td> </tr> </table> </form>'; } } } } function upgrade_house() { global $ir; if(!isset($_POST['id'])) { if(isset($_GET['id'])) { echo '<form action="houses.php?page=upgrade&id='.$_GET['id'].'" method="post" name="upgrades"> <table class="table" width="600"> <tr> <th width="45%">Upgrade name</th> <th width="25%">Mood gain</th> <th width="25%">Cost</th> <th width="5%"></th> </tr>'; $fetch = mysql_query("SELECT * FROM `house_upgrades` ORDER BY `upgradeMood` ASC"); while ($r = mysql_fetch_assoc($fetch)) { echo '<tr> <td>'.stripslashes($r['upgradeName']).'</td> <td>'.number_format($r['upgradeMood']).' mood</td> <td>$'.number_format($r['upgradeCost']).'</td> <td><input type="radio" name="id" value="'.$r['upgradeId'].'" onClick="document.upgrades.submit();" /></td> </tr>'; } echo '</table>'; } else { echo 'You did not select a house to add upgrades to.'; } } else { $upgrade = mysql_query(sprintf("SELECT * FROM `house_upgrades` WHERE `upgradeId` = '%u'", abs((int) $_POST['id']))); if(!mysql_num_rows($upgrade)) { echo 'This upgrade does not exist at this time, if this problem continues report it to staff.'; } else if(!isset($_GET['id'])) { echo 'You did not select a house to add upgrades to.'; } else { $house = mysql_query(sprintf("SELECT * FROM `owned_houses` LEFT JOIN `houses` ON (`hID` = `uhouseHouse`) LEFT JOIN `users` ON (`userid` = `uhouseOwner`) WHERE (`uhouseId` = '%u')", abs((int) $_GET['id']))); $h = mysql_fetch_assoc($house); $r = mysql_fetch_array($upgrade); if(!mysql_num_rows($house)) { echo 'You cannot add upgrades to a non-existant house.'; } else if($h['uhouseOwner'] != $ir['userid']) { echo 'You are not permitted to add upgrades to this house.'; } else if($ir['money'] < $r['upgradeCost']) { echo 'You do not have enough cash to purchase this upgrade right now.'; } else { $check = mysql_query(sprintf("SELECT * FROM `owned_upgrades` WHERE (`ownupHouse` = '%u') AND (`ownupUpgrade` = '%d')", abs((int) $_GET['id']), abs((int) $_POST['id']))); if(mysql_num_rows($check)) { echo 'This house has this upgrade at this time, it cannot be bought again.'; } else { mysql_query(sprintf("UPDATE `users` SET `money` = `money` - '%d' WHERE `userid` = '%u'", $r['upgradeCost'], $ir['userid'])); mysql_query(sprintf("UPDATE `owned_houses` SET `uhouseMood` = `uhouseMood` + '%d' WHERE `uhouseId` = '%u'", $r['upgradeMood'], abs((int) $_GET['id']))); mysql_query(sprintf("INSERT INTO `owned_upgrades` (`ownupId`, `ownupHouse`, `ownupUpgrade`) VALUES ('NULL','%u', '%d')", abs((int) $_GET['id']), abs((int) $_POST['id']))); echo 'You have purchased the '.stripslashes($r['upgradeName']).' for $'.number_format($r['upgradeCost']).'.'; } } } } } $h->endpage(); ?>
-
Just start from the scratch codes, then just figure out what bugs are on the code its really not that hard...
-
Help mail table dropped phpmyadmin
AnonymousUser replied to The Darkness's topic in Free Modifications
lmfao since when does a table drop fall under a 'free modification' lol yeah go ahead and just delete your database too thats free :D -
A single file arcade with 7 games pre-loaded
AnonymousUser replied to MDK666's topic in Free Modifications
Got bored was looking for an arcade to add so i figured i would share a "fixed" version... <?php include($_SERVER['DOCUMENT_ROOT'] . '/globals.php'); echo "<h3>Arcade</h3>"; $_GET['action'] = isset($_GET['action']) && is_string($_GET['action']) ? strtolower(trim($_GET['action'])) : ""; switch($_GET['action']) { case 'index':index(); break; case 'bejeweled':bejeweled(); break; case 'blackjack':blackjack(); break; case 'chess':chess(); break; case 'ewoks':ewoks(); break; case 'pacman': pacman(); break; case 'poker': poker(); break; case 'streetfighter':streetfighter(); break; default:index(); break; } function index() { global $ir; print "<center>Welcome {$ir['username']} to the arcade. All these games are for fun and they will not give any money.</center> <center><h3>Game List</h3></center>"; print "<table> <tr><td><a href='arcade.php?action=bejeweled'>Bejeweled</a></td></tr> <tr><td><a href='arcade.php?action=blackjack'>BlackJack</a></td></tr> <tr><td><a href='arcade.php?action=chess'>3D Chess</a></td></tr> <tr><td><a href='arcade.php?action=ewoks'>Ewoks</a></td></tr> <tr><td><a href='arcade.php?action=pacman'>PacMan</a></td></tr> <tr><td><a href='arcade.php?action=poker'>Poker</a></td></tr> <tr><td><a href='arcade.php?action=streetfighter'>Street Fighter II</a></td></tr> </table> <a href='explore.php'>[Go Back To The City]</a> "; } function bejeweled() { global $ir; print "<center>Welcome {$ir['username']} to Bejeweled.</center> "; print "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='499' height='365'> <param name='movie' value='http://www.freegames4all.net/swf/Bejeweled.swf'><param name='quality' value='high'> <embed src='http://www.freegames4all.net/swf/Bejeweled.swf' width=499 height=365 align='center' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed> </object>"; print " <a href='arcade.php?action=index'>[Go Back To The Arcade Home]</a>"; } function blackjack() { global $ir; print "<center>Welcome {$ir['username']} to Blackjack.</center> "; print "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='500' height='500'> <param name='movie' value='http://www.freegames4all.net/swf/20323.swf'><param name='quality' value='high'> <embed src='http://www.freegames4all.net/swf/20323.swf' width=500 height=500 align='center' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed> </object>"; print " <a href='arcade.php?action=index'>[Go Back To The Arcade Home]</a>"; } function chess() { global $ir; print "<center>Welcome {$ir['username']} to 3D Chess.</center> "; print "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='500' height='500'> <param name='movie' value='http://www.freegames4all.net/swf/21337.swf'><param name='quality' value='high'> <embed src='http://www.freegames4all.net/swf/21337.swf' width=500 height=500 align='center' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed> </object>"; print " <a href='arcade.php?action=index'>[Go Back To The Arcade Home]</a>"; } function ewoks() { global $ir; print "<center>Welcome {$ir['username']} to Ewoks.</center> "; print "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='500' height='500'> <param name='movie' value='http://www.freegames4all.net/swf/20295.swf'><param name='quality' value='high'> <embed src='http://www.freegames4all.net/swf/20295.swf' width=500 height=500 align='center' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed> </object>"; print " <a href='arcade.php?action=index'>[Go Back To The Arcade Home]</a>"; } function pacman() { global $ir; print "<center>Welcome {$ir['username']} to Pacman.</center> "; print"<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='470' height='470'> <PARAM name=quality value=high> <PARAM name='SRC' value='http://www.zemnetmedia.com/games/pacman/pacmangame.swf'> <EMBED src='http://www.zemnetmedia.com/games/pacman/pacmangame.swf' width='470' height='470' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'> </EMBED></object> [b]These are the shortcut keys: <font color=red>M</font> - Turn music On/Off <font color=red>P</font> - Pause/ Unpause the game <font color=red>Q</font> - Quit the Game <font color=red>L</font> - Low quality on/ off"; print " <a href='arcade.php?action=index'>[Go Back To The Arcade Home]</a>"; } function poker() { global $ir; print "<center>Welcome {$ir['username']} to Poker.</center> "; print "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='500' height='500'> <param name='movie' value='http://www.freegames4all.net/swf/20493.swf'><param name='quality' value='high'> <embed src='http://www.freegames4all.net/swf/20493.swf' width=500 height=500 align='center' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed> </object>"; print " <a href='arcade.php?action=index'>[Go Back To The Arcade Home]</a>"; } function streetfighter() { global $ir; print "<center>Welcome {$ir['username']} to Street Fighter II.</center> "; print "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='500' height='500'> <param name='movie' value='http://www.freegames4all.net/swf/20643.swf'><param name='quality' value='high'> <embed src='http://www.freegames4all.net/swf/20643.swf' width=500 height=500 align='center' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed> </object>"; print " <a href='arcade.php?action=index'>[Go Back To The Arcade Home]</a>"; } $h->endpage(); ?> -
show the top 10 lines... to where your getting the error
-
it's using crystals now i wanna add ability to use the item BEFORE the crystals...
-
i've got an ajax gym but i'm having troubles trying to add the ability to use an item if they got it if not then use crystals... function refill() { global $db; define('refill_cost', ($_GET['stat'] == 'energy') ? 10 : 50); $crystals = mysql_result($db->query("SELECT `crystals` FROM `users` WHERE (`userid` = ". $_SESSION['userid'] .");"), 0, 0); if($crystals < refill_cost) { echo'<font style=color:red;>You don\'t have enough crystals to refill your '. ($_GET['stat']) .'.</font>'; exit(); } $db->query("UPDATE `users` SET `crystals` = `crystals` - ". refill_cost .", `". $_GET['stat'] ."` = `max". $_GET['stat'] ."` WHERE (`userid` = ". $_SESSION['userid'] .");"); echo ucwords($_GET['stat']) .' <font style=color:green;> has been refilled.</font>'; }
-
why not just put it on mccodes.com?
-
i've got something like this... although the code is a lot different :p
-
negative... You may sign a contract that entitles you to our interest facilities.Once under contract you may invest any amount of money for a certain period of time, you will then gain interest based on that period.You may also upgrade your contract if you wish to gain additional interest. its more of a day cron... or if you choose to put it as a weekly cron you could however the contract just ALLOWS the USE of the mod. other then that it looks like its all running on time not cron
-
what functions do they have?... theres not much information on the modification... although some more options to staff panel would be better, good idea, glad to see you didnt forget to add the staff list :D
-
i wouldn't consider it to being much of an "Update"
-
an whats wrong with the other one? lol if your thinking of the sql injections that were used in the code i would just suggest getting an all new version of the code...
-
I dont see why people feel the need to post an error thats already been fixed... LOOK AT THE ENTIRE THREAD BEFORE You try posting 'bugs or errors'
-
$data = mysqli_query($mysqli, "SELECT * FROM users WHERE PlayerIDs =" . $_SESSION['ID']); $info = mysqli_fetch_array( $data ); try that...