">
User Management [edit]", "98%", $colors["header"], "3", "center", ""); draw_user_form_select(); end_box(); } if ($graph_policy == "1") { $graph_policy_text = "Select the graphs you want to DENY this user from."; } elseif ($graph_policy == "2") { $graph_policy_text = "Select the graphs you want ALLOW this user to view."; } start_box($graph_policy_text, "98%", $colors["header"], "3", "center", ""); $graphs = db_fetch_assoc("select user_auth_graph.user_id, graph_templates_graph.local_graph_id, graph_templates_graph.title from graph_templates_graph left join user_auth_graph on (graph_templates_graph.local_graph_id=user_auth_graph.local_graph_id and user_auth_graph.user_id=" . $_GET["id"] . ") where graph_templates_graph.local_graph_id > 0 order by graph_templates_graph.title"); $rows = sizeof($graphs); ?>
0) { foreach ($graphs as $graph) { if ($graph["user_id"] == "") { $old_value = ""; }else{ $old_value = "on"; } $column1 = floor(($rows / 2) + ($rows % 2)); if ($i == $column1) { print ""; } form_base_checkbox("graph".$graph["id"], $old_value, $graph["title"],"",true); $i++; } } ?>
User Management [edit]", "98%", $colors["header"], "3", "center", ""); draw_user_form_select(); end_box(); } print "
\n"; start_box("", "98%", $colors["header"], "3", "center", ""); if (sizeof($tabs_graphs) > 0) { foreach (array_keys($tabs_graphs) as $tab_short_name) { ?> "> 0) { foreach (array_keys($settings_graphs) as $setting) { /* make sure to skip group members here; only parents are allowed */ if (($settings_graphs[$setting]["method"] != "internal") && ($settings_graphs[$setting]["tab"] == $tab_short_name)) { ++$i; form_alternate_row_color($colors["form_alternate1"],$colors["form_alternate2"],$i); /* draw the acual header and textbox on the form */ form_item_label($settings_graphs[$setting]["friendly_name"],$settings_graphs[$setting]["description"]); $current_value = db_fetch_cell("select value from settings_graphs where name='$setting' and user_id=" . $_GET["id"]); /* choose what kind of item this is */ switch ($settings_graphs[$setting]["method"]) { case 'textbox': form_text_box($setting,$current_value,$settings_graphs[$setting]["default"],""); print "\n"; break; } } } } } } end_box(); form_hidden_id("user_id",$_GET["id"]); form_hidden_box("save_component_graph_config","1",""); start_box("", "98%", $colors["header"], "3", "center", ""); ?>
'" . db_fetch_cell("select username from user where id=" . $_GET["id"]) . "'?", getenv("HTTP_REFERER"), "user_admin.php?action=user_remove&id=" . $_GET["id"]); include ('include/bottom_footer.php'); exit; } if ((read_config_option("remove_verification") == "") || ($_GET["confirm"] == "yes")) { db_execute("delete from user where id=" . $_GET["id"]); db_execute("delete from user_auth_realm where user_id=" . $_GET["id"]); db_execute("delete from user_auth_hosts where user_id=" . $_GET["id"]); db_execute("delete from user_auth_graph where user_id=" . $_GET["id"]); db_execute("delete from user_auth_tree where user_id=" . $_GET["id"]); db_execute("delete from settings_graphs where user_id=" . $_GET["id"]); } } function user_edit() { global $colors, $config; if (isset($_GET["id"])) { $user = db_fetch_row("select * from user where id=" . $_GET["id"]); }else{ unset($user); } if (read_config_option("full_view_user_admin") == "") { start_box("User Management [edit]", "98%", $colors["header"], "3", "center", ""); draw_user_form_select(); end_box(); } start_box("User Configuration", "98%", $colors["header"], "3", "center", ""); ?>
User Name
Full Name
Password

Account Options
Graph Options
Default Policy
The default allow/deny graph policy for this user. "Allow", 2 => "Deny"); form_dropdown("graph_policy",$graph_policy,"","",$user["graph_policy"],"",""); ?> Login Options
What to do when this user logs in.
0) { foreach ($realms as $realm) { if ($realm["user_id"] == "") { $old_value = ""; }else{ $old_value = "on"; } $column1 = floor((sizeof($realms) / 2) + (sizeof($realms) % 2)); if ($i == $column1) { print ""; } form_base_checkbox("section".$realm["id"], $old_value, $realm["name"],"",true); $i++; } } ?>
User Management", "98%", $colors["header"], "3", "center", "user_admin.php?action=user_edit"); print ""; DrawMatrixHeaderItem("User Name",$colors["header_text"],1); DrawMatrixHeaderItem("Full Name",$colors["header_text"],1); DrawMatrixHeaderItem("Default Graph Policy",$colors["header_text"],2); print ""; $user_list = db_fetch_assoc("select id,username,full_name,graph_policy from user order by username"); if (sizeof($user_list) > 0) { foreach ($user_list as $user) { form_alternate_row_color($colors["alternate"],$colors["light"],$i); ?> "> ">Delete