Files
cacti/graph_image.php
T
Ian Berry eb59dd520f Initial revision
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@2 860744bd-22fc-0310-8c96-e9fe5004b5ca
2002-05-18 20:29:57 +00:00

48 lines
2.2 KiB
PHP

<?/*
+-------------------------------------------------------------------------+
| Copyright (C) 2002 Ian Berry |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 2 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
+-------------------------------------------------------------------------+
| cacti: the rrdtool frontend [php-auth, php-tree, php-form] |
+-------------------------------------------------------------------------+
| This code is currently maintained and debugged by Ian Berry, any |
| questions or comments regarding this code should be directed to: |
| - iberry@raxnet.net |
+-------------------------------------------------------------------------+
| - raXnet - http://www.raxnet.net/ |
+-------------------------------------------------------------------------+
*/?>
<?
$section = "View Graphs";
$guest_account = true;
include ('include/auth.php');
include_once ("include/rrd_functions.php");
/* check to see if there are user specified vars */
if ($graph_start != "") {
$graph_data_array["use"] = true;
$graph_data_array["graph_start"] = $args[graph_start];
$graph_data_array["graph_height"] = $args[graph_height];
$graph_data_array["graph_width"] = $args[graph_width];
}
/* treat the legend separatly */
if ($graph_nolegend != "") {
$graph_data_array["graph_nolegend"] = $args[graph_nolegend];
}
$graph_data_array["print_source"] = $args[showsource];
print rrdtool_function_graph($args[graphid], $args[rraid], $graph_data_array);
?>