Passwords do not match! Please retype."); } else{ DrawFormItem("Password",""); } DrawFormItemPasswordTextBox("Password","","",""); DrawFormItemPasswordTextBox("Confirm","","",""); DrawFormItem("Account Options",""); DrawFormItemCheckBox("MustChangePassword",$user[MustChangePassword],"User Must Change Password at Next Login",""); DrawFormItemCheckBox("GraphSettings",$user[GraphSettings],"Allow this User to Keep Custom Graph Settings","on"); DrawFormItem("Graph Options",""); DrawFormItemCheckBox("ShowTree",$user[ShowTree],"User Has Rights to View Tree Mode","on"); DrawFormItemCheckBox("ShowList",$user[ShowList],"User Has Rights to View List Mode","on"); DrawFormItemCheckBox("ShowPreview",$user[ShowPreview],"User Has Rights to View Preview Mode","on"); DrawFormItem("Default Policy","The default allow/deny graph policy for this user (changing this value will clear the current graph permissions for this user)."); DrawFormItemDropDownCustomHeader("GraphPolicy"); DrawFormItemDropDownCustomItem("GraphPolicy","1","Allow",$user[GraphPolicy]); DrawFormItemDropDownCustomItem("GraphPolicy","2","Deny",$user[GraphPolicy]); DrawFormItemDropDownCustomFooter(); DrawFormItem("Login","What to do when this user logs in."); DrawFormItemRadioButton("LoginOpts", $user[LoginOpts], "1", "Show the page that user pointed their browser to.","1"); DrawFormItemRadioButton("LoginOpts", $user[LoginOpts], "2", "Show the default console screen.","1"); DrawFormItemRadioButton("LoginOpts", $user[LoginOpts], "3", "Show the default graph screen.","1"); DrawFormSaveButton(); DrawFormItemHiddenIDField("ID",$id); DrawFormItemHiddenTextBox("OldPass",$pass,""); DrawFormFooter(); break; default: include_once ("include/top_header.php"); DrawMatrixTableBegin(false); DrawMatrixRowBegin(); DrawMatrixHeaderTop("Current Users",$colors[dark_bar],$colors[panel_text],"5"); DrawMatrixHeaderAdd($colors[dark_bar],"",""); DrawMatrixRowEnd(); DrawMatrixRowBegin(); DrawMatrixHeaderItem("User Name",$colors[panel],$colors[panel_text]); DrawMatrixHeaderItem("Full Name",$colors[panel],$colors[panel_text]); DrawMatrixHeaderItem("Realm Security",$colors[panel],$colors[panel_text]); DrawMatrixHeaderItem("IP Security",$colors[panel],$colors[panel_text]); DrawMatrixHeaderItem("Graph Permissions",$colors[panel],$colors[panel_text]); DrawMatrixHeaderItem("",$colors[panel],$colors[panel_text]); DrawMatrixRowEnd(); $users = db_fetch_assoc("select * from auth_users order by username"); $rows = sizeof($users); $i = 0; if (sizeof($users) > 0) { foreach ($users as $user) { DrawMatrixRowAlternateColorBegin($colors[alternate],$colors[light],$i); DrawMatrixLoopItem($user[Username],html_boolean($config["vis_main_column_bold"]["value"]),"$PHP_SELF?action=edit&id=$user[ID]"); DrawMatrixLoopItem($user[FullName],false,""); DrawMatrixLoopItem("Allowed Sections",false,"user_admin_permissions.php?id=$user[ID]"); DrawMatrixLoopItem("IP Security",false,"user_admin_ip.php?id=$user[ID]"); DrawMatrixLoopItem("Graph Permissions",false,"user_admin_graphs.php?id=$user[ID]"); DrawMatrixLoopItemAction("Remove",$colors[panel],"",false,"$PHP_SELF?action=delete&id=$user[ID]"); DrawMatrixRowEnd(); $i++; } } DrawMatrixTableEnd(); DrawBodyFooter(true); break; } ?>