Created
May 15, 2014 18:51
-
-
Save anzenehansen/01deed70c1cf9327aae9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$graph_keys = array("trafficgraph", "loadgraph", "memorygraph"); | |
$graphs = false; | |
foreach ($graph_keys as $value) { | |
if ($this->Html->ifSet($server->{$value}, false)) { | |
$graphs = true; | |
break; | |
} | |
} | |
// Display graphs | |
if ($graphs) { | |
?> | |
<hr /> | |
<h4><?php $this->_("Solusvm.tab_client_stats.heading_graphs");?></h4> | |
<?php | |
foreach ($graph_keys as $value) { | |
if (!$this->Html->ifSet($server->{$value}, false)) | |
continue; | |
?> | |
<p><img src="<?php echo $this->Html->safe($this->Html->ifSet($module_hostname) . $this->Html->ifSet($server->{$value}));?>" /></p> | |
<?php | |
} | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$graph_keys = array("trafficgraph", "loadgraph", "memorygraph"); | |
?> | |
<hr /> | |
<h4><?php $this->_("Solusvm.tab_client_stats.heading_graphs");?></h4> | |
<?php | |
foreach ($graph_keys as $value) { | |
if (!$this->Html->ifSet($server->{$value}, false)) | |
continue; | |
?> | |
<p><img src="<?php echo $this->Html->safe($this->Html->ifSet($module_hostname) . $this->Html->ifSet($server->{$value}));?>" /></p> | |
<?php | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment