Jump to content
  • 0

Flux CP [status problem]


simplynice

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  128
  • Reputation:   4
  • Joined:  11/14/11
  • Last Seen:  

I'd like to move this php code into the header under the main folder of flux:


<h2><?php echo htmlspecialchars(Flux::message('ServerStatusHeading')) ?></h2>
<p><?php echo htmlspecialchars(Flux::message('ServerStatusInfo')) ?></p>
<?php foreach ($serverStatus as $privServerName => $gameServers): ?>
<h3>Server Status for <?php echo htmlspecialchars($privServerName) ?></h3>
<table id="server_status">
<tr>
<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusServerLabel')) ?></td>
<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusLoginLabel')) ?></td>
<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusCharLabel')) ?></td>
<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusMapLabel')) ?></td>
<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusOnlineLabel')) ?></td>
</tr>
<?php foreach ($gameServers as $serverName => $gameServer): ?>
<tr>
<th class="server"><?php echo htmlspecialchars($serverName) ?></th>
<td class="status"><?php echo $this->serverUpDown($gameServer['loginServerUp']) ?></td>
<td class="status"><?php echo $this->serverUpDown($gameServer['charServerUp']) ?></td>
<td class="status"><?php echo $this->serverUpDown($gameServer['mapServerUp']) ?></td>
<td class="status"><?php echo $gameServer['playersOnline'] ?></td>
</tr>
<?php endforeach ?>
</table>
<?php endforeach ?>

Yes i already added it to header.php under the main folder. I can see the server status only if i click the server status at the sidebar menu. I'd like to show it as a default header in each page.

Thanks!

Edited by simplynice
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  133
  • Reputation:   14
  • Joined:  12/23/11
  • Last Seen:  

Lol my bad. Wait.

It's around fluxcp/modules/server/status.php, copy the important parts, no... actually just create another copy of the file then include it in the header :D

Edited by kenshn111
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

you can try this:

http://rathena.org/board/topic/56268-fluxcp-easy-server-status-customization/

just reply if you dont understand it.

Link to comment
Share on other sites

×
×
  • Create New...