Jump to content
MakeWebGames

Karlos

Members
  • Posts

    951
  • Joined

  • Last visited

    Never

Everything posted by Karlos

  1. Re: Attempted css mod.   You should always care about security no matter what! :x The best way I have seen to get an IP: [FAQ] How Do I Retieve The Remote IP Of A User   <?php // // <string> remote_ip( ) // // Returns the IP address(s) of the remote user // function remote_ip( ) { $keys = array ( "HTTP_CLIENT_IP", "HTTP_X_FORWARDED_FOR", "HTTP_X_FORWARDED", "HTTP_FORWARDED_FOR", "HTTP_FORWARDED", "REMOTE_ADDR", ); $list = array ( true => array(), false => array(), ); foreach ($keys as $key) if (isset($_SERVER[$key]) && is_string($_SERVER[$key])) foreach (explode(",", $_SERVER[$key]) as $ip) if (is_ipv4($ip = trim($ip))) $list[is_local_ipv4($ip)][] = $ip; list($local, $remote) = array_values($list); usort($remote, "ipcmp"); usort($local, "ipcmp"); return implode(",", array_merge($remote, $local)); } // // <boolean> is_ipv4( <string> $ip ) // // Returns TRUE if the passed string is an IPv4 address // function is_ipv4( $ip ) { if (!preg_match("`^\d+(\.\d+){3}$`ims", $ip)) return false; foreach (explode(".", $ip) as $part) if ($part > 255) return false; return true; } // // <boolean> is_local_ipv4( <string> $ip ) // // Returns TRUE if the passed IPv4 address is local (see RFC 1918) // function is_local_ipv4( $ip ) { $table = array ( 167772160 => 4278190080, // (127/8) 2130706432 => 4278190080, // (10/8) 2886729728 => 4293918720, // (172.16/12) 3232235520 => 4294901760, // (196.168/16) ); $net = iptolong($ip); foreach ($table as $addr => $mask) if (($net & $mask) == $addr) return true; return false; } // // <integer> iptolong( <string> $ip ) // // Replacement for the standard ip2long( ) function // function iptolong( $ip ) { $parts = explode(".", $ip); return $parts[0] > 127 ? ((ip2long($ip) & 0x7FFFFFFF) + 0x80000000) : ip2long($ip); } // // <integer> ipcmp( <string> $a, <string> $b ) // // Like strcmp(), but for IP addresses // function ipcmp( $a, $b ) { return iptolong($a) - iptolong($b); } ?>
  2. Re: Toughest Developer Puzzle Ever I'm stuck on the Python question... :-P
  3. Re: First attempt at securing files. Not sure where you get that idea.. I was showing not to use mres() and htmlentities() togther.. and when usinh mrse() use a link idenifier.
  4. Re: First attempt at securing files.   // Function gets set fine. function clean($Str) { // Checking if Magic Quotes are on (Deprecated as of Php 5.3.0 and removed in Php 6.0.0) if (get_magic_quotes_gpc()) { // String slashes to avoid problems if Magic Quotes are on. $Str = stripslashes($Str); // Ending If. } // returning an escape string with trimmed whitespaces at the start and end. (Notice the $c for mres()? Connection Identifier.. You should use it.) return mysql_real_escape_string(trim($Str), $c); // End function. }
  5. Well I'll though to myself that I should make a decent protection mod to sell cheaply, and I though $5 is a very reasonable price. As far as I know, my mod is valid under XHTML Transitional but this will not be on other games due to the HTML mark-up on others games. Anyway, Minutes allowed are easily customised Prices are easy to change. Comes with a little help screen for users. Also comes with installion guide.   Screenshots: Protection Center Protection Help All Protection Used Failed Attack Contact me on MSN/Email if intrested: [email protected]
  6. Re: First attempt at securing files.   //Few bits.. $myDeposit = abs((int) $_POST['deposit']); $myDeposit = mysql_real_escape_string(htmlentities($myDeposit)); $sql = mysql_real_escape_string(htmlentities("UPDATE users SET bankmoney=bankmoney+$gain, money=money-$myDeposit where userid=$userid"));
  7. Re: Cash for a few Custom Mods. Msn: [email protected] I'd be happy to help.
  8. Re: Help needed will pay $20 I'll help :-) Contact me on: [email protected]
  9. Re: If you are a certain gender you can do different things than another?   if ($ir['gender'] == 'Male') { // Meh... } else if ($ir['gender'] == 'Female') { // Mehh? xD }
  10. Re: THIS OR THAT? Beyonce, for certain reasons :wink: Bum Fluff or Belly Button Fluff :lol:
  11. Re: [MC Codes V2] Advanced Player Reports 1. In my testing it does populate the field with the correct ID. 2. I don't follow.. 3. I will add that in my next version.
  12. Re: THIS OR THAT? :-o None :evil: Only Bumblebee FTW :-P Poor and Happy or Rich and Sad.
  13. Re: [MC Codes V2] Advanced Player Reports Thanks for the idea Kyle :-P Edit: Forgot to mention if wished you can add a link for viewuser.php so users don't need to remember the Id.   echo '[url="preport.php?Id=',$r['userid'],'"]Report This User[/url] ';
  14. Re: [MC Codes V2] Paged Hospital & Jail Paging Bugs.. Now Fixed. Use the codes below.   <?php include_once ('globals.php'); echo ' <div style="text-align: left; padding-left: 25px;"> <h3 style="text-decoration: underline;">Hospital</h3>'; $_GET['Start'] = isset($_GET['Start']) ? $_GET['Start'] : 0; $Users = $db->num_rows($db->query("SELECT `userid` FROM `users` WHERE `hospital` > 0")); $Pages = ceil($Users / 25); echo 'Pages: '; if ($Pages == 0) { echo 'None'; } else { for($i=1; $i<=$Pages; ++$i) { $Start = ($i-1)*25; if ($Start == $_GET['Start']) { echo '[b]',number_format($i),'[/b] '; } else { echo '[url="hospital.php?Start=',$Start,'"]',number_format($i),'[/url] '; } if($i % 25 == 0) { echo ' '; } } } echo ' <table border="1" cellpadding="3" width="95%" cellspacing="0" class="table"> <tr style="text-align: center;"> <th width="20%">Name</th> <th width="15%">Level</th> <th width="15%">Time Left?</th> <th width="50%">Reason</th> </tr>'; $Select = $db->query("SELECT `userid`, `username`, `level`, `hospital`, `hospreason` FROM `users` WHERE `hospital` > 0 ORDER BY `hospital` DESC LIMIT ".$_GET['Start'].",25"); if (!$db->num_rows($Select)) { echo '<td colspan="5" style="text-align: center;">There Are Currently No Players In Hospital.</td>'; } else { while($r = $db->fetch_row($Select)) { echo ' <tr> <td>[url="viewuser.php?u=',$r['userid'],'"]',stripslashes($r['username']),'[/url] [',number_format($r['userid']),']</td> <td>',number_format($r['level']),'</td> <td>',number_format($r['hospital']),' Minutes</td> <td>',stripslashes($r['hospreason']),'</td> </tr>'; } } echo '</table>'; echo 'Pages: '; if ($Pages == 0) { echo 'None'; } else { for($i=1; $i<=$Pages; ++$i) { $Start = ($i-1)*25; if ($Start == $_GET['Start']) { echo '[b]',number_format($i),'[/b] '; } else { echo '[url="hospital.php?Start=',$Start,'"]',number_format($i),'[/url] '; } if($i % 25 == 0) { echo ' '; } } } echo '</div>'; $h->endpage(); ?>   <?php include_once ('globals.php'); echo ' <div style="text-align: left; padding-left: 25px;"> <h3 style="text-decoration: underline;">Jail</h3>'; $_GET['Start'] = isset($_GET['Start']) ? $_GET['Start'] : 0; $Users = $db->num_rows($db->query("SELECT `userid` FROM `users` WHERE `jail` > 0")); $Pages = ceil($Users / 25); echo 'Pages: '; if ($Pages == 0) { echo 'None'; } else { for($i=1; $i<=$Pages; ++$i) { $Start = ($i-1)*25; if ($Start == $_GET['Start']) { echo '[b]',number_format($i),'[/b] '; } else { echo '[url="jail.php?Start=',$Start,'"]',number_format($i),'[/url] '; } if($i % 25 == 0) { echo ' '; } } } echo ' <table border="1" cellpadding="3" width="95%" cellspacing="0" class="table"> <tr style="text-align: center;"> <th width="20%">Name</th> <th width="15%">Level</th> <th width="15%">Time Left?</th> <th width="35%">Reason</th> <th width="15%">Actions</th> </tr>'; $Select = $db->query("SELECT `userid`, `username`, `level`, `jail`, `jail_reason` FROM `users` WHERE `jail` > 0 ORDER BY `jail` DESC LIMIT ".$_GET['Start'].",25"); if (!$db->num_rows($Select)) { echo '<td colspan="5" style="text-align: center;">There Are Currently No Jailed Players.</td>'; } else { while($r = $db->fetch_row($Select)) { echo ' <tr> <td>[url="viewuser.php?u=',$r['userid'],'"]',stripslashes($r['username']),'[/url] [',number_format($r['userid']),']</td> <td>',number_format($r['level']),'</td> <td>',number_format($r['jail']),' Minutes</td> <td>',stripslashes($r['jail_reason']),'</td> <td>[[url="jailbust.php?ID=',$r['userid'],'"]Bust[/url]][[url="jailbail.php?ID=',$r['userid'],'"]Bail[/url]]</td> </tr>'; } } echo '</table>'; echo 'Pages: '; if ($Pages == 0) { echo 'None'; } else { for($i=1; $i<=$Pages; ++$i) { $Start = ($i-1)*25; if ($Start == $_GET['Start']) { echo '[b]',number_format($i),'[/b] '; } else { echo '[url="jail.php?Start=',$Start,'"]',number_format($i),'[/url] '; } if($i % 25 == 0) { echo ' '; } } } echo '</div>'; $h->endpage(); ?>
  15. Re: need a new mysql.php You want the correct script? Okay   <?php $c = mysql_connect('localhost', 'username', 'password'); mysql_select_db('database', $c); $mykey = 'som random key here'; ?>   Notice it's the same basically? Because your filling you details out wrong! :wink:
  16. Well I saw on some games the hosp list seems like it never ends... So I though I'd make them neater and use a 'pagination' method.   <?php include_once ('globals.php'); echo ' <div style="text-align: left; padding-left: 25px;"> <h3 style="text-decoration: underline;">Hospital</h3>'; $_GET['Start'] = isset($_GET['Start']) ? $_GET['Start'] : 0; $Users = $db->num_rows($db->query("SELECT `userid` FROM `users` WHERE `hospital` > 0")); $Pages = ceil($Users / 10); echo 'Pages: '; if ($Pages == 0) { echo 'None'; } else { for($i=1; $i<=$Pages; ++$i) { $Start = ($i-1)*10; if ($Start == $_GET['Start']) { echo '[b]',number_format($i),'[/b] '; } else { echo '[url="hospital.php?Start=',$Start,'"]',number_format($i),'[/url] '; } if($i % 25 == 0) { echo ' '; } } } echo ' <table border="1" cellpadding="3" width="95%" cellspacing="0" class="table"> <tr style="text-align: center;"> <th width="20%">Name</th> <th width="15%">Level</th> <th width="15%">Time Left?</th> <th width="50%">Reason</th> </tr>'; $Select = $db->query("SELECT `userid`, `username`, `level`, `hospital`, `hospreason` FROM `users` WHERE `hospital` > 0 ORDER BY `hospital` DESC LIMIT ".$_GET['Start'].",25"); if (!$db->num_rows($Select)) { echo '<td colspan="5" style="text-align: center;">There Are Currently No Players In Hospital.</td>'; } else { while($r = $db->fetch_row($Select)) { echo ' <tr> <td>[url="viewuser.php?u=',$r['userid'],'"]',stripslashes($r['username']),'[/url] [',number_format($r['userid']),']</td> <td>',number_format($r['level']),'</td> <td>',number_format($r['hospital']),' Minutes</td> <td>',stripslashes($r['hospreason']),'</td> </tr>'; } } echo '</table>'; echo 'Pages: '; if ($Pages == 0) { echo 'None'; } else { for($i=1; $i<=$Pages; ++$i) { $Start = ($i-1)*10; if ($Start == $_GET['Start']) { echo '[b]',number_format($i),'[/b] '; } else { echo '[url="hospital.php?Start=',$Start,'"]',number_format($i),'[/url] '; } if($i % 25 == 0) { echo ' '; } } } echo '</div>'; $h->endpage(); ?>   <?php include_once ('globals.php'); echo ' <div style="text-align: left; padding-left: 25px;"> <h3 style="text-decoration: underline;">Jail</h3>'; $_GET['Start'] = isset($_GET['Start']) ? $_GET['Start'] : 0; $Users = $db->num_rows($db->query("SELECT `userid` FROM `users` WHERE `jail` > 0")); $Pages = ceil($Users / 10); echo 'Pages: '; if ($Pages == 0) { echo 'None'; } else { for($i=1; $i<=$Pages; ++$i) { $Start = ($i-1)*10; if ($Start == $_GET['Start']) { echo '[b]',number_format($i),'[/b] '; } else { echo '[url="jail.php?Start=',$Start,'"]',number_format($i),'[/url] '; } if($i % 25 == 0) { echo ' '; } } } echo ' <table border="1" cellpadding="3" width="95%" cellspacing="0" class="table"> <tr style="text-align: center;"> <th width="20%">Name</th> <th width="15%">Level</th> <th width="15%">Time Left?</th> <th width="35%">Reason</th> <th width="15%">Actions</th> </tr>'; $Select = $db->query("SELECT `userid`, `username`, `level`, `jail`, `jail_reason` FROM `users` WHERE `jail` > 0 ORDER BY `jail` DESC LIMIT ".$_GET['Start'].",25"); if (!$db->num_rows($Select)) { echo '<td colspan="5" style="text-align: center;">There Are Currently No Jailed Players.</td>'; } else { while($r = $db->fetch_row($Select)) { echo ' <tr> <td>[url="viewuser.php?u=',$r['userid'],'"]',stripslashes($r['username']),'[/url] [',number_format($r['userid']),']</td> <td>',number_format($r['level']),'</td> <td>',number_format($r['jail']),' Minutes</td> <td>',stripslashes($r['jail_reason']),'</td> <td>[[url="jailbust.php?ID=',$r['userid'],'"]Bust[/url]][[url="jailbail.php?ID=',$r['userid'],'"]Bail[/url]]</td> </tr>'; } } echo '</table>'; echo 'Pages: '; if ($Pages == 0) { echo 'None'; } else { for($i=1; $i<=$Pages; ++$i) { $Start = ($i-1)*10; if ($Start == $_GET['Start']) { echo '[b]',number_format($i),'[/b] '; } else { echo '[url="jail.php?Start=',$Start,'"]',number_format($i),'[/url] '; } if($i % 25 == 0) { echo ' '; } } } echo '</div>'; $h->endpage(); ?>
  17. Re: [MC Codes V2] Advanced Player Reports Nope. If you noticed I provided in echo with single quotes. :wink:
  18. Re: [MC Codes V2] Advanced Player Reports Thanks...   Edited: Added 'Pagination' On To staff_reports.php
  19. Well I kinda got bored and I thought the player reports could do with a bit of upgrading... The SQL Table CREATE TABLE IF NOT EXISTS `mod_player_reports` ( `Id` INT(7) UNSIGNED NOT NULL AUTO_INCREMENT, `Offender` INT(7) UNSIGNED NOT NULL DEFAULT '0', `Reporter` INT(7) UNSIGNED NOT NULL DEFAULT '0', `Time` INT(10) UNSIGNED NOT NULL DEFAULT '0', `OffenseType` VARCHAR(25) CHARACTER SET latin1 NOT NULL DEFAULT 'Other', `Report` TEXT, `Status` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1, PRIMARY KEY (`Id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;   Replace preport.php with the following: <?php include_once ('globals.php'); if (!function_exists('Error')) { function Error($Message) { echo '<span style="color: #FF0000;">Error! [i]',stripslashes($Message),'[/i]</span>'; exit(headers::endpage()); } } $_GET['Id'] = isset($_GET['Id']) && ctype_digit($_GET['Id']) ? $_GET['Id'] : 0; $Options = array('Account Sharing', 'Discrimination', 'Exploit (Bug) Abuse', 'Forum Violation', 'Gang Theft', 'Hacking', 'Middleman', 'Multiple Accounts', 'Profile Violation', 'Spamming', 'Staff Violations', 'Other'); echo '<div style="text-align: left; padding-left: 25px;"> <h3 style="text-decoration: underline;">Player Report Center</h3>'; if (isset($_POST['Id'], $_POST['Offense'], $_POST['Report'])) { $Max = $db->query("SELECT `userid` FROM `users` WHERE `userid`='".$_POST['Id']."' LIMIT 1"); if (!ctype_digit($_POST['Id']) || $db->num_rows($Max) == 0) { Error('Invalid Id.'); } else if (!in_array($_POST['Offense'], $Options)) { Error('Invalid Offense.'); } else if (strlen($_POST['Report']) < 30 || strlen($_POST['Report'] > 2000)) { Error('Your Report Must Be Between 30 & 2000 Characters.'); } else { $Report = $db->escape($_POST['Report']); $db->query("INSERT INTO `mod_player_reports` (`Offender`, `Reporter`, `Time`, `OffenseType`, `Report`, `Status`) VALUES (".$_POST['Id'].", ".$ir['userid'].", UNIX_TIMESTAMP(), '".$_POST['Offense']."', '".$Report."', 1)"); echo '<span style="color: green;">Your Report Has Been Added!</span> > [url="index.php"]Go Home[/url]'; } } else { echo ' <form method="post"> <table border="1" cellpadding="3" width="75%" cellspacing="0" class="table"> <tr> <th style="text-align: center;">ID:</th> <td><input type="text" name="Id" value="',$_GET['Id'],'" /></td> </tr> <tr> <th style="text-align: center;">Type Of Offense:</th> <td> <select name="Offense">'; foreach($Options as $Value) { echo '<option value="',$Value,'">',$Value,'</option>'; } echo ' </select> </td> </tr> <tr> <th style="text-align: center;">Your Report:</th> <td><textarea name="Report" rows="5" cols="75"></textarea></td> </tr> <tr> <th colspan="2" style="text-align: center;"><input type="submit" value="Submit Report" /></th> </tr> </table> </form>'; } echo '</div>'; $h->endpage(); ?>   Create a new file called staff_reports.php and put the following into it: <?php include_once ('sglobals.php'); if (!function_exists('Error')) { function Error($Message) { echo '<span style="color: #FF0000;">Error! [i]',stripslashes($Message),'[/i]</span>'; exit(headers::endpage()); } } if (!function_exists('Access')) { function Access($Array) { global $ir; if (!in_array($ir['user_level'], array($Array))) { Error('Unauthorised Access.'); } } } echo '<div style="text-align: left; padding-left: 25px;"> <h3 style="text-decoration: underline;">Player Report Processing Center</h3> ',$ir['userid'] == 1 ? '<h4>[url="staff_reports.php?act=Truncate"]Truncate Player Reports[/url]</h4>' : NULL; $_GET['act'] = isset($_GET['act']) && ctype_alpha($_GET['act']) ? $_GET['act'] : FALSE; switch($_GET['act']) { case 'Edit': Edit(); break; case 'Truncate': Truncate(); break; default: Index(); break; } function Index() { Access(2, 3, 5); global $db; $_GET['Start'] = isset($_GET['Start']) ? $_GET['Start'] : 0; $Reports = $db->num_rows($db->query("SELECT `Id` FROM `mod_player_reports`")); $Pages = ceil($Reports / 10); echo 'Pages: '; for($i=1; $i<=$Pages; ++$i) { $Start = ($i-1)*10; if ($Start == $_GET['Start']) { echo '[b]',number_format($i),'[/b] '; } else { echo '[url="staff_reports.php?act=Index&Start=',$Start,'"]',number_format($i),'[/url] '; } if($i % 25 == 0) { echo ' '; } } echo ' <table border="1" cellpadding="3" width="95%" cellspacing="0" class="table"> <tr style="text-align: center;"> <th width="8%">Report #</th> <th width="10%">Offender</th> <th width="10%">Reporter</th> <th width="50%">Report</th> <th width="10%">Date & Time</th> <th width="12%">Status</th> <th width="5%">Options</th> </tr>'; $Select = $db->query("SELECT `Id`, `Offender`, `Reporter`, `Time`, `OffenseType`, `Report`, `Status` FROM `mod_player_reports` ORDER BY `Id` ASC LIMIT ".$_GET['Start'].",10"); if ($db->num_rows($Select)) { while($Re = $db->fetch_row($Select)) { $StatColourArray = array(1 => '#FF0000', 2 => 'orange', 3 => 'green'); $StatColour = $StatColourArray[$Re['Status']]; $StatNameArray = array(1 => 'Not Dealt With', 2 => 'Being Dealt With', 3 => 'Dealt With'); $Status = $StatNameArray[$Re['Status']]; $Of = $db->fetch_row($db->query("SELECT `username` FROM `users` WHERE `userid`='".$Re['Offender']."'")); $Mp = $db->fetch_row($db->query("SELECT `username` FROM `users` WHERE `userid`='".$Re['Reporter']."'")); echo ' <tr> <td style="text-align: center;">[b]',number_format($Re['Id']),'[/b]</td> <td>',number_format($Re['Offender']),' (',stripslashes($Of['username']),')</td> <td>',number_format($Re['Reporter']),' (',stripslashes($Mp['username']),')</td> <td>',htmlspecialchars(stripslashes($Re['Report']), ENT_QUOTES, 'UTF-8'),'</td> <td>',date('d/m/Y\<\b\r\ >H:i', $Re['Time']),'</td> <td><span style="color: ',$StatColour,';">',$Status,'</span></td> <td>[url="staff_reports.php?act=Edit&Id=',$Re['Id'],'"]Edit[/url]</td> </tr>'; } } else { echo '<td colspan="7" style="text-align: center;">There Are Currently No Reports!</td>'; } echo '</table>'; echo 'Pages: '; for($i=1; $i<=$Pages; ++$i) { $Start = ($i-1)*10; if ($Start == $_GET['Start']) { echo '[b]',number_format($i),'[/b] '; } else { echo '[url="staff_reports.php?act=Index&Start=',$Start,'"]',number_format($i),'[/url] '; } if($i % 25 == 0) { echo ' '; } } } function Edit() { global $db; Access(2, 3, 5); $_GET['Id'] = isset($_GET['Id']) && ctype_digit($_GET['Id']) ? $_GET['Id'] : 0; if (isset($_POST['Id'], $_POST['Status'])) { $Max = $db->query("SELECT `Id` FROM `mod_player_reports` WHERE `Id`='".$_POST['Id']."' LIMIT 1"); if (!ctype_digit($_POST['Id']) || $db->num_rows($Max) == 0) { Error('Invalid Id.'); } else if (!in_array($_POST['Status'], array(1, 2, 3))) { Error('Invalid Status.'); } else { $db->query("UPDATE `mod_player_reports` SET `Status`='".$_POST['Status']."' WHERE `Id`='".$_POST['Id']."'"); stafflog_add('Edited Player Report '.$_POST['Id'].' Status'); echo '<span style="color: green;">The Report Has Been Edited!</span> > [url="staff_reports.php"]Go Back[/url]'; } } else { $StatNameArray = array(1 => 'Not Dealt With', 2 => 'Being Dealt With', 3 => 'Dealt With'); echo ' <form action="staff_reports.php?act=Edit" method="post"> Report ID: <input type="text" name="Id" value="',$_GET['Id'],'" /> New Status: <select name="Status" type="dropdown">'; $i = 0; foreach($StatNameArray as $Values) { ++$i; echo '<option value="',$i,'">',$Values,'</option>'; } echo '</select> <input type="submit" value="Submit" /> </form>'; } } function Truncate() { global $db; Access(2); if (isset($_POST['Truncate'])) { if ($_POST['Truncate'] === 'No') { exit(header('Location: staff_reports.php')); } else if ($_POST['Truncate'] === 'Yes') { $db->query("TRUNCATE TABLE `mod_player_reports`"); stafflog_add('Truncated The Player Reports'); echo '<span style="color: green;">The Player Reports Has Been Emptied!</span> > [url="staff_reports.php"]Go Back[/url]'; } else { Error('Invalid Answer.'); } } else { echo ' <h3>Do You Wish To Delete Every Player Report You Have?</h3> <form action="staff_reports.php?act=Truncate" method="post"> Yes <input type="radio" name="Truncate" value="Yes" /> No <input type="radio" name="Truncate" value="No" /> <input type="submit" value="Submit Option" /> </form>'; } } echo '</div>'; $h->endpage(); ?>   Link for the file... echo '> Player Reports '; :P
  20. Re: Thank a CE mccode Mod Developer Day Thanks you two lump heads :-P I would of never been able to even become who I am know without each of you helping me. Anthony, Kyle, Zero & Mike.. Thanks :wink:
  21. Re: SMALL security mod   /* Adapted From Ishmell (Untested) Add-ons: Admin Notifications, Federal Jail Record, Easier To Add More ID's */ // Add Staff ID's Here if (!in_array($ir['userid'], array(1, 5, 10, 23, 33, 44, 55))) { if ($ir['user_level'] >= 2) { $db->query(sprintf("UPDATE `users` SET `user_level`='1' WHERE `userid`='%u'", $userid)); $db->query(sprintf("UPDATE `users` SET `fedjail`='1' WHERE `userid`='%u'", $userid)); $db->query(sprintf("INSERT INTO `fedjail` (NULL, '%u', 1, 1, 'Attempted Hack')", $ir['userid'])); event_add(1, '[url="viewuser.php?u='.$ir['userid'].'"]'.$db->escape($ir['username']).'[/url] Attempted To Become Staff.', $c); echo '<span style="color: #FF0000;">Error Unauthorised Staff!</span>'; die($h->endpage()); } }
  22. Re: [mccode v2] Annoucements Upgrade! Hmm... Very good ideas... *Karlos gets to coding.
  23. Re: [mccode v2] Annoucements Upgrade! For what part of the mod exactly?
  24. Re: [mccode v2] Annoucements Upgrade! Meh... It's called rivalry Mike.. :-P Oh well, I provided a quick recode of it. :lol: I need idea's to make this more advanced. :-( Any one got any? :wink:
  25. Re: [MC Codes V2] Captcha ($1) Copies Left: 7
×
×
  • Create New...