Jump to content
  • 0

how to edit fluxcp?


Cisqua

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   1
  • Joined:  12/29/12
  • Last Seen:  

how to edit the flux cp?

i want to change the Feature msg some menus or download menu msg.. anyone got guide for this one?>

 

--------------------------------

this one too not working i want todo is to show the server info and status in one page.

<?php if (!defined('FLUX_ROOT')) exit; ?>
<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 ?>



<h3><?php echo htmlspecialchars(sprintf(Flux::message('ServerInfoSubHeading'), $server->serverName)) ?></h3>
<div class="generic-form-div">
	<table class="generic-form-table">
		<tr>
			<th><label><?php echo htmlspecialchars(Flux::message('ServerInfoAccountLabel')) ?></label></th>
			<td><p><?php echo number_format($info['accounts']) ?></p></td>
		</tr>
		<tr>
			<th><label><?php echo htmlspecialchars(Flux::message('ServerInfoCharLabel')) ?></label></th>
			<td><p><?php echo number_format($info['characters']) ?></p></td>
		</tr>
		<tr>
			<th><label><?php echo htmlspecialchars(Flux::message('ServerInfoGuildLabel')) ?></label></th>
			<td><p><?php echo number_format($info['guilds']) ?></p></td>
		</tr>
		<tr>
			<th><label><?php echo htmlspecialchars(Flux::message('ServerInfoPartyLabel')) ?></label></th>
			<td><p><?php echo number_format($info['parties']) ?></p></td>
		</tr>
		<tr>
			<th><label><?php echo htmlspecialchars(Flux::message('ServerInfoZenyLabel')) ?></label></th>
			<td><p><?php echo number_format($info['zeny']) ?></p></td>
		</tr>
	</table>
</div>

<h3><?php echo htmlspecialchars(sprintf(Flux::message('ServerInfoSubHeading2'), $server->serverName)) ?></h3>
<div class="generic-form-div">
	<table class="generic-form-table job-classes">
		<tr>
		<?php $i = 1; $x = 5 ?>
		<?php foreach ($info['classes'] as $class => $total): ?>
			<th><label><?php echo htmlspecialchars($class) ?></label></th>
			<td><p class="important"><?php echo number_format($total) ?></p></td>
		<?php if ($i++ % $x === 0): ?>
		</tr>
		<tr>
		<?php endif ?>
		<?php endforeach ?>
		<?php --$i ?>
		<?php while (($i++) % $x): ?>
			<th> </th>
			<td> </td>
		<?php endwhile ?>
		</tr>
	</table>
</div>

and i have this error

Accounts 	


Notice: Undefined variable: info in /home/greenr/public_html/cp/themes/default/server/status.php on line 30
0
Characters 	


Notice: Undefined variable: info in /home/greenr/public_html/cp/themes/default/server/status.php on line 34
0
Guilds 	


Notice: Undefined variable: info in /home/greenr/public_html/cp/themes/default/server/status.php on line 38
0
Parties 	


Notice: Undefined variable: info in /home/greenr/public_html/cp/themes/default/server/status.php on line 42
0
Zeny 	


Notice: Undefined variable: info in /home/greenr/public_html/cp/themes/default/server/status.php on line 46
0
Job Class Information for Green Ragnarok Server

Notice: Undefined variable: info in /home/greenr/public_html/cp/themes/default/server/status.php on line 56

Warning: Invalid argument supplied for foreach() in /home/greenr/public_html/cp/themes/default/server/status.php on line 56


i have this error too

 

Notice: Trying to get property of non-object in /home/greenr/public_html/cp/addons/voteforpoints/modules/voteforpoints/index.php on line 33

Edited by Cisqua
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

×
×
  • Create New...