/* +-------------------------------------------------------------------------+ | 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/ | +-------------------------------------------------------------------------+ */?> include ('include/config.php'); include ('include/config_arrays.php'); $section = "View Graphs"; include_once ("include/auth.php"); session_start(); /* at this point this user is good to go... so get some setting about this user and put them into variables to save excess SQL in the future */ $current_user = db_fetch_cell("select * from user where id=" . $_SESSION["sess_user_id"]); /* set the default action if none has been set */ if (!ereg('^(tree|list|preview)$', $_GET["action"])) { if (read_graph_config_option("default_view_mode") == "1") { $_GET["action"] = "tree"; }elseif (read_graph_config_option("default_view_mode") == "2") { $_GET["action"] = "list"; }elseif (read_graph_config_option("default_view_mode") == "2") { $_GET["action"] = "preview"; } } ?>
|
|
}?> |
||
| ">
|
|||
| \n"; } ?> | |||
| "> $graph_data_array["print_source"] = true; print trim(rrdtool_function_graph($_GET["local_graph_id"], $_GET["rra_id"], $graph_data_array)); ?> | |||