Jump to content
MakeWebGames

Satans_Pimp

Members
  • Posts

    91
  • Joined

  • Last visited

    Never

Everything posted by Satans_Pimp

  1. Re: [v1] Updated Statistics Page sorry but this is not converted right to v2 you need to change the : mysql_num_rows====to ==$db->num_rows you alson need to take out all the ,$c from all the $db->query lines and mysql_fetch_array should be=$db->fetch_row hope this helps you  
  2. Re: [Free] Password reset code here it is for v2  
  3. Re: [v1][FREE] DONATION PACKS TO ITEMS ok here it is for v2
  4. Re: FREE Bug Tracker Mod   ok this is for v2 <?php /*************************** Bug Tracker (1.0) made by oxidati0n -- Designed to make sure your bug asking days are over, Your players can efficiently report them, for those buggy players - It has most hacks removed. Such as HTML block, Javascript and PHP! Requires PHP version 4.44 minimum for this code to work! Created by oxidati0n! ***************************/ include "globals.php"; $sd=$db->query("SELECT * FROM `bugtracker` WHERE `bt_from` = '$userid'"); if($_GET['x'] == "add" and $db->num_rows($sd) < 7) { if($_POST['urgency'] and $_POST['description']) { //Secure the webpage. My favourite :> $_POST['description']=str_replace("/n", " ", strip_tags($_POST['description'])); $time=time(); //Insert the time log. $ip=$_SERVER['REMOTE_ADDR']; //The users IP - logged. ha ha! $nf="Not Fixed"; //The text for startup $db->query("INSERT INTO `bugtracker` (`bt_id`, `bt_posted`, `bt_from`, `bt_description`, `bt_read`, `bt_replyfrom`, `bt_reply_one`, `bt_replytext`, `bt_urgency`, `bt_iplogged`) VALUES ('NULL', '$time', '$userid', '$_POST[description]', '0', '0', '$nf', 'N/A', '$_POST[urgency]', '$ip');") or die("Your report couldn't be processed at the moment, Either contact a admin or wait until tommorrow. Thanks and sorry for any inconvenience caused [url='bugtracker.php']Back[/url] "); print "Your bug report has initially been added! [url='bugtracker.php']Back[/url] "; $h->endpage(); exit(); } else { print "[b]Submit your report[/b] <font color=red>Your IP logged: ".$_SERVER['REMOTE_ADDR']."</font> Your IP is logged for our benefits and yours, To make sure that you are posting a safe and clean spaced report! Once reported, your report will be shown as hidden to any other player except you. NOTE: This is only to report bugs, If it's related to players open a player dispute. Bugs are errors/spelling mistakes, php disruption or PHP errors <form action='bugtracker.php?x=add' method='post'> Urgency: <select name='urgency'><option value='Brief'>Brief</option> <option value='Basic'>Basic</option><option value='Vital'>Vital</option></select> Description (include as much detail as possible, links will be a help aswell): <textarea name='description' cols=40 rows=11></textarea> <input type=submit value='Submit Bug Report'></form> "; $h->endpage(); exit(); } } else if($ir['user_level'] > 1 and $_GET['x'] == "remove" and $_GET['report']) { $db->query("DELETE FROM `bugtracker` WHERE `bt_id` = '$_GET[report]'"); print "Bug Report Row Removed [url='bugtracker.php']Back[/url] "; $h->endpage(); exit(); } elseif($ir['user_level'] > 1 and $_GET['x'] == "reply" and $_GET['report']) { if($_POST['text']) { //Make sure the text is ready to go, clean and safe. $text=str_replace(array("<",">","/n"),array("","",""),$_POST['text']); $db->query("UPDATE `bugtracker` SET `bt_replyfrom` = '$userid', `bt_replytext` = '$text' WHERE `bt_id` = '$_GET[report]'"); print "Bug Report Row Edited [url='bugtracker.php']Back[/url] "; $h->endpage(); exit(); } else { print "[b]Make a reply[/b] <form action='bugtracker.php?x=reply&report=$_GET[report]' method='post'> Reply: <textarea name='text' cols=40 rows=11>Your reply here...</textarea> <input type=submit value='Submit Reply!'> </form>"; $h->endpage(); exit(); } } $_GET['st'] = abs((int) $_GET['st']); $st=($_GET['st']) ? $_GET['st'] : 0; print "<center><h3>Bug Tracker</h3>"; $sd=$db->query("SELECT * FROM `bugtracker` WHERE `bt_from` = '$userid'"); if($db->num_rows($sd) < 7) { print "[url='bugtracker.php?x=add'][Add a Report][/url] "; } print "[b]You can report several bug reports[/b] "; if(!$_GET['selectBug']) { $reports=$db->num_rows($db->query("SELECT * FROM `bugtracker`")); $shown=10; //How many rows should be shown in one row $pages=(int) ($reports/$shown)+1; if($membs % $shown == 1) { $pages--; } print "Pages: "; for($i=1;$i <= $pages;$i++) { $stl=($i-1)*$shown; print "[url='bugtracker.php?st=$stl']$i[/url] "; } } if($ir["user_level"] > 1) { $man="<th>Manage</th>"; $cols=8; $db->query("UPDATE `bugtracker` SET `bt_read` = '1' WHERE `bt_read` = '0'"); } else { $cols=7; } print " <table width=90% border=1><tr><th colspan={$cols}>Viewing all reported bugs - </th></tr> <tr><th>Reported ID</th><th>From</th><th>Urgency</th><th>Status</th><th>Reply Comments</th><th>Description</th><th>Read</th>".$man."</tr>"; if(!$_GET['selectBug']) { $q=$db->query("SELECT * FROM `bugtracker` ORDER BY `bt_posted` DESC LIMIT $st,10"); } else { $q=$db->query("SELECT * FROM `bugtracker` WHERE `bt_id` = '$_GET[selectBug]' LIMIT 1;"); } if($db->num_rows($q) == 0) { print "<tr><td colspan={$cols}>There are no current reports been posted.</td></tr>"; } while($r=$db->fetch_row($q)) { if($r['bt_from'] == $userid or $ir['user_level'] >= 2) { $user_q=$db->query("SELECT * FROM `users` WHERE `userid` = '$r[bt_from]'"); $p=$db->fetch_row($user_q); if($r['bt_replyfrom'] > 0) { $user_q2=$db->query("SELECT * FROM `users` WHERE `userid` = '$r[bt_from]'"); $d=$db->fetch_row($user_q2); } $x=$r["bt_id"]; if($r['bt_read'] == 1) { $re="<font color=green>[b]Read[/b]</font>"; } else { $re="<font color=darkred>[b]No[/b]</font>"; } print "<tr><td align=center>".number_format($x)."</td><td align=center>[url='viewuser.php?u={$x}']".$p['username']."[/url] [".$p['userid']."]</td><td align=center>".$r['bt_urgency']."</td><td align=center>$r[bt_reply_one]</td><td align=center>"; if($r['bt_replyfrom'] > 0) { print "[b]".$r['bt_replytext']." [i]Replied from [url='viewuser.php?u=$d[userid]']$d[username][/url][/i]"; } else { print "You haven't been replied yet."; } print "</td><td align=center>".$r['bt_description']."</td><td align=center>".$re."</td>"; if($cols == 8) { print "<td align=center> <font color=darkred>IP Logged: [b]".$r['bt_iplogged']."[/b]</font> [url='bugtracker.php?x=remove&report={$x}']Remove[/url] [url='bugtracker.php?x=reply&report={$x}']Make Reply[/url] [url='mailbox.php?action=compose&ID={$p[']Mail User[/url] </td>"; } print "</tr>"; } else { print "<tr><td>Hidden</td><td>Hidden</td><td>Hidden</td><td>Hidden</td> <td>Hidden</td><td>Hidden</td><td>Hidden</td><td>Hidden</td></tr>"; } } print "</table></center> "; if(!$_GET['selectBug']) { print "Pages: "; for($i=1;$i <= $pages;$i++) { $stl=($i-1)*$shown; print "[url='bugtracker.php?st=$stl']$i[/url] "; } } $h->endpage(); ?>   next run the sql CREATE TABLE `bugtracker` ( `bt_id` INT( 11 ) NOT NULL auto_increment, `bt_posted` VARCHAR( 255 ) NOT NULL, `bt_from` INT( 11 ) NOT NULL, `bt_description` LONGTEXT NOT NULL, `bt_read` TINYINT( 2 ) NOT NULL, `bt_replyfrom` INT( 11 ) NOT NULL, `bt_reply_one` VARCHAR( 255 ) NOT NULL, `bt_replytext` LONGTEXT NOT NULL, `bt_urgency` VARCHAR( 255 ) NOT NULL, `bt_iplogged` VARCHAR( 255 ) NOT NULL, PRIMARY KEY (`bt_id`) ) TYPE=MYISAM ;   Thankyou, Oxidati0n.
  5. Re: [mccode] Advanced Warning System I am getting a error from Parse error: syntax error, unexpected T_STRING in /home/deadmans/public_html/test/viewuser.php on line 89 line 89 is $w=$db->query("SELECT * FROM warnings WHERE user={$r['userid']}"); any help? Thanks
  6. Re: [FREE] Bodyguard V2.0 would you shut up already ..try to do it yourself there is enough info on the fourms look at other codes and compare I bet if you tried to do it and posted it some one might help you STOP begging..damm you are annoying ..
  7. Re: [FREE] Bodyguard V2.0 So did anyone get this working?It wont protect for me? :? :?
  8. Re: [mccode] Jail break   [quote="dlion98"] I have written a simple jailbreak mod for the Jail mod that was posted here <?php include "globals.php"; if(rand(1,100) <= 50) { print "You successfully broke out of the County Jail."; $db->query("UPDATE users SET jail=0 WHERE userid=$userid",$c); } else { $jailtime=(int) rand(1,30); print "You were caught attempting to break out of the County Jail. The officers beat you for a while and added $jailtime minutes to your sentence."; $db->query("UPDATE users SET jail=jail+$jailtime WHERE userid=$userid", $c); $db->query("UPDATE users SET jailreason='Caught attempting to escape' WHERE userid=$userid", $c); } ?>   then go into your header.php file and find:   $db->query("SELECT * FROM ads ORDER BY rand() LIMIT 1",$c); if($ra=$db->fetch_row($q))   and insert this before it:   if ($ir['jail'] > 0) print ("<center><font color=blue>{$ir['username']} You are in Jail for {$ir['jail']} minutes. You gotta get better at this. <a href=jailbreak.php>Attempt escape</a></font>");   You can make it easier or more difficult to escape by changing the 50 to whatever you want in this line:   if(rand(1,100) <= 50)   The higher the number the harder it is to get out. not sure but I think this is right for v2 :?
  9. Re: [mccode] Jail break no it is not stop asking dumb questions!!!!!! :evil: :-D
  10. Re: [FREE] Bodyguard V2.0 how much fo v2
  11. Re: [FREE] Bodyguard V2.0 still cant get this to protect any one have any ideas? :?
  12. Re: [FREE] Bodyguard V2.0 I am going to give you a +1 for all the effort thanks :-D But still not working :? still does not protect :?
  13. Re: [mccode] Multiple Event Deleter trying to turn multievents.php into v2 can any one help I get :?   Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/deadmans/public_html/test3/multievents.php on line 11 0 Events were deleted! Back <?php include "globals.php"; print "<h3>Events</h3>"; if(!$_POST) { print "What are you supposed to delete? Back "; } else { $deleted=0; $db->query("SELECT * FROM events WHERE evUSER=$userid ORDER BY evTIME DESC LIMIT 10;",$c); if(mysql_num_rows($q)) { $evv="delete".$r['evID']; if($_POST[$evv]) { $event=$_POST[$evv]; if($r['evID'] == $event) { $db->query("DELETE FROM events WHERE evID=$event"); $deleted++; } } } print "$deleted Events were deleted! Back "; } $h->endpage(); ?>
  14. Re: [FREE] Bodyguard V2.0 :? yeah sounds like the same problem :?
  15. Re: [FREE] Bodyguard V2.0 ok got it all in including the <use >botton..lol but it does not seem to protect :? and yes I put in .. effect 1: on stat: protected direction: increase amount: 1 Value I get NO errors just does not protect :?any ideas? Thanks
  16. Re: [FREE] Bodyguard V2.0 is there surpose to be a <use > button in inventory :?
  17. Re: [FREE] Bodyguard V2.0 I got it on my sever with out a problem great code except there seems to be no <use item >in inventory :-D but really good job+1
  18. Re: Free Donator XFER w/ LOGS!  
  19. Re: staff applications   function app_view() { global $ir,$c,$h,$userid; print "<h3>Staff Applications</h3> <font color=red>3=Admin</br> 5=Secretary</br> 6=Assistant</br></font></br> If you find any other member positions please report it to a game owner right away!</br> <table width=80%><tr style='background:gray'><th>Applicant ID</th> <th>Position</th> <th>Application</th> <th> </th></tr>"; $q=mysql_query("SELECT * FROM staffapps ORDER BY appID DESC",$c) or die(mysql_error()); while($r=mysql_fetch_array($q)) { print "</td>\n<td>[url='viewuser.php?u={$r[']{$r['applicant']}[/url] </td><td>{$r['position']}</td><td>{$r['application']}</td><td>[url='admin.php?action=appaccept&ID={$r[']<font color=blue>Accept</font>[/url] [url='admin.php?action=appdeny&ID={$r[']<font color=red>Decline</font>[/url] </td></tr>"; } print "</table> "; } function app_accept() { global $ir,$c,$h,$userid; $_GET['ID'] = abs((int) $_GET['ID']); mysql_query("DELETE FROM staffapps WHERE appID={$_GET['ID']}",$c); mysql_query("UPDATE users SET user_level='{$_GET['staff']}' WHERE userid='{$_GET['user']}'",$c); mysql_query("INSERT INTO mail VALUES('', 0, 'System', '{$_GET['user']}', unix_timestamp(),'Your application' ,'Congrats, your application has been reviwed and you are now a staff member. Please view our rules so you do not loose this job.')",$c); print "App Accepted [url='admin.php?action=appview']> Back[/url]"; } function app_deny() { global $ir,$c,$h,$userid; $_GET['ID'] = abs((int) $_GET['ID']); mysql_query("DELETE FROM staffapps WHERE appID={$_GET['ID']}",$c); mysql_query("INSERT INTO mail VALUES('', 0, 'System', '{$_GET['user']}', unix_timestamp(),'Your application' ,'Our staff has reviewed your staff application and unfortunately we feel you are not qualified to be a staff member. Feel free to fill in another application.')",$c); print "App Denied [url='admin.php?action=appview']> Back[/url]"; }          
  20. Re: Jail break     Is this for v2?
  21. Re: [mccode] jail/hosp shoutbox Thank you it worked like a charm! :mrgreen:
  22. Re: [mccode] jail/hosp shoutbox ok got a small problem the mod works great love it but my problem is that know one can see it but staff..not sure why can any one help? thank for the free mods
  23. Re: [mccode] Multiple Event Deleter can anyone tell me why I get this Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/deadmans/public_html/test3/multievents.php:2) in /home/deadmans/public_html/test3/multievents.php on line 10 thanks
  24. Re: [mccode] jail/hosp shoutbox is this for v2? sorry I am a noob but you already new that..lol :lol: Just started to learn how to code ! Thanks
  25. Re: [mccode] Close page system why not just open up a test site.And do you business on there first Then put it on the main game?
×
×
  • Create New...