Jump to content
MakeWebGames

The Phantom

Members
  • Posts

    57
  • Joined

  • Last visited

Everything posted by The Phantom

  1. Also I was wondering whats better v2 or redux? I might buy one as V1 not that good, not that many mods, I have seen districtwars.net its great for a v1 better then some V2 I'll say.
  2. N thanks, well I own a v1 i wonder why the staff list didnt work it works great now.
  3. I don't own a game, I told someone I would help them, By making a new staff position :P So I did, cause there old staff position was rubbish. So yeah. they sent me a copy of staff list and I edit it.
  4. Wow this mod look's great.
  5. Edit user still dont work cyberbank and bank.
  6. Hi everyone! Okay guys, I was wondering if any of you could teach me the basics of coding please? It would be great if someone teaches me, I will really appreciate it. Please some people don't be mean to me, I see other post were people are mean, and I don't like it when people are mean upsets my feeling. Thanks. ~The Phantom~
  7. Its a new staff position. User level 4 so Its IOC OP or what eva its called. I called it assistant. and assistant moderator   Call this Opmenu.php   <?php ///////Mod Created By The Phantom//////// require_once('globals.php'); if (!in_array($ir['user_level'], array(2, 3, 4, 5))) { echo 'You cannot access this area.<br /> > <a href="staff.php">Go Back</a>'; die($h->endpage()); } //This contains log stuffs if (!isset($_GET['action'])) { $_GET['action'] = ''; } switch ($_GET['action']) { case 'atklogs': view_attack_logs(); break; case 'itmlogs': view_itm_logs(); break; case 'cashlogs': view_cash_logs(); break; case 'cryslogs': view_crys_logs(); break; case 'banklogs': view_bank_logs(); break; default: echo "Error: This script requires an action."; break; } function view_attack_logs() { global $db, $ir, $c, $h, $userid; echo " <h3>Attack Logs</h3> <hr /> "; if (!isset($_GET['st'])) { $_GET['st'] = 0; } $st = abs(intval($_GET['st'])); $app = 100; $q = $db->query("SELECT COUNT(`attacker`) FROM `attacklogs`"); $attacks = $db->fetch_single($q); $db->free_result($q); if ($attacks == 0) { echo 'There have been no attacks yet.'; return; } $pages = ceil($attacks / $app); echo 'Pages: '; for ($i = 1; $i <= $pages; $i++) { $s = ($i - 1) * $app; echo ($s == $st) ? '<b>' . $i . '</b> ' : '<a href="Opmenu.php?action=atklogs&st=' . $s . '">' . $i . '</a> '; echo ($i % 25 == 0) ? '<br />' : ''; } echo " <br /> <table width='100%' cellspacing='1' cellpadding='1' class='table'> <tr> <th>Time</th> <th>Who Attacked</th> <th>Who Was Attacked</th> <th>Who Won</th> <th>What Happened</th> </tr> "; $q = $db->query( "SELECT `stole`, `result`, `attacked`, `attacker`, `time`, `u1`.`username` AS `un_attacker`, `u2`.`username` AS `un_attacked` FROM `attacklogs` AS `a` INNER JOIN `users` AS `u1` ON `a`.`attacker` = `u1`.`userid` INNER JOIN `users` AS `u2` ON `a`.`attacked` = `u2`.`userid` ORDER BY `a`.`time` DESC LIMIT $st, $app"); while ($r = $db->fetch_row($q)) { echo " <tr> <td>" . date('F j, Y, g:i:s a', $r['time']) . "</td> <td>{$r['un_attacker']} [{$r['attacker']}]</td> <td>{$r['un_attacked']} [{$r['attacked']}]</td> "; if ($r['result'] == "won") { echo " <td>{$r['un_attacker']}</td> <td> "; if ($r['stole'] == -1) { echo "{$r['un_attacker']} hospitalized {$r['un_attacked']}"; } else if ($r['stole'] == -2) { echo "{$r['un_attacker']} attacked {$r['un_attacked']} and left them"; } else { echo "{$r['un_attacker']} mugged " . money_formatter($r['stole']) . " from {$r['un_attacked']}"; } echo '</td>'; } else { echo " <td>{$r['un_attacked']}</td> <td>Nothing</td> "; } echo '</tr>'; } $db->free_result($q); echo " </table> <br /> Pages: "; for ($i = 1; $i <= $pages; $i++) { $s = ($i - 1) * $app; echo ($s == $st) ? '<b>' . $i . '</b> ' : '<a href="Opmenu.php?action=atklogs&st=' . $s . '">' . $i . '</a> '; echo ($i % 25 == 0) ? '<br />' : ''; } $mypage = floor($_GET['st'] / 100) + 1; stafflog_add("Looked at the attack logs (Page $mypage)"); } function view_itm_logs() { global $db, $ir, $c, $h, $userid; echo "<h3>Item Xfer Logs</h3><hr />"; if (!isset($_GET['st'])) { $_GET['st'] = 0; } $st = abs(intval($_GET['st'])); $app = 100; $q = $db->query("SELECT COUNT(`ixFROM`) FROM `itemxferlogs`"); $attacks = $db->fetch_single($q); $db->free_result($q); if ($attacks == 0) { echo 'There have been no item transfers yet.'; return; } $pages = ceil($attacks / $app); echo 'Pages: '; for ($i = 1; $i <= $pages; $i++) { $s = ($i - 1) * $app; echo ($s == $st) ? '<b>' . $i . '</b> ' : '<a href="Opmenu.php?action=atklogs&st=' . $s . '">' . $i . '</a> '; echo ($i % 25 == 0) ? '<br />' : ''; } echo " <br /> <table width='100%' cellspacing='1' cellpadding='1' class='table'> <tr> <th>Time</th> <th>Who Sent</th> <th>Who Received</th> <th>Sender's IP</th> <th>Receiver's IP</th> <th>Same IP?</th> <th>Item</th> </tr> "; $q = $db->query( "SELECT `ixTO`, `ixFROM`, `ixQTY`, `ixTIME`, `ixTOIP`, `ixFROMIP`, `u1`.`username` AS `sender`, `u2`.`username` AS `sent`, `i`.`itmname` AS `item` FROM `itemxferlogs` AS `ix` INNER JOIN `users` AS `u1` ON `ix`.`ixFROM` = `u1`.`userid` INNER JOIN `users` AS `u2` ON `ix`.`ixTO` = `u2`.`userid` INNER JOIN `items` AS `i` ON `i`.`itmid` = `ix`.`ixITEM` ORDER BY `ix`.`ixTIME` DESC LIMIT $st, $app"); while ($r = $db->fetch_row($q)) { $same = ($r['ixFROMIP'] == $r['ixTOIP']) ? '<span style="color: red;">Yes</span>' : '<span style="color: green;">No</span>'; echo " <tr> <td>" . date('F j Y, g:i:s a', $r['ixTIME']) . "</td> <td>{$r['sender']} [{$r['ixFROM']}]</td> <td>{$r['sent']} [{$r['ixTO']}]</td> <td>{$r['ixFROMIP']}</td> <td>{$r['ixTOIP']}</td> <td>$same</td> <td>{$r['item']} x{$r['ixQTY']}</td> </tr> "; } $db->free_result($q); echo " </table> <br /> Pages: "; for ($i = 1; $i <= $pages; $i++) { $s = ($i - 1) * $app; echo ($s == $st) ? '<b>' . $i . '</b> ' : '<a href="Opmenu.php?action=itmlogs&st=' . $s . '">' . $i . '</a> '; echo ($i % 25 == 0) ? '<br />' : ''; } $mypage = floor($_GET['st'] / 100) + 1; stafflog_add("Looked at the Item Xfer Logs (Page $mypage)"); } function view_cash_logs() { global $db, $ir, $c, $h, $userid; echo "<h3>Cash Xfer Logs</h3>"; if (!isset($_GET['st'])) { $_GET['st'] = 0; } $st = abs(intval($_GET['st'])); $app = 100; $q = $db->query("SELECT COUNT(`cxFROM`) FROM `cashxferlogs`"); $attacks = $db->fetch_single($q); $db->free_result($q); if ($attacks == 0) { echo 'There have been no cash transfers yet.'; return; } $pages = ceil($attacks / $app); echo 'Pages: '; for ($i = 1; $i <= $pages; $i++) { $s = ($i - 1) * $app; echo ($s == $st) ? '<b>' . $i . '</b> ' : '<a href="Opmenu.php?action=cashlogs&st=' . $s . '">' . $i . '</a> '; echo ($i % 25 == 0) ? '<br />' : ''; } echo " <br /> <table width='100%' cellspacing='1' cellpadding='1' class='table'> <tr> <th>ID</th> <th>Time</th> <th>User From</th> <th>User To</th> <th>Multi?</th> <th>Amount</th> <th> </th> </tr> "; $q = $db->query( "SELECT `cxAMOUNT`, `cxTO`, `cxFROM`, `cxTIME`, `cxID`, `cxTOIP`, `cxFROMIP`, `u1`.`username` AS `sender`, `u2`.`username` AS `sent` FROM `cashxferlogs` AS `cx` INNER JOIN `users` AS `u1` ON `cx`.`cxFROM` = `u1`.`userid` INNER JOIN `users` AS `u2` ON `cx`.`cxTO` = `u2`.`userid` ORDER BY `cx`.`cxTIME` DESC LIMIT $st, $app"); while ($r = $db->fetch_row($q)) { $m = ($r['cxFROMIP'] == $r['cxTOIP']) ? '<span style="color: red; font-weight: bold;">MULTI</span>' : ''; echo " <tr> <td>{$r['cxID']}</td> <td>" . date("F j, Y, g:i:s a", $r['cxTIME']) . "</td> <td> <a href='viewuser.php?u={$r['cxFROM']}'>{$r['sender']}</a> [{$r['cxFROM']}] (IP: {$r['cxFROMIP']}) </td> <td> <a href='viewuser.php?u={$r['cxTO']}'>{$r['sent']}</a> [{$r['cxTO']}] (IP: {$r['cxTOIP']}) </td> <td>$m</td> <td> " . money_formatter($r['cxAMOUNT']) . "</td> <td> [<a href='preport.php'>Report Player</a>] </td> </tr> "; } $db->free_result($q); echo " </table> <br /> Pages: "; for ($i = 1; $i <= $pages; $i++) { $s = ($i - 1) * $app; echo ($s == $st) ? '<b>' . $i . '</b> ' : '<a href="Opmenu.php?action=atklogs&st=' . $s . '">' . $i . '</a> '; echo ($i % 25 == 0) ? '<br />' : ''; } $mypage = floor($_GET['st'] / 100) + 1; stafflog_add("Viewed the Cash Xfer Logs (Page $mypage)"); } function view_bank_logs() { global $db, $ir, $c, $h, $userid; echo "<h3>Bank Xfer Logs</h3>"; if (!isset($_GET['st'])) { $_GET['st'] = 0; } $st = abs(intval($_GET['st'])); $app = 100; $q = $db->query("SELECT COUNT(`cxFROM`) FROM `bankxferlogs`"); $attacks = $db->fetch_single($q); $db->free_result($q); if ($attacks == 0) { echo 'There have been no bank transfers yet.'; return; } $pages = ceil($attacks / $app); echo 'Pages: '; for ($i = 1; $i <= $pages; $i++) { $s = ($i - 1) * $app; echo ($s == $st) ? '<b>' . $i . '</b> ' : '<a href="Opmenu.php?action=banklogs&st=' . $s . '">' . $i . '</a> '; echo ($i % 25 == 0) ? '<br />' : ''; } echo " <table width='100%' cellspacing='1' cellpadding='1' class='table'> <tr> <th>ID</th> <th>Time</th> <th>User From</th> <th>User To</th> <th>Multi?</th> <th>Amount</th> <th>Bank Type</th> <th> </th> </tr> "; $q = $db->query( "SELECT `cxAMOUNT`, `cxTO`, `cxFROM`, `cxTIME`, `cxID`, `cxTOIP`, `cxFROMIP`, `cxBANK`, `u1`.`username` AS `sender`, `u2`.`username` AS `sent` FROM `bankxferlogs` AS `cx` INNER JOIN `users` AS `u1` ON `cx`.`cxFROM` = `u1`.`userid` INNER JOIN `users` AS `u2` ON `cx`.`cxTO` = `u2`.`userid` ORDER BY `cx`.`cxTIME` DESC LIMIT $st, $app"); $banks = array('bank' => 'City Bank', 'cyber' => 'Cyber Bank'); while ($r = $db->fetch_row($q)) { $mb = $banks[$r['cxBANK']]; $m = ($r['cxFROMIP'] == $r['cxTOIP']) ? '<span style="color: red; font-weight: bold;">MULTI</span>' : ''; echo " <tr> <td>{$r['cxID']}</td> <td>" . date("F j, Y, g:i:s a", $r['cxTIME']) . "</td> <td> <a href='viewuser.php?u={$r['cxFROM']}'>{$r['sender']}</a> [{$r['cxFROM']}] (IP: {$r['cxFROMIP']}) </td> <td> <a href='viewuser.php?u={$r['cxTO']}'>{$r['sent']}</a> [{$r['cxTO']}] (IP: {$r['cxTOIP']}) </td> <td>$m</td> <td> " . money_formatter($r['cxAMOUNT']) . "</td> <td>$mb</td> <td> [<a href='preport.php'>Report Player</a>] </td> </tr> "; } $db->free_result($q); echo " </table> <br /> Pages: "; for ($i = 1; $i <= $pages; $i++) { $s = ($i - 1) * $app; echo ($s == $st) ? '<b>' . $i . '</b> ' : '<a href="Opmenu.php?action=banklogs&st=' . $s . '">' . $i . '</a> '; echo ($i % 25 == 0) ? '<br />' : ''; } $mypage = floor($_GET['st'] / 100) + 1; stafflog_add("Viewed the Bank Xfer Logs (Page $mypage)"); } function view_crys_logs() { global $db, $ir, $c, $h, $userid; echo "<h3>Crystal Xfer Logs</h3>"; if (!isset($_GET['st'])) { $_GET['st'] = 0; } $st = abs(intval($_GET['st'])); $app = 100; $q = $db->query( "SELECT COUNT(`cxFROM`) FROM `crystalxferlogs`"); $attacks = $db->fetch_single($q); $db->free_result($q); if ($attacks == 0) { echo 'There have been no crystal transfers yet.'; return; } $pages = ceil($attacks / $app); echo 'Pages: '; for ($i = 1; $i <= $pages; $i++) { $s = ($i - 1) * $app; echo ($s == $st) ? '<b>' . $i . '</b> ' : '<a href="Opmenu.php?action=cryslogs&st=' . $s . '">' . $i . '</a> '; echo ($i % 25 == 0) ? '<br />' : ''; } echo " <table width='100%' cellspacing='1' cellpadding='1' class='table'> <tr> <th>ID</th> <th>Time</th> <th>User From</th> <th>User To</th> <th>Multi?</th> <th>Amount</th> <th> </th> </tr> "; $q = $db->query( "SELECT `cxAMOUNT`, `cxTO`, `cxFROM`, `cxTIME`, `cxID`, `cxTOIP`, `cxFROMIP`, `u1`.`username` AS `sender`, `u2`.`username` AS `sent` FROM `crystalxferlogs` AS `cx` INNER JOIN `users` AS `u1` ON `cx`.`cxFROM` = `u1`.`userid` INNER JOIN `users` AS `u2` ON `cx`.`cxTO` = `u2`.`userid` ORDER BY `cx`.`cxTIME` DESC LIMIT $st, $app"); while ($r = $db->fetch_row($q)) { $m = ($r['cxFROMIP'] == $r['cxTOIP']) ? '<span style="color: red; font-weight: bold;">MULTI</span>' : ''; echo " <tr> <td>{$r['cxID']}</td> <td>" . date("F j, Y, g:i:s a", $r['cxTIME']) . "</td> <td> <a href='viewuser.php?u={$r['cxFROM']}'>{$r['sender']}</a> [{$r['cxFROM']}] (IP: {$r['cxFROMIP']}) </td> <td> <a href='viewuser.php?u={$r['cxTO']}'>{$r['sent']}</a> [{$r['cxTO']}] (IP: {$r['cxTOIP']}) </td> <td>$m</td> <td>{$r['cxAMOUNT']} crystals</td> <td> [<a href='preport.php'>Report Player</a>] </td> </tr> "; } $db->free_result($q); echo " </table> <br /> Pages: "; for ($i = 1; $i <= $pages; $i++) { $s = ($i - 1) * $app; echo ($s == $st) ? '<b>' . $i . '</b> ' : '<a href="Opmenu.php?action=cryslogs&st=' . $s . '">' . $i . '</a> '; echo ($i % 25 == 0) ? '<br />' : ''; } $mypage = floor($_GET['st'] / 100) + 1; stafflog_add("Viewed the Crystal Xfer Logs (Page $mypage)"); } function view_staff_logs() { global $db, $ir, $c, $h, $userid; if ($ir['user_level'] != 2) { echo 'Page cannot be accessed.'; die($h->endpage()); } echo "<h3>Staff Logs</h3>"; if (!isset($_GET['st'])) { $_GET['st'] = 0; } $st = abs(intval($_GET['st'])); $app = 100; $q = $db->query("SELECT COUNT(`user`) FROM `stafflog`"); $attacks = $db->fetch_single($q); if ($attacks == 0) { echo 'There have been no staff actions yet.'; return; } $pages = ceil($attacks / $app); echo 'Pages: '; for ($i = 1; $i <= $pages; $i++) { $s = ($i - 1) * $app; echo ($s == $st) ? '<b>' . $i . '</b> ' : '<a href="Opmenu.php?action=stafflogs&st=' . $s . '">' . $i . '</a> '; echo ($i % 25 == 0) ? '<br />' : ''; } echo " <table width='100%' cellspacing='1' cellpadding='1' class='table'> <tr> <th>Staff</th> <th>Action</th> <th>Time</th> <th>IP</th> </tr> "; $q = $db->query( "SELECT `ip`, `time`, `action`, `user`, `u`.`username` FROM `stafflog` AS `s` INNER JOIN `users` AS `u` ON `s`.`user` = u.`userid` ORDER BY `s`.`time` DESC LIMIT $st, $app"); while ($r = $db->fetch_row($q)) { echo " <tr> <td>{$r['username']} [{$r['user']}]</td> <td>{$r['action']}</td> <td>" . date('F j Y g:i:s a', $r['time']) . "</td> <td>{$r['ip']}</td> </tr> "; } $db->free_result($q); echo " </table> <br /> Pages: "; for ($i = 1; $i <= $pages; $i++) { $s = ($i - 1) * $app; echo ($s == $st) ? '<b>' . $i . '</b> ' : '<a href="Opmenu.php?action=stafflogs&st=' . $s . '">' . $i . '</a> '; echo ($i % 25 == 0) ? '<br />' : ''; } } $h->endpage();   Call This smenuOp.php   <?php ///////Mod Created By The Phantom//////// include "globals.php"; global $db, $c, $ir, $set; if($_SESSION['stafflogin'] == 0) { header('location: stafflogin.php'); } echo "<hr /><b>Logs</b><br /> > <a href='Opmenu.php?action=atklogs'>Attack Logs</a><br /> > <a href='Opmenu.php?action=cashlogs'>Cash Xfer Logs</a><br /> > <a href='Opmenu.php?action=cryslogs'>Crystal Xfer Logs</a><br /> > <a href='Opmenu.php?action=banklogs'>Bank Xfer Logs</a><br /> > <a href='Opmenu.php?action=itmlogs'>Item Xfer Logs</a><br /> > <a href='addbug.php'>Report Bug</a><br /> > <a href='Opmenu.php'>Report Player</a><br /><hr />"; echo" <b>Resign</b><br/> <a href='resign.php'>Resign</a><br /> <hr />"; echo '<h3>Staff Notepad</h3><hr />'; if (isset($_POST['pad'])) { staff_csrf_stdverify('staff_notepad', 'staff.php'); $pad = $db->escape(stripslashes($_POST['pad'])); $db->query( "UPDATE `settings` SET `conf_value` = '{$pad}' WHERE `conf_name` = 'staff_pad'"); $set['staff_pad'] = stripslashes($_POST['pad']); echo '<b>Staff Notepad Updated!</b><hr />'; } $csrf = request_csrf_html('staff_notepad'); echo " <form action='staff.php' method='post'> <textarea rows='10' cols='60' name='pad'>" . htmlentities($set['staff_pad'], ENT_QUOTES, 'ISO-8859-1') . "</textarea> <br /> {$csrf} <input type='submit' value='Update Notepad' /> </form> "; $h->endpage(); ?>   Now for staff pannel password Now make a stafflogin.php   <?php include("globals.php"); echo '<font color=green><font size=4>You were redirected here because you are not logged into the staff panel.<br /><br /></font></font> '; $pass = "THE PASSWORD YOU WANT WRITE IT HEREl"; $_POST['pass'] = htmlspecialchars(mysql_real_escape_string($_POST['pass'])); if($_POST['pass'] == $pass) { $_SESSION['stafflogin'] = 1; header('location: smenuOp.php'); } echo '<form action="stafflogin.php" method="post"> Password: <input type="password" name="pass"> <input type="submit" value="Submit"></form>'; $h->endpage(); ?>   Were it says THE PASSWORD YOU WANT WRITE IT HEREl change it to the password you want. Once finsh go on main menu add under Staff Pannel <a href='smenuOp.php'>Assistant Pannel</a><br /> Now for staff list   <?php /** * MCCodes Version 2.0.5b * Copyright (C) 2005-2012 Dabomstew * All rights reserved. * * Redistribution of this code in any form is prohibited, except in * the specific cases set out in the MCCodes Customer License. * * This code license may be used to run one (1) game. * A game is defined as the set of users and other game database data, * so you are permitted to create alternative clients for your game. * * If you did not obtain this code from MCCodes.com, you are in all likelihood * using it illegally. Please contact MCCodes to discuss licensing options * in this case. * * File: stafflist.php * Signature: fbca6a2d04d5db023e507f742ab7f0fd * Date: Fri, 20 Apr 12 08:50:30 +0000 */ require_once('globals.php'); $staff = array(); $q = $db->query( "SELECT `userid`, `laston`, `username`, `level`, `money`, `user_level` FROM `users` WHERE `user_level` IN(2, 3, 5, 4) ORDER BY `userid` ASC"); while ($r = $db->fetch_row($q)) { /* See if their username is an image. - sniko */ $get = $db->query("SELECT `imagepath` FROM `user_imageusername` WHERE `userid`={$r['userid']}"); if( $db->num_rows($get) ) { $r_image = $db->fetch_row($get); $txt_username = $r['username']; $r['username'] = "<img src=\"images/username/{$r_image['imagepath']}\" alt=\"{$txt_username}\" />"; } $staff[$r['userid']] = $r; } $db->free_result($q); echo ' <b>Admins</b> <br /> <table width="75%" cellspacing="1" cellpadding="1" class="table"> <tr> <th>User</th> <th>Level</th> <th>Money</th> <th>Last Seen</th> <th>Status</th> </tr> '; foreach ($staff as $r) { if ($r['user_level'] == 2) { $on = ($r['laston'] >= ($_SERVER['REQUEST_TIME'] - 900)) ? '<span style="color: green;">Online</span>' : '<span style="color: red;">Offline</span>'; echo ' <tr> <td><a href="viewuser.php?u=' . $r['userid'] . '">' . $r['username'] . '</a> [' . $r['userid'] . ']</td> <td>' . $r['level'] . '</td> <td>' . money_formatter($r['money'], '$') . '</td> <td>' . date("F j, Y, g:i:s a", $r['laston']) . '</td> <td>' . $on . '</td> </tr> '; } } echo '</table> <b>Secretaries</b> <br /> <table width="75%" cellspacing="1" cellpadding="1" class="table"> <tr> <th>User</th> <th>Level</th> <th>Money</th> <th>Last Seen</th> <th>Status</th> </tr> '; foreach ($staff as $r) { if ($r['user_level'] == 3) { $on = ($r['laston'] >= ($_SERVER['REQUEST_TIME'] - 900)) ? '<span style="color: green;">Online</span>' : '<span style="color: red;">Offline</span>'; echo ' <tr> <td><a href="viewuser.php?u=' . $r['userid'] . '">' . $r['username'] . '</a> [' . $r['userid'] . ']</td> <td>' . $r['level'] . '</td> <td>' . money_formatter($r['money'], '$') . '</td> <td>' . date("F j, Y, g:i:s a", $r['laston']) . '</td> <td>' . $on . '</td> </tr> '; } } echo '</table> <b>Moderator</b> <br /> <table width="75%" cellspacing="1" cellpadding="1" class="table"> <tr> <th>User</th> <th>Level</th> <th>Money</th> <th>Last Seen</th> <th>Status</th> </tr> '; foreach ($staff as $r) { if ($r['user_level'] == 5) { $on = ($r['laston'] >= ($_SERVER['REQUEST_TIME'] - 900)) ? '<span style="color: green;">Online</span>' : '<span style="color: red;">Offline</span>'; echo ' <tr> <td><a href="viewuser.php?u=' . $r['userid'] . '">' . $r['username'] . '</a> [' . $r['userid'] . ']</td> <td>' . $r['level'] . '</td> <td>' . money_formatter($r['money'], '$') . '</td> <td>' . date("F j, Y, g:i:s a", $r['laston']) . '</td> <td>' . $on . '</td> </tr> '; } } echo '</table> <b>Assistant</b> <br /> <table width="75%" cellspacing="1" cellpadding="1" class="table"> <tr> <th>User</th> <th>Level</th> <th>Money</th> <th>Last Seen</th> <th>Status</th> </tr> '; foreach ($staff as $r) { if ($r['user_level'] == 4) { $on = ($r['laston'] >= ($_SERVER['REQUEST_TIME'] - 900)) ? '<span style="color: green;">Online</span>' : '<span style="color: red;">Offline</span>'; echo ' <tr> <td><a href="viewuser.php?u=' . $r['userid'] . '">' . $r['username'] . '</a> [' . $r['userid'] . ']</td> <td>' . $r['level'] . '</td> <td>' . money_formatter($r['money'], '$') . '</td> <td>' . date("F j, Y, g:i:s a", $r['laston']) . '</td> <td>' . $on . '</td> </tr> '; } } $h->endpage();   Your finish.
×
×
  • Create New...