Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 161 lines (161 sloc) 11.758 kB
932f1ed @ChaseHQ Initial Commit
authored
1 <?php
2 $playerOnlineArray = $serverObj->getAllPlayersOnline();
3 ?>
3edd0ec - Finished server_page.php localization
Craig Vella authored
4 <span id="infoLabel"><?php echo(STRING_SERVER_CURRENTLY_ONLINE); ?> (<?php echo(count($playerOnlineArray)); ?>) :</span>
932f1ed @ChaseHQ Initial Commit
authored
5 <?php
6 foreach($playerOnlineArray as $player) {
7 ?>
8 <span id="online"><a id="onlinePlayer" href="?view=player&uuid=<?php echo($player->getUUID()); ?>"><?php echo($player->getName()); ?></a></span>
9 <?php
10 }
11 ?>
12 <br /><br />
3edd0ec - Finished server_page.php localization
Craig Vella authored
13 <div id="subTitle"><?php echo(STRING_SERVER_SERVER_STATISTICS); ?> &nbsp; &nbsp; <a id="smallLink" href="?view=playerList"><?php echo(STRING_SERVER_LINK_PLAYER_LIST); ?></a></div>
932f1ed @ChaseHQ Initial Commit
authored
14 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
15 <span id="infoLabel"><?php echo(STRING_SERVER_REGISTERED_PLAYERS); ?>:</span><span id="info"><?php echo(count($serverObj->getAllPlayers())); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
16 </div>
17 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
18 <span id="infoLabel"><?php echo(STRING_SERVER_MAX_PLAYERS_ON); ?>:</span><span id="info"><?php echo($serverObj->getMaxPlayersEverOnline()); ?> <?php echo(STRING_SERVER_MAX_PLAYERS_NUMBER_TO_TIME_SEPERATOR); ?> <?php echo(QueryUtils::formatDate($serverObj->getMaxPlayersEverOnlineTimeWhenOccured())); ?></span>
53ca0f5 @ChaseHQ - Portal Version 1.2.3
authored
19 </div>
20 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
21 <span id="infoLabel"><?php echo(STRING_SERVER_LIFETIME_LOGONS); ?>:</span><span id="info"><?php echo($serverObj->getNumberOfLoginsTotal()); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
22 </div>
23 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
24 <span id="infoLabel"><?php echo(STRING_SERVER_TIME_PLAYED_TOTAL); ?>:</span><span id="info"><?php echo(QueryUtils::formatSecs($serverObj->getNumberOfSecondsLoggedOnTotal())); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
25 </div>
4f48b48 @ChaseHQ - Updated to portal 1.2.1 for database version 2
authored
26 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
27 <span id="infoLabel"><?php echo(STRING_SERVER_SERVER_CURRENT_UPTIME); ?>:</span><span id="info"><?php echo(QueryUtils::formatSecs($serverObj->getUptimeInSeconds())); ?></span>
4f48b48 @ChaseHQ - Updated to portal 1.2.1 for database version 2
authored
28 </div>
29 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
30 <span id="infoLabel"><?php echo(STRING_SERVER_SERVER_LAST_STARTUP); ?>:</span><span id="info"><?php echo(QueryUtils::formatDate($serverObj->getStartupTime())); ?></span>
4f48b48 @ChaseHQ - Updated to portal 1.2.1 for database version 2
authored
31 </div>
32 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
33 <span id="infoLabel"><?php echo(STRING_SERVER_SERVER_LAST_SHUTDOWN); ?>:</span><span id="info"><?php echo(QueryUtils::formatDate($serverObj->getLastShutdownTime())); ?></span>
4f48b48 @ChaseHQ - Updated to portal 1.2.1 for database version 2
authored
34 </div>
3edd0ec - Finished server_page.php localization
Craig Vella authored
35 <div id="subCategory"><?php echo(STRING_ALL_DISTANCES); ?></div>
932f1ed @ChaseHQ Initial Commit
authored
36 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
37 <span id="infoLabel"><?php echo(STRING_ALL_TOTAL_TRAVEL_DISTANCE); ?>:</span><span id="info"><?php echo(QueryUtils::formatDistance($serverObj->getDistanceTraveledTotal())); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
38 </div>
39 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
40 <span id="infoLabel"><?php echo(STRING_ALL_TOTAL_FOOT_TRAVEL_DISTANCE); ?>:</span><span id="info"><?php echo(QueryUtils::formatDistance($serverObj->getDistanceTraveledByFootTotal())); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
41 </div>
42 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
43 <span id="infoLabel"><?php echo(STRING_ALL_TOTAL_MINECART_TRAVEL_DISTANCE); ?>:</span><span id="info"><?php echo(QueryUtils::formatDistance($serverObj->getDistanceTraveledByMinecartTotal())); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
44 </div>
45 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
46 <span id="infoLabel"><?php echo(STRING_ALL_TOTAL_BOAT_TRAVEL_DISTANCE); ?>:</span><span id="info"><?php echo(QueryUtils::formatDistance($serverObj->getDistanceTraveledByBoatTotal())); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
47 </div>
48 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
49 <span id="infoLabel"><?php echo(STRING_ALL_TOTAL_PIG_TRAVEL_DISTANCE); ?>:</span><span id="info"><?php echo(QueryUtils::formatDistance($serverObj->getDistanceTraveledByPigTotal())); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
50 </div>
3edd0ec - Finished server_page.php localization
Craig Vella authored
51 <div id="subCategory"><?php echo(STRING_ALL_BLOCKS); ?> &nbsp; &nbsp; <a href="?view=globalBlocks" id="smallLink"><?php echo(STRING_SERVER_LINK_GLOBAL_BLOCK_LIST); ?></a></div>
932f1ed @ChaseHQ Initial Commit
authored
52 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
53 <span id="infoLabel"><?php echo(STRING_ALL_TOTAL_BLOCKS_PLACED); ?>:</span><span id="info"><?php echo($serverObj->getBlocksPlacedTotal()); ?> <?php echo(STRING_ALL_BLOCKS); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
54 </div>
55 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
56 <span id="infoLabel"><?php echo(STRING_ALL_MOST_POPULAR_BLOCK_PLACED); ?>:</span><span id="info"><?php echo(QueryUtils::getResourceNameById($serverObj->getBlocksMostPlaced())); ?>
57 - (<?php echo($serverObj->getBlocksPlacedOfTypeTotal($serverObj->getBlocksMostPlaced())); ?> <?php echo(STRING_ALL_TIMES); ?>)</span>
932f1ed @ChaseHQ Initial Commit
authored
58 </div>
59 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
60 <span id="infoLabel"><?php echo(STRING_ALL_TOTAL_BLOCKS_DESTROYED); ?>:</span><span id="info"><?php echo($serverObj->getBlocksDestroyedTotal()); ?> <?php echo(STRING_ALL_BLOCKS); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
61 </div>
62 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
63 <span id="infoLabel"><?php echo(STRING_ALL_MOST_POPULAR_BLOCK_DESTROYED); ?>:</span><span id="info"><?php echo(QueryUtils::getResourceNameById($serverObj->getBlocksMostDestroyed())); ?>
64 - (<?php echo($serverObj->getBlocksDestroyedOfTypeTotal($serverObj->getBlocksMostDestroyed())); ?> <?php echo(STRING_ALL_TIMES); ?>)</span>
932f1ed @ChaseHQ Initial Commit
authored
65 </div>
3edd0ec - Finished server_page.php localization
Craig Vella authored
66 <div id="subCategory"><?php echo(STRING_ALL_ITEMS); ?> &nbsp; &nbsp; <a href="?view=globalItems" id="smallLink"><?php echo(STRING_SERVER_LINK_GLOBAL_ITEMS_LIST); ?></a></div>
932f1ed @ChaseHQ Initial Commit
authored
67 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
68 <span id="infoLabel"><?php echo(STRING_ALL_TOTAL_ITEMS_PICKEDUP); ?>:</span><span id="info"><?php echo($serverObj->getPickedUpTotal()); ?> <?php echo(STRING_ALL_ITEMS); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
69 </div>
70 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
71 <span id="infoLabel"><?php echo(STRING_ALL_MOST_POPULAR_ITEM_PICKEDUP); ?>:</span><span id="info"><?php echo(QueryUtils::getResourceNameById($serverObj->getMostPickedUp())); ?>
aeb3059 @ChaseHQ - Locale Fixes
authored
72 - (<?php echo($serverObj->getPickedUpOfTypeTotal($serverObj->getMostPickedUp())); ?> <?php echo(STRING_ALL_TIMES); ?>)</span>
932f1ed @ChaseHQ Initial Commit
authored
73 </div>
74 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
75 <span id="infoLabel"><?php echo(STRING_ALL_TOTAL_ITEMS_DROPPED); ?>:</span><span id="info"><?php echo($serverObj->getDroppedTotal()); ?> <?php echo(STRING_ALL_ITEMS); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
76 </div>
77 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
78 <span id="infoLabel"><?php echo(STRING_ALL_MOST_POPULAR_ITEM_DROPPED); ?>:</span><span id="info"><?php echo(QueryUtils::getResourceNameById($serverObj->getMostDropped())); ?>
79 - (<?php echo($serverObj->getDroppedOfTypeTotal($serverObj->getMostDropped())); ?> <?php echo(STRING_ALL_TIMES); ?>)</span>
932f1ed @ChaseHQ Initial Commit
authored
80 </div>
3edd0ec - Finished server_page.php localization
Craig Vella authored
81 <div id="subCategory"><?php echo(STRING_ALL_KILLS); ?> &nbsp; &nbsp; <a href="?view=globalKills" id="smallLink"><?php echo(STRING_SERVER_LINK_GLOBAL_KILL_LIST); ?></a></div>
932f1ed @ChaseHQ Initial Commit
authored
82 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
83 <span id="infoLabel"><?php echo(STRING_ALL_TOTAL_DEATHS); ?>:</span><span id="info"><?php echo($serverObj->getKillTable() ? count($serverObj->getKillTable()) : 0); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
84 </div>
85 <br />
86 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
87 <span id="infoLabel"><?php echo(STRING_SERVER_MOST_DANGEROUS_WEAPON); ?>:</span><span id="info"><?php echo(QueryUtils::getResourceNameById($serverObj->getMostDangerousWeapon())); ?>
88 - (<?php echo ($serverObj->getKillTableUsing($serverObj->getMostDangerousWeapon()) ? count($serverObj->getKillTableUsing($serverObj->getMostDangerousWeapon())) : 0); ?> <?php echo(STRING_ALL_KILLS); ?>)</span>
932f1ed @ChaseHQ Initial Commit
authored
89 </div>
90 <br />
91 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
92 <span id="infoLabel"><?php echo(STRING_ALL_PVP_KILLS); ?>:</span><span id="info"><?php echo($serverObj->getKillTablePVP() ? count ($serverObj->getKillTablePVP()) : 0); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
93 </div>
94 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
95 <span id="infoLabel"><?php echo(STRING_SERVER_MOST_DANGEROUS_PLAYER); ?>:</span><span id="info"><?php
932f1ed @ChaseHQ Initial Commit
authored
96 $player = $serverObj->getMostKillerPVP();
97 if ($player) {
98 ?>
aeb3059 @ChaseHQ - Locale Fixes
authored
99 <a id="onlinePlayer" href="?view=player&uuid=<?php echo($player->getUUID()); ?>"><?php echo($player->getName()); ?></a> - (<?php echo (count($player->getPlayerKillTableCreature(QueryUtils::getCreatureIdByName("Player")))); ?> <?php echo(STRING_ALL_PVP_KILLS); ?>)
932f1ed @ChaseHQ Initial Commit
authored
100 <?php
101 } else {
102 ?>
3edd0ec - Finished server_page.php localization
Craig Vella authored
103 <?php echo(STRING_ALL_NONE); ?>
932f1ed @ChaseHQ Initial Commit
authored
104 <?php
105 }
106 ?></span>
107 </div>
108 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
109 <span id="infoLabel"><?php echo(STRING_SERVER_MOST_SQUISHY_PLAYER); ?>:</span><span id="info"><?php
932f1ed @ChaseHQ Initial Commit
authored
110 $player = $serverObj->getMostKilledPVP();
111 if ($player) {
112 ?>
aeb3059 @ChaseHQ - Locale Fixes
authored
113 <a id="onlinePlayer" href="?view=player&uuid=<?php echo($player->getUUID()); ?>"><?php echo($player->getName()); ?></a> - (<?php echo (count($player->getPlayerDeathTableCreature(QueryUtils::getCreatureIdByName("Player")))); ?> <?php echo(STRING_ALL_PVP_DEATHS); ?>)
932f1ed @ChaseHQ Initial Commit
authored
114 <?php
115 } else {
116 ?>
3edd0ec - Finished server_page.php localization
Craig Vella authored
117 <?php echo(STRING_ALL_NONE); ?>
932f1ed @ChaseHQ Initial Commit
authored
118 <?php
119 }
120 ?></span>
121 </div>
122 <br />
123 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
124 <span id="infoLabel"><?php echo(STRING_ALL_PVE_KILLS); ?>:</span><span id="info"><?php echo($serverObj->getKillTablePVE() ? count($serverObj->getKillTablePVE()) : 0); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
125 </div>
126 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
127 <span id="infoLabel"><?php echo(STRING_SERVER_MOST_DANGEROUS_CREATURE); ?>:</span><span id="info"><?php echo(QueryUtils::getCreatureNameById($serverObj->getMostDangerousPVECreature())); ?>
128 - (<?php echo($serverObj->getMostDangerousPVECreature() ? count($serverObj->getKillTableCreature($serverObj->getMostDangerousPVECreature())) : 0); ?> <?php echo(STRING_ALL_KILLS); ?>)</span>
932f1ed @ChaseHQ Initial Commit
authored
129 </div>
130 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
131 <span id="infoLabel"><?php echo(STRING_SERVER_MOST_KILLED_CREATURE); ?>:</span><span id="info"><?php echo(QueryUtils::getCreatureNameById($serverObj->getMostKilledPVECreature())); ?>
132 - (<?php echo($serverObj->getMostKilledPVECreature() ? count($serverObj->getDeathTableCreature($serverObj->getMostKilledPVECreature())) : 0); ?> <?php echo(STRING_ALL_DEATHS); ?>)</span>
932f1ed @ChaseHQ Initial Commit
authored
133 </div>
134 <br />
135 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
136 <span id="infoLabel"><?php echo(STRING_ALL_OTHER_TYPE_DEATHS); ?>:</span><span id="info"><?php echo($serverObj->getKillTableOther() ? count($serverObj->getKillTableOther()) : 0); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
137 </div>
138 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
139 <span id="infoLabel"><?php echo(STRING_ALL_FALLING_DEATHS); ?>:</span><span id="info"><?php echo($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Fall")) ? count($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Fall"))) : 0); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
140 </div>
141 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
142 <span id="infoLabel"><?php echo(STRING_ALL_DROWNING_DEATHS); ?>:</span><span id="info"><?php echo($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Drowning")) ? count($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Drowning"))) : 0); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
143 </div>
144 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
145 <span id="infoLabel"><?php echo(STRING_ALL_SUFFOCATING_DEATHS); ?>:</span><span id="info"><?php echo($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Suffocation")) ? count($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Suffocation"))) : 0); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
146 </div>
147 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
148 <span id="infoLabel"><?php echo(STRING_ALL_LIGHTENING_DEATHS); ?>:</span><span id="info"><?php echo($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Lightening")) ? count($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Lightening"))) : 0); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
149 </div>
150 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
151 <span id="infoLabel"><?php echo(STRING_ALL_LAVA_DEATHS); ?>:</span><span id="info"><?php echo($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Lava")) ? count($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Lava"))) : 0); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
152 </div>
153 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
154 <span id="infoLabel"><?php echo(STRING_ALL_FIRE_DEATHS); ?>:</span><span id="info"><?php echo($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Fire")) ? count($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Fire"))) : 0); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
155 </div>
156 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
157 <span id="infoLabel"><?php echo(STRING_ALL_FIRE_TICK_DEATHS); ?>:</span><span id="info"><?php echo($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Fire Tick")) ? count($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Fire Tick"))) : 0); ?></span>
6908acc @ChaseHQ - Added Explosion stats to server Page and player Page
authored
158 </div>
159 <div id="infoLine">
3edd0ec - Finished server_page.php localization
Craig Vella authored
160 <span id="infoLabel"><?php echo(STRING_ALL_EXPLOSION_DEATHS); ?>:</span><span id="info"><?php echo($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Entity Explosion")) ? count($serverObj->getKillTableType(QueryUtils::getKillTypeIdByName("Entity Explosion"))) : 0); ?></span>
932f1ed @ChaseHQ Initial Commit
authored
161 </div>
Something went wrong with that request. Please try again.