/* +-------------------------------------------------------------------------+ | 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 = "User Administration"; include ('include/auth.php'); include_once ("include/form.php"); include ("include/config_settings.php"); switch ($_REQUEST["action"]) { case 'save': $redirect_location = form_save(); header ("Location: $redirect_location"); exit; break; case 'user_remove': user_remove(); header ("Location: user_auth.php"); break; case 'graph_config_edit': include_once ("include/top_header.php"); graph_config_edit(); include_once ("include/bottom_footer.php"); break; case 'graph_perms_edit': include_once ("include/top_header.php"); graph_perms_edit(); include_once ("include/bottom_footer.php"); break; case 'user_edit': include_once ("include/top_header.php"); user_edit(); include_once ("include/bottom_footer.php"); break; default: include_once ("include/top_header.php"); user(); include_once ("include/bottom_footer.php"); break; } /* -------------------------- Global Form Functions -------------------------- */ function draw_user_form_select() { global $colors; ?>