Changeset 609 for trunk/pages/tophraci.php
- Timestamp:
- Aug 7, 2009, 10:03:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/tophraci.php
r589 r609 14 14 } 15 15 16 17 16 function getOnline($online) 18 17 { 19 if ($online == 1): 20 $status = '<span style="color: green;">Online</span>'; 21 else: 22 $status = '<span style="color: red;">Offline</span>'; 23 endif; 24 18 if($online == 1) $status = '<span style="color: green;">Online</span>'; 19 else $status = '<span style="color: red;">Offline</span>'; 25 20 return($status); 26 21 } 27 22 28 $db->select_db($Config['Mangos'][' DatabaseCharacters']);23 $db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 29 24 $sql = 'SELECT name, totaltime, online FROM characters ORDER BY totaltime DESC LIMIT '.$top; 30 25 $result = $db->query($sql);
Note:
See TracChangeset
for help on using the changeset viewer.