Ejemplo n.º 1
0
    $rrdgfx = SS_PATH_GFX . '/daily-all.png';
    $rrdexecstart = SS_RRDTOOL_COMMAND . " graph {$rrdgfx} --lazy -l 0 -a PNG -s e-1w";
    exec($rrdexecstart . $rrdexecend);
    DisplayGraph($txt_freq, $rrdgfx);
    // generate and display the 5 weeks graph
    $txt_freq = 'weekly';
    $rrdgfx = SS_PATH_GFX . '/weekly-all.png';
    $rrdexecstart = SS_RRDTOOL_COMMAND . " graph {$rrdgfx} --lazy -l 0 -a PNG -s e-5w";
    exec($rrdexecstart . $rrdexecend);
    DisplayGraph($txt_freq, $rrdgfx);
    // generate and display the 12 months graph
    $txt_freq = 'monthly';
    $rrdgfx = SS_PATH_GFX . '/monthly-all.png';
    $rrdexecstart = SS_RRDTOOL_COMMAND . " graph {$rrdgfx} --lazy -l 0 -a PNG -s e-1y";
    exec($rrdexecstart . $rrdexecend);
    DisplayGraph($txt_freq, $rrdgfx);
}
?>

<p>
<a href="http://www.gnu.org/copyleft/gpl.html">GPL</a>
<a href="http://www.glop.org/shoutstats/">Shoutstats</a> 
<a href="CHANGES"><?php 
echo SS_VERSION;
?>
</a> -
<a href="http://validator.w3.org/check?uri=referer">XHTML/1.1</a> and 
<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS2</a> compliant
</p>

</body>
Ejemplo n.º 2
0
    }
    ?>
				</td>
				<td valign="top" class="name">
					<?php 
    echo $resultname;
    ?>
				</td>
				<td class="value">
				<?php 
    if (trim($number) != "") {
        echo "{$number} <span class='tiny'>{$units}</span>";
    } elseif (trim($text) != "") {
        switch ($resulttype) {
            case 'graph':
                DisplayGraph($text, $resultname, $units, $labels, $graphnum);
                $graphnum++;
                break;
            case 'histogram':
                DisplayHistogram($text, $resultname, $units, $labels);
                break;
            case 'minmax':
                DisplayMinMax($text, $resultname, $units, $labels);
                break;
        }
        //echo $text;
    } elseif (trim($file) != "") {
        $filepath = "{$qapath}/{$file}";
        ?>
					<img style="border: solid 1px #666666; " src="data:image/png;base64,<?php 
        echo base64_encode(file_get_contents("{$filepath}"));
Ejemplo n.º 3
0
	<div id="wrapper">
<?
	//require "config.php";
	require "functions.php";
	require "includes.php";
	require "menu.php";
	require 'kashi.php';
	
	/* ----- setup variables ----- */
	$action = GetVariable("action");

	/* ----- determine which action to take ----- */
	switch ($action) {
		case 'list': DisplayList(); break;
		case 'summary': DisplaySummary(); break;
		case 'graph': DisplayGraph(); break;
		default:
			DisplayList();
	}


	/* -------------------------------------------- */
	/* ------- DisplayStatsMenu ------------------- */
	/* -------------------------------------------- */
	function DisplayStatsMenu() {
		?>
		<div align="center">
			<a href="cluster.php?action=list">List</a> &nbsp; 
			<a href="cluster.php?action=summary">Summary</a> &nbsp; 
			<a href="cluster.php?action=graph">Graph</a> &nbsp; 
		</div>
Ejemplo n.º 4
0
require "functions.php";
require "includes.php";
require "menu.php";
require 'kashi.php';
/* ----- setup variables ----- */
$action = GetVariable("action");
/* ----- determine which action to take ----- */
switch ($action) {
    case 'list':
        DisplayList();
        break;
    case 'summary':
        DisplaySummary();
        break;
    case 'graph':
        DisplayGraph();
        break;
    default:
        DisplayList();
}
/* -------------------------------------------- */
/* ------- DisplayStatsMenu ------------------- */
/* -------------------------------------------- */
function DisplayStatsMenu()
{
    ?>
		<div align="center">
			<a href="cluster.php?action=list">List</a> &nbsp; 
			<a href="cluster.php?action=summary">Summary</a> &nbsp; 
			<a href="cluster.php?action=graph">Graph</a> &nbsp; 
		</div>
Ejemplo n.º 5
0
					}
					?>
				</td>
				<td valign="top" class="name">
					<?php 
echo $resultname;
?>
				</td>
				<td class="value">
				<?
				if (trim($number) != "") {
					echo "$number <span class='tiny'>$units</span>";
				}
				elseif (trim($text) != "") {
					switch ($resulttype) {
						case 'graph': DisplayGraph($text,$resultname,$units,$labels,$graphnum); $graphnum++; break;
						case 'histogram': DisplayHistogram($text,$resultname,$units,$labels); break;
						case 'minmax': DisplayMinMax($text,$resultname,$units,$labels); break;
					}
					//echo $text;
				}
				elseif (trim($file) != "") {
					$filepath = "$qapath/$file";
					?>
					<img style="border: solid 1px #666666; " src="data:image/png;base64,<?php 
echo base64_encode(file_get_contents("{$filepath}"));
?>
">
					<?
				}
				?>