Changeset 304 for minimanager/index.php
- Timestamp:
- Mar 13, 2008, 7:39:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/index.php
r178 r304 22 22 if (test_port($server[$realm_id]['addr'],$server[$realm_id]['game_port'])) { 23 23 24 $query = $sql->query("SELECT uptime /60FROM uptime ORDER BY starttime DESC LIMIT 1");24 $query = $sql->query("SELECT uptime FROM uptime ORDER BY starttime DESC LIMIT 1"); 25 25 $uptime = $sql->result($query, 0); 26 $output .= "<h1><font color=\"#55aa55\">{$lang_index['realm']} ".get_realm_name($realm_id)." {$lang_index['online']} : (".(int)($uptime/60 ).":".(($uptime >= 60 )?(int)($uptime-60*(int)($uptime/60)):(int)$uptime)."h)</font></h1>";26 $output .= "<h1><font color=\"#55aa55\">{$lang_index['realm']} ".get_realm_name($realm_id)." {$lang_index['online']} : (".(int)($uptime/60/60/24)."D : ".(($uptime/60/60 >= 24 )?(int)($uptime/60/60-24*(int)($uptime/60/60/24)):(int)($uptime/60/60))."H : ".(($uptime/60 >= 60 )?(int)($uptime/60-60*(int)($uptime/60/60)):(int)($uptime/60))."M : ".(($uptime >= 60 )?(int)($uptime-60*(int)($uptime/60)):(int)$uptime)."S)</font></h1>"; 27 27 $online = true; 28 28 } else { … … 91 91 CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', ".(CHAR_DATA_OFFSET_HONOR_POINTS+1)."), ' ', -1) AS UNSIGNED) AS highest_rank, 92 92 CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', ".(CHAR_DATA_OFFSET_LEVEL+1)."), ' ', -1) AS UNSIGNED) AS level,account, 93 CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', ".(229+1)."), ' ', -1) AS UNSIGNED) as GNAME 93 CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', ".(CHAR_DATA_OFFSET_GUILD_ID+1)."), ' ', -1) AS UNSIGNED) as GNAME, 94 mid(lpad( hex( CAST(substring_index(substring_index(data,' ',".(36+1)."),' ',-1) as unsigned) ),8,'0'),4,1) as gender 94 95 FROM `character` WHERE `online`= 1 $order_side ORDER BY $order_by $order_dir"); 95 96 … … 167 168 $output .= "<tr> 168 169 <td><a href=\"char.php?id=$char[0]\"><span onmousemove='toolTip(\"".get_player_user_level($gm)."\",\"item_tooltip\")' onmouseout='toolTip()'>$char[1]</span></a></td> 169 <td><img src='img/c_icons/{$char[2]}- 0.gif' onmousemove='toolTip(\"".get_player_race($char[2])."\",\"item_tooltip\")' onmouseout='toolTip()' /></td>170 <td><img src='img/c_icons/{$char[2]}-{$char[10]}.gif' onmousemove='toolTip(\"".get_player_race($char[2])."\",\"item_tooltip\")' onmouseout='toolTip()' /></td> 170 171 <td><img src='img/c_icons/{$char[3]}.gif' onmousemove='toolTip(\"".get_player_class($char[3])."\",\"item_tooltip\")' onmouseout='toolTip()' /></td> 171 172 <td>$lev</td> 172 173 <td><span onmouseover='toolTip(\"".$CHAR_RANK[$CHAR_RACE[$char[2]][1]][pvp_ranks($char[6])]."\",\"item_tooltip\")' onmouseout='toolTip()' style='color: white;'><img src='img/ranks/rank".pvp_ranks($char[6],$CHAR_RACE[$char[2]][1]).".gif'></span></td> 173 <td><a href=\"guild.php? id=$char[9]\">$guild_name[0]</a></td>174 <td><a href=\"guild.php?action=view_guild&error=3&id=$char[9]\">$guild_name[0]</a></td> 174 175 <td>".get_map_name($char[5])."</td> 175 176 <td>".get_zone_name($char[4])."</td>
Note:
See TracChangeset
for help on using the changeset viewer.