packetcount.php 620 Bytes
Newer Older
's avatar
committed
1
2
3
4
5
6
7
8
9
10
<?php

# Includes {{{

$DIR="../";
require_once "${DIR}lib/expire.php";
require_once "${DIR}lib/graph.php";

# }}}

11
$allowed_args = ",host0rrddsid,host1rrddsid,start,end,step,avg,max,min,width,height,upperLimit,lowerLimit,onlyGraph,title,info,";
's avatar
committed
12
13
14
15
16
17
18

foreach(array_keys($_GET) as $key) {
	if(strpos($allowed_args,",$key,") !== false) {
		$$key = $_GET[$key];
	}
}

19
$graph = new Graph("packetcount", $host0rrddsid, $host1rrddsid, $start, $end, $step, $avg, $max, $min, $width, $height, $title, $info);
's avatar
committed
20
21
22
23
24
25
26

//$graph->dry_run();
$graph->flush();

// vim: set foldmethod=marker foldmarker=\ {{{,\ }}} foldclose= foldcolumn=0 :

?>