
DELETE-ME-NOW-
Members-
Posts
152 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by DELETE-ME-NOW-
-
Ok. SO i got a new mainmenu here, but the thing is. Im having problems accualy making it more compatible with MCCodes. For examle, adding the jailcount bit at the top and all that... eg, global $db,$c,$ir, $set; $hc=$set['hospital_count']; $jc=$set['jail_count']; $ec=$ir['new_events']; $mc=$ir['new_mail']; if($ir['hospital']) When i add that to the code, im getting unexpected <... my main menu code is here: <style type="text/css"> body {font-family:Arial, Helvetica, sans-serif, Tahoma; font-size:12px;} #vertmenu { font-family: Arial, Helvetica, sans-serif, Tahoma; font-size: 100%; width: 200px; padding: 0px; margin: 0px; } #vertmenu h1 { display: block; background-color:#FF9900; font-size: 100%; padding: 3px 0 5px 3px; border: 1px solid #000000; color: #333333; margin: 0px; width:205px; } #vertmenu ul { list-style: none; margin: 0px; padding: 0px; border: none; } #vertmenu ul li { margin: 0px; padding: 0px; } #vertmenu ul li a { font-size: 100%; display: block; border-bottom: 1px dashed #C39C4E; padding: 5px 0px 2px 4px; text-decoration: none; color: #666666; width:205px; } #vertmenu ul li a:hover, #vertmenu ul li a:focus { color: #000000; background-color: #eeeeee; } </style> </head> <body> <div id="vertmenu"> <h1>Player Menu</h1> <ul> [*][url="index.php"]Home[/url] [*][url="explore.php"]Explore[/url] [*][url="citybank.php"]Bank[/url] [*][url="crimes.php"]Crimes[/url] [*][url="gym.php"]Gym[/url] [*][url="yourgang.php"]Your Gang[/url] [*][url="inventory.php"]Inventory[/url] [*][url="events.php"]Events[/url] [*][url="jail.php"]Jail[/url] [*][url="hospital.php"]Hospital[/url] [*][url="search.php"]Search[/url] [/list] </div> <div id="vertmenu"> <h1>Communication</h1> <ul> [*][url="mailbox.php"]Mailbox[/url] [*][url="forum.php"]Forum[/url] [*][url="X.php"]Chat Room[/url] [/list] </div> <div id="vertmenu"> <h1>Account Settings</h1> <ul> [*][url="preferences.php"]Preferences[/url] [*][url="notepad.php"]Notes[/url] [/list] </div> If someone could assist me sort it, then it would be great. Also, other people can use the finished code on there game too if they want too :)
-
Pretty much made my own :) No need for it now...
-
I know... ANother announcments request... I need one which has BB code, and discusion... I would be prepared to pay a small amount if someone is up for the job :p...
-
Basicly, the more drug dealers a user has recruited, the more profit he makes from collecting fron the drugdealers. Normal players get 3 collections a day, donators get 5 collections per day. To recruit drug dealers, it will cost the player a certain amount of energy. The more energy they got, the more drug dealers they can train. If users want to collect from there dd's, it will cost them 100% brave. So for example, user has 1000 drug dealers recruited. When he collects, he will recieve something between $1,000-$2,000 Seems like alot of work but it isnt really. If someone could make this, then it would be great!
-
<?php include "globals.php"; print "<h3>Gangsta Nations Newspaper</h3>"; print " <table width=90% cellspacing=1 class='table'> <tr> <td class=h><center>[url='job.php']<font color='red'>YOUR JOB</font>[/url]</td> <td class=h><center>[url='gym.php']<font color='red'>LOCAL GYM</font>[/url]</td> <td class=h><center>[url='halloffame.php']<font color='red'>HALL OF FAME</font>[/url]</td> <td class=h><center>[url='gangcentral.php']<font color='red'>LOCAL GANGS</font>[/url]</td> <td class=h><center>[url='index.php']<font color='red'>MY HOUSE</font>[/url]</td> </tr> <tr> <td class=h><center>[url='userlist.php']<font color='red'>LOCAL RESIDENTS</font>[/url]</td> <td class=h><center>[url='stats.php']<font color='red'>CITY STATS</font>[/url]</td> <td class=h><center>[url='usersonline.php']<font color='red'>PEOPLE AWAKE</font>[/url]</td> <td class=h><center>[url='gangwars.php']<font color='red'>CURRENT WARS</font>[/url]</td> <td class=h><center>[url='estate.php']<font color='red'>HOUSES FOR SALE</font>[/url]</td> </tr> <tr> <td colspan=6>"; print " <table width=90% cellspacing=1 class='table'><center><h3>Player Advertisements</h3><center> | [url='newspaper.php?action=add'][b]Buy An Advertisement ($10,000)[/b][/url]"; if($ir['user_level'] > 1) { print " | <a href=newspaper.php?action=all>[b]DELETE ALL[/b]</a>"; } $anpdata=$db->query("SELECT * FROM npaper"); $q=$db->query("SELECT user_level FROM users WHERE userid=$userid"); $r=$db->fetch_row($q); print "<marquee speed=2 direction=up onmouseover='this.stop()' onmouseout='this.start()' class='textbox'>"; while($npdata=$db->fetch_row($anpdata)) { $us=$db->query("SELECT username FROM users WHERE userid={$npdata['npADDER']}"); $us=$db->fetch_single($us); $time=date('F j',$npdata['npTIME']); print " <hr> [b]Ad By: [url='viewuser.php?u={$npdata[']<font color=red>{$us}</font> [{$npdata['npADDER']}][/url] | Added On: {$time}[/b]"; if($r['user_level'] != 1) { print " | <a href=newspaper.php?action=npID&npID={$npdata['npID']}>[b]DELETE[/b]</a>"; } print " [i]<u>{$npdata['npTITLE']}[/i]</u> [i]{$npdata['npBODY']}[/i] "; } print "<hr /></marquee> </table>"; $q=$db->query("SELECT user_level FROM users WHERE userid=$userid"); $r=$db->fetch_row($q); if($r['user_level'] != 1) { if($_GET['action'] == "all") { if($r['user_level'] != 1) { $db->query("TRUNCATE TABLE npaper"); print "Newspaper Ads All Cleared! <META HTTP-EQUIV=Refresh CONTENT='1;url=newspaper.php'>"; } } else if($_GET['action'] == "npID") { if($r['user_level'] != 1) { $db->query("DELETE FROM npaper WHERE npID={$_GET['npID']}"); print "News Paper Ad ID {$_GET['npID']} deleted! <META HTTP-EQUIV=Refresh CONTENT='1;url=newspaper.php'>"; } } } if($_GET['action'] == "add") { print "<h3>Add Advertisement ($10,000)</h3> <form action='newspaper.php?action=added' method='post'> Ad Title: <input type='text' name='npTITLE' class='textbox'> Ad Body: <textarea rows=5 cols=18 name='npBODY' class='textbox'></textarea> <input class='textbox' type='submit' value='Place Ad ($10,000)' /> </form> <font color=red>[b]WARNING:[/b] Only plain text will work Do not advertise other games Follow the rules."; } if($_GET['action'] == "added") { if($ir['money']>9999) { print "Congratulations, you bought an ad for \$10,000! "; $db->query("UPDATE users SET money=money-10000 WHERE userid=$userid"); $title=str_replace(array("\n"),array(" "),strip_tags($_POST['npTITLE'])); $body=str_replace(array("\n"),array(" "),strip_tags($_POST['npBODY'])); $q=$db->query("INSERT INTO `npaper` VALUES (NULL, '$userid', '$title', '$body', unix_timestamp())"); print "Advertisement was successfully added! <META HTTP-EQUIV=Refresh CONTENT='5;url=newspaper.php'>"; } else { print "You do not have enough money to place an advertisement. [url='newspaper.php']>Back[/url]"; } } print"</td></tr> <tr> <td td colspan=6> <center>$content</td> </tr> </table>"; $h->endpage(); ?> Remeber, im not certain that the hack was caused by here
-
lmao. I can garentee you that i didnt say that.
-
The first bit, i have no idea what you are talking about.
-
Not sure if this has anything to do with it, but a new newspapper advertisment appeared saying: Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 15 in /home2/***/public_html/class/class_db_mysql.php on line 94. That may be the problem
-
I think it may have been a mysql injection
-
My game has just been hacked, as a guy just made himself admin, and deleted all users. X( :cursing: What are the ways to stop this? And how to i stop this from happening again?
-
ok thanks for the help guys :D As i sayed, im still a noob as ive only been coding for a few months, but im improving :o
-
ahh thanks. Ill try it. Yea MWG did ^ ^. I got the code from another thread
-
Yea :/ But as globals loads on every page, that functions changes every name? Right? Sorry if im wrong XD im still a noob :(
-
hmm. well the function is working cause when i goto that file, the colours are working. But how come when i put it in globals.php, it doesnt change the colour of you name on the rest of the pages?
-
Now ive been trying staff colours, and ive been using this code in globals.php function username($user_level,$username) { $staff_colours = array( 0 => '#000', 1 => '#fff', 2 => '#CC0', 3 => '#FFC', 5 => '#006' ); $return_data = (array_key_exists($user_level, $staff_colours)) ? '<span style="color: '.$staff_colours[$user_level].';">'.$username.'</span>' : $username ; return $return_data; } echo username($ir['user_level'],$ir['username']); Ive put it in the right place in that file, but it still wont change the colour of staffs names on the site :/ So whats wrong with that code?
-
But shouldnt '$loser' make it the user ID?
-
Right. Im lost. Can someone post the full working scrpt please?
-
Hmmm. I get were your going... So i removed the second : '. $loser .' parts, but still the same error...
-
Well i changed something, the 3 lines are now: <form action="attackwon.php?ID=$loser"'. $loser .' method="post"><input type="submit" value="Mug them"> <form action="attackbeat.php?ID=$loser"'. $loser .' method="post"><input type="submit" value="Hospitalize them"> <form action="attacktake.php?ID=$loser"'. $loser .' method="post"><input type="submit" value="Leave them"> But the URL seems to be going: ...attackwon.php?ID=$loser
-
but the user id bit in the url SHOULD NOT be empty. that fact that '$loser' is there, that should make the person you are attackings ID there. Shouldnt it? Because wen im getting the cheaters get nowhere thing, the URL is http://*******.com/attackwon.php. Shouldnt that be ...won.php?ID=X? Thats where i need the help here :/
-
wait. When i click, hopitilize or something, im getting the message, cheaters get nowhere :/ Thats coming error is rooting from the attack.php script i think, but the message itself is coming from attackbeat.php ect ect...
-
wow thanks!!! lmao. The smallest clues always help lol. I newver thought to place $loser there lol. Thanks
-
Seriously. Im out of idea lol. seriously. Ive tried the obvious and they aint working :(
-
But seriously. I have looked at it over and over, and fixed the ovious. It still doesnt work!!! :(