Changeset 389 for online_player.php
- Timestamp:
- Oct 8, 2008, 12:42:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
online_player.php
r374 r389 1 2 <? 1 <?php 3 2 include('global.php'); 4 3 ShowHeader(); 5 6 echo('<h3>Online hrá èi:</h3><div align="center">');4 5 echo('<h3>Online hráči:</h3><div align="center">'); 7 6 $Database->select_db('characters'); 8 7 … … 20 19 21 20 require_once("minimanager/scripts/defines.php"); 22 $result = $Database->query("SELECT guid,name,race,class,zone,map, 23 CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', ".(CHAR_DATA_OFFSET_HONOR_POINTS+1)."), ' ', -1) AS UNSIGNED) AS highest_rank, 24 CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', ".(CHAR_DATA_OFFSET_LEVEL+1)."), ' ', -1) AS UNSIGNED) AS level,account 25 FROM `characters` WHERE `online`= 1 $order_side ORDER BY $order_by $order_dir"); 21 $result = $Database->query("SELECT guid, name, race, class, zone, map, CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', ".(CHAR_DATA_OFFSET_HONOR_POINTS+1)."), ' ', -1) AS UNSIGNED) AS highest_rank, CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', ".(CHAR_DATA_OFFSET_LEVEL+1)."), ' ', -1) AS UNSIGNED) AS level,account FROM `characters` WHERE `online`= 1 $order_side ORDER BY $order_by $order_dir"); 26 22 27 23 require_once("minimanager/lang/english.php"); … … 32 28 'offline_or_let_height' => 'Offline or Latency too Height', 33 29 'delete' => 'Delete', 34 'tot_users_online' => 'Celkem hrá èùonline',30 'tot_users_online' => 'Celkem hráčů online', 35 31 'name' => 'Jméno', 36 32 'race' => 'Rasa', 37 'class' => 'T øída',38 'level' => 'Úrove ò',33 'class' => 'Třída', 34 'level' => 'Úroveň', 39 35 'map' => 'Mapa', 40 36 'zone' => 'Zóna', … … 63 59 if(($char[2] == 1) or ($char[2] == 3) or ($char[2] == 4) or ($char[2] == 7) or ($char[2] == 11)) $color = '#9090ff'; 64 60 else $color = '#FF5050'; 65 66 61 $output .= "<tr> 62 <td style=\"color: ".$color.";\">$char[1]</td> 67 63 <td><img src='images/online_player/{$char[2]}-0.gif' onmousemove='toolTip(\"".$race."\",\"item_tooltip\")' onmouseout='toolTip()' /></td> 68 69 70 71 72 73 74 75 $output .= "</table></div>"; 64 <td><img src='images/online_player/{$char[3]}.gif' onmousemove='toolTip(\"".get_player_class($char[3])."\",\"item_tooltip\")' onmouseout='toolTip()' /></td> 65 <td>$char[7]</td> 66 <td>".get_map_name($char[5])."</td> 67 <td>".$zone."</td> 68 <td>$char[6]</td> 69 </tr>"; 70 } 71 $output .= "</table></div>"; 76 72 echo($output); 77 73 78 74 ShowFooter(); 79 75 ?>
Note:
See TracChangeset
for help on using the changeset viewer.