Example #1
0
	<script type="text/javascript">
<?php 
get_data($stats);
?>
	</script>
<?php 
include "header.php";
?>
		<script src="js/highstock.js"></script>
		<script src="js/exporting.js"></script>
		<h2>Info of <?php 
echo $_GET['type1'];
?>
</h2>
		<?php 
make_info($stats_info);
?>
		<br />
		<h2>Stats of <?php 
echo $_GET['type1'];
?>
 - <?php 
echo $_GET['type2'];
?>
</h2>
		<?php 
// write div for graphe
$nb = 1;
while ($nb <= $nb_graph) {
    ?>
					<div id="container<?php 
Example #2
0
function make_info($stats_info, $level = 1)
{
    foreach ($stats_info as $c => $d) {
        if ($c != 'process' && $c != 'memory' && $c != 'cpu') {
            if (GETTYPE($d) == 'array') {
                $level++;
                ?>
<h<?php 
                echo $level;
                ?>
><?php 
                echo $c;
                ?>
</h<?php 
                echo $level;
                ?>
><?php 
                make_info($d, $level);
                $level = $level - 1;
            } elseif (strpos($d, ".json") === false) {
                ?>
<p><?php 
                echo "{$c} : {$d}";
                ?>
<br /></p><?php 
            }
        }
    }
}
Example #3
0
<?php

include "read_data.php";
?>
<!DOCTYPE html>
<html lang="fr" >
<head>
	<title>Yunohost Graphe system dashboard</title>
<?php 
include "header.php";
?>
		<h2>Dashboard</h2>
<?php 
make_info($stats);
// print info
include "footer.php";