User Management [edit]", "", ""); 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", "", ""); $graphs = db_fetch_assoc("select ag.UserID, g.ID, g.Title from rrd_graph g left join auth_graph ag on (g.id=ag.graphid and ag.userid=$args[id]) order by g.title"); $rows = sizeof($graphs); ?>
0) { foreach ($graphs as $graph) { if ($graph[UserID] == "") { $old_value = ""; }else{ $old_value = "on"; } $column1 = floor(($rows / 2) + ($rows % 2)); if ($i == $column1) { print ""; } DrawStrippedFormItemCheckBox("graph".$graph[ID], $old_value, $graph[Title],"",true); $i++; } } ?>
User Management [edit]", "", ""); draw_user_form_select(); end_box(); } start_box("Graph Preview Settings", "", ""); ?>
Height
The height of graphs created in preview mode. Width
The width of graphs created in preview mode. Timespan
The amount of time to represent on a graph created in preview mode (0 uses auto). Default RRA
The default RRA to use when displaying graphs in preview mode. Columns
The number of columns to display graphs in using preview mode. Page Refresh
The number of seconds between automatic page refreshes. Hierarchical Settings Default Graph Hierarchy
The default graph hierarchy to use when displaying graphs in tree mode. View Settings
Options that govern how the graphs are displayed.
'" . db_fetch_cell("select Username from auth_users where id=$args[id]") . "'?", getenv("HTTP_REFERER"), "user_admin.php?action=user_remove&id=$args[id]"); include ('include/bottom_footer.php'); exit; } if (($config["remove_verification"]["value"] == "") || ($args[confirm] == "yes")) { db_execute("delete from auth_users where id=$args[id]"); db_execute("delete from auth_acl where userid=$args[id]"); db_execute("delete from auth_hosts where userid=$args[id]"); db_execute("delete from auth_graph where userid=$args[id]"); db_execute("delete from auth_graph_hierarchy where userid=$args[id]"); db_execute("delete from settings_graphs where userid=$args[id]"); db_execute("delete from settings_viewing_tree where userid=$args[id]"); db_execute("delete from settings_graph_tree where userid=$args[id]"); db_execute("delete from settings_ds_tree where userid=$args[id]"); } } function user_edit() { global $args, $colors, $config; if (isset($args[id])) { $user = db_fetch_row("select * from auth_users where id=$args[id]"); }else{ unset($user); } if ($config[full_view_user_admin][value] == "") { start_box("User Management [edit]", "", ""); draw_user_form_select(); end_box(); } start_box("User Configuration", "", ""); ?>
User Name
Full Name
Password

Account Options
Graph Options
Default Policy
The default allow/deny graph policy for this user. Login Options
What to do when this user logs in.
0) { foreach ($sections as $section) { if ($section[UserID] == "") { $old_value = ""; }else{ $old_value = "on"; } $column1 = floor(($rows / 2) + ($rows % 2)); if ($i == $column1) { print ""; } DrawStrippedFormItemCheckBox("section".$section[ID], $old_value, $section[Section],"",true); $i++; } } ?>
User Management", "", "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,FullName,GraphPolicy from auth_users order by Username"); if (sizeof($user_list) > 0) { foreach ($user_list as $user) { DrawMatrixRowAlternateColorBegin($colors[alternate],$colors[light],$i); ?> Delete