diff options
Diffstat (limited to 'scire')
-rwxr-xr-x | scire/.lib/DB_functions.php | 10 | ||||
-rwxr-xr-x | scire/.smarty/templates/assign_permission.tpl | 102 | ||||
-rw-r--r-- | scire/.smarty/templates/permissions.tpl | 14 | ||||
-rwxr-xr-x | scire/.smarty/templates/ui_permissions.tpl | 198 | ||||
-rwxr-xr-x | scire/assign_permission.php | 61 | ||||
-rwxr-xr-x | scire/client.php | 2 | ||||
-rwxr-xr-x | scire/clients.php | 4 | ||||
-rwxr-xr-x | scire/settings.php | 1 | ||||
-rwxr-xr-x | scire/ui_permissions.php | 111 | ||||
-rwxr-xr-x | scire/user.php | 4 | ||||
-rwxr-xr-x | scire/users.php | 4 |
11 files changed, 487 insertions, 24 deletions
diff --git a/scire/.lib/DB_functions.php b/scire/.lib/DB_functions.php index 7ca6175..7efca33 100755 --- a/scire/.lib/DB_functions.php +++ b/scire/.lib/DB_functions.php @@ -199,6 +199,16 @@ function get_scire_permissions() { } } +function get_scire_ui_permissions() { + global $db; + $result = $db->select('*', 'permissions', "`permcategory` = 'scire_ui'"); + if ($result && count($result) > 0) { + return $result; + } else { + return array(); + } +} + function get_scire_gli_profiles() { global $db; $result = $db->select(array('profile_name','profileid'), 'GLI_profiles'); diff --git a/scire/.smarty/templates/assign_permission.tpl b/scire/.smarty/templates/assign_permission.tpl index 3faed12..253bf00 100755 --- a/scire/.smarty/templates/assign_permission.tpl +++ b/scire/.smarty/templates/assign_permission.tpl @@ -1,5 +1,11 @@ {include file="header.tpl" title="Assign A Permission"} <form action="" method="post" name="add_permform"> +{if $Action eq "delete"} +<b>Are you absolutely SURE you want to delete this ACL?</b> +<input type="hidden" name="aclid" value="{$aclid}"> +<input type="submit" name="delete_confirm" value="Yes, that's why I clicked 'Delete', duh!"><input type="submit" name="delete_cancel" value="No wait!"> +{else} + <table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr> <td align="left" valign="top"> @@ -23,14 +29,26 @@ <td> <select name="usergroups[]" size="18" multiple="multiple"> {foreach from=$ugroups item=ugroup key=id} - <option value="{$id}">{$ugroup}</option> + <option value="{$id}" + {if isset($acl)} + {foreach from=$acl.aro_groups item=group key=groupid} + {if $id eq $group} selected {/if} + {/foreach} + {/if} + >{$ugroup}</option> {/foreach} </select> </td> <td> <select name="users[]" size="18" multiple="multiple"> {section loop=$users name=users} - <option value="{$users[users].username}">{$users[users].username}</option> + <option value="{$users[users].username}" + {if isset($acl)} + {foreach from=$acl.aro.users item=user key=key2} + {if $users[users].username eq $user} selected {/if} + {/foreach} + {/if} + >{$users[users].username}</option> {/section} </select> </td> @@ -50,18 +68,46 @@ <td> <table border="0" cellspacing="0" cellpadding="5"> <tr> + <td><label for="perm_category">Category:</label> </td> + </tr> + <tr> + <td> + <select name="perm_category"> + {foreach from=$perm_categories item=ignore key=cat} + <option value="{$cat}" + {if isset($acl)} + {foreach from=$acl.aco item=ignore key=perm_category} + {if $cat eq $perm_category} selected {/if} + {/foreach} + {/if} + >{$cat}</option> + {/foreach} + <option value="new">New (specify below)</option> + </select> + </td> + </tr> + <tr> <td><label for="perm">Permissions (choose an existing or create a new one):</label></td> </tr> <tr> <td> <select name="perm" size="7"> {foreach from=$perms item=perm key=id} - <option value="{$perm.name}">{$perm.name}</option> + <option value="{$perm.name}" + {if isset($acl)} + {foreach from=$acl.aco item=ignore key=perm_category} + {if $perm.name eq $acl.aco.$perm_category[0]} selected {/if} + {/foreach} + {/if} + >{$perm.name}</option> {/foreach} </select> </td> </tr> <tr> + <td><label for="newpermname">New Category (optional):</label><input name="newpermcat" type="text" size="20"></td> + </tr> + <tr> <td><label for="newpermname">New Permission Name:</label><input name="newpermname" type="text" size="20"></td> </tr> <tr> @@ -96,14 +142,26 @@ <td> <select name="clientgroups[]" size="18" multiple="multiple"> {foreach from=$cgroups item=cgroup key=id} - <option value="{$id}">{$cgroup}</option> + <option value="{$id}" + {if isset($acl)} + {foreach from=$acl.axo_groups item=group key=groupid} + {if $id eq $group} selected {/if} + {/foreach} + {/if} + >{$cgroup}</option> {/foreach} </select> </td> <td> <select name="clients[]" size="18" multiple="multiple"> {section loop=$clients name=clients} - <option value="{$clients[clients].hostname}">{$clients[clients].hostname}</option> + <option value="{$clients[clients].hostname}" + {if isset($acl)} + {foreach from=$acl.axo.clients item=client key=key2} + {if $clients[clients].hostname eq $client} selected {/if} + {/foreach} + {/if} + >{$clients[clients].hostname}</option> {/section} </select> </td> @@ -116,14 +174,40 @@ </td> </tr> <tr> - <td align="center"><input type="radio" name="allow" value="1" checked>Allow <input type="radio" name="allow" value="0">Deny</td> - <td align="center"><input type="checkbox" name="active" value="1" checked>Active (vs. hidden)</td> + <td align="center"><input type="radio" name="allow" value="1" + {if isset($acl)} + {if $acl.allow} checked {/if} + {else} + checked + {/if} + >Allow + <input type="radio" name="allow" value="0" + {if isset($acl)} + {if (!$acl.allow)} checked {/if} + {/if} + >Deny</td> + <td align="center"><input type="checkbox" name="active" value="1" + {if isset($acl)} + {if $acl.enabled} checked {/if} + {else} + checked + {/if} + >Active (vs. hidden)</td> <td align="right" valign="bottom"> - <label for="note">Note:</label><input type="text" name="note"> + <label for="note">Note:</label><input type="text" name="note" + {if isset($acl)} + value="{$acl.note}" + {/if} + > + {if isset($acl)} + <input type="hidden" name="editing" value="{$acl.acl_id}"> + <input type="submit" name="editperm_submit" value="Update Permission"> + {else} <input type="submit" name="addperm_submit" value="Assign Permission"> + {/if} </td> </tr> </table> - +{/if} </form> {include file="footer.tpl"} diff --git a/scire/.smarty/templates/permissions.tpl b/scire/.smarty/templates/permissions.tpl index e59f650..d6b1103 100644 --- a/scire/.smarty/templates/permissions.tpl +++ b/scire/.smarty/templates/permissions.tpl @@ -11,6 +11,7 @@ <th>{if $type eq "clients"}from User(s){else}on Client(s){/if}</th> <th width="7%">Allow/Deny</th> <th>Active</th> + <th>Actions</th> </tr> {foreach from=$acls item=acl key=k} <tr bgcolor="{cycle values="#eeeeee,#dddddd"}"> @@ -36,7 +37,11 @@ {/foreach} {/if} </td> - <td>{$acl.aco.perms[0]}</td> + <td> + {foreach from=$acl.aco item=ignore key=perm_category} + {$acl.aco.$perm_category[0]} + {/foreach} + </td> <td> {if $type eq "clients"} {if $acl.aro} <!-- we have individual users --> @@ -64,8 +69,11 @@ <td style="background-color: #DC143C">Deny</td> {/if} <td> - <input type="checkbox" name="active_{$acl.acl_id}" value="active" - {if $acl.enabled} checked {/if}> + {if $acl.enabled}Yes{else}No{/if} + </td> + <td> + <a href="assign_permission.php?Action=edit&aclid={$acl.acl_id}">Edit</a> + <a href="assign_permission.php?Action=delete&aclid={$acl.acl_id}">Delete</a> </td> </tr> {/foreach} diff --git a/scire/.smarty/templates/ui_permissions.tpl b/scire/.smarty/templates/ui_permissions.tpl new file mode 100755 index 0000000..26421d2 --- /dev/null +++ b/scire/.smarty/templates/ui_permissions.tpl @@ -0,0 +1,198 @@ +{include file="header.tpl" title="Scire User Interface Permissions"} +<form action="" method="post" name="ui_permform"> +{if $Action eq "delete"} +<b>Are you absolutely SURE you want to delete this ACL?</b> +<input type="hidden" name="aclid" value="{$aclid}"> +<input type="submit" name="delete_confirm" value="Yes, that's why I clicked 'Delete', duh!"><input type="submit" name="delete_cancel" value="No wait!"> +{elseif $Action eq "view"} +<table class="box" width="100%" border="1" cellpadding="0" cellspacing="0"> + <tr><td class="boxtitle">Scire User Interface Permissions</td></tr> + <tr><td> + + <table class="table" width="100%" border="1" cellspacing="0" cellpadding="0"> + <tr> + <th>User(s)</th> + <th>Perm. Name</th> + <th width="7%">Allow/Deny</th> + <th>Active</th> + <th>Actions</th> + </tr> + {foreach from=$acls item=acl key=k} + <tr bgcolor="{cycle values="#eeeeee,#dddddd"}"> + <td> + {if $acl.aro} <!-- we have individual users --> + {foreach from=$acl.aro.users item=user key=key2} + <font style="background-color:#A0F8FF">User: {$user}</font><br> + {/foreach} + {/if} + {foreach from=$acl.aro_groups item=group key=groupid} + <font style="background-color:#FFFACD">UserGroup: {$ugroups[$group]} </font><br> + {/foreach} + </td> + <td> + {foreach from=$acl.aco item=ignore key=perm_category} + {$acl.aco.$perm_category[0]} + {/foreach} + </td> + {if $acl.allow} + <td style="background-color: #008000">Allow</td> + {else} + <td style="background-color: #DC143C">Deny</td> + {/if} + <td> + {if $acl.enabled}Yes{else}No{/if} + </td> + <td> + <a href="ui_permissions.php?Action=edit&aclid={$acl.acl_id}">Edit</a> + <a href="ui_permissions.php?Action=delete&aclid={$acl.acl_id}">Delete</a> + </td> + </tr> + {/foreach} + + </table><hr> + </tr> + <tr> + <table><tr> + <td> + Blue = Single User/Client<br> + Tan = UserGroup/ClientGroup + </td> + <td align="right"><a href="assign_permission.php">Assign a Permission</a></td> + </tr> + </table> + </tr> + +{else} + + <table width="100%" border="0" cellspacing="0" cellpadding="5"> + <tr> + <td align="center" valign="top"> + <table class="box" width="50%" border="1" cellspacing="0" cellpadding="0"> + <tr> + <td class="boxtitle">User Selection</td> + </tr> + <tr> + <td> + <table border="0" cellspacing="0" cellpadding="5"> + <tr> + <td><label for="usergroups">Usergroups:</label></td> + <td><label for="users">Users:</label></td> + </tr> + <tr> + {if isset($get.username)} + <td>Selected User:</td> + <td><input type="hidden" name="users[]" value="{$get.username}">{$get.username}</td> + {elseif isset($get.usergroup)} + {else} + <td> + <select name="usergroups[]" size="18" multiple="multiple"> + {foreach from=$ugroups item=ugroup key=id} + <option value="{$id}" + {if isset($acl)} + {foreach from=$acl.aro_groups item=group key=groupid} + {if $id eq $group} selected {/if} + {/foreach} + {/if} + >{$ugroup}</option> + {/foreach} + </select> + </td> + <td> + <select name="users[]" size="18" multiple="multiple"> + {section loop=$users name=users} + <option value="{$users[users].username}" + {if isset($acl)} + {foreach from=$acl.aro.users item=user key=key2} + {if $users[users].username eq $user} selected {/if} + {/foreach} + {/if} + >{$users[users].username}</option> + {/section} + </select> + </td> + {/if} + </tr> + </table> + </td> + </tr> + </table> + </td> + <td align="center" valign="top"> + <table class="box" width="50%" border="1" cellspacing="0" cellpadding="0"> + <tr> + <td class="boxtitle">Permission Selection</td> + </tr> + <tr> + <td> + <table border="0" cellspacing="0" cellpadding="5"> + <tr> + <td><label for="perm">Permissions (choose an existing or create a new one):</label></td> + </tr> + <tr> + <td> + <select name="perm" size="7"> + {foreach from=$perms item=perm key=id} + <option value="{$perm.name}" + {if isset($acl)} + {foreach from=$acl.aco item=ignore key=perm_category} + {if $perm.name eq $acl.aco.$perm_category[0]} selected {/if} + {/foreach} + {/if} + >{$perm.name}</option> + {/foreach} + </select> + </td> + </tr> + <tr> + <td><label for="newpermname">New Permission Name:</label><input name="newpermname" type="text" size="20"></td> + </tr> + <tr> + <td><label for="newpermdesc">New Permission Description:</label></td> + </tr> + <tr> + <td><textarea name="newpermdesc" rows="3" cols="20"></textarea></td> + </tr> + </table> + </td> + </tr> + </table + </td> + </tr> + <tr> + <td align="center"><input type="radio" name="allow" value="1" + {if isset($acl)} + {if $acl.allow} checked {/if} + {else} + checked + {/if} + >Allow + <input type="radio" name="allow" value="0" + {if isset($acl)} + {if (!$acl.allow)} checked {/if} + {/if} + >Deny</td> + <td align="center"><input type="checkbox" name="active" value="1" + {if isset($acl)} + {if $acl.enabled} checked {/if} + {else} + checked + {/if} + >Active (vs. hidden)</td> + <td align="right" valign="bottom"> + <label for="note">Note:</label><input type="text" name="note" + {if isset($acl)} + value="{$acl.note}" + {/if} + > + {if isset($acl)} + <input type="hidden" name="editing" value="{$acl.acl_id}"> + <input type="submit" name="editperm_submit" value="Update Permission"> + {else} + <input type="submit" name="addperm_submit" value="Assign Permission"> + {/if} + </td> + </tr> +</table> +{/if} +</form> +{include file="footer.tpl"} diff --git a/scire/assign_permission.php b/scire/assign_permission.php index b944d24..c0e4826 100755 --- a/scire/assign_permission.php +++ b/scire/assign_permission.php @@ -13,17 +13,26 @@ $userid = ""; #Deal with submitted forms. ############################################### -#Adding a user to usergroups. -if ($_POST['addperm_submit']) { +#Adding a permission. +if ($_POST['addperm_submit'] or $_POST['editperm_submit']) { if ($_POST['newpermname'] and $_POST['newpermdesc']) { #Add a new permission FIXME add check of auth for this. $status = scire_add_permission($_POST['newpermname'],$_POST['newpermdesc'], $_SESSION['userid']); if ($status == 1) { $status = "Permission Addition successfull. "; } - $obj_id = $acl->add_object("perms", $_POST['newpermname'], $_POST['newpermname'], 1, 0, 'ACO'); + if ($_POST['perm_category'] == "new") { + if ($_POST['newpermcat']) { #Need to add a section + $acl->add_object_section($_POST['newpermcat'], $_POST['newpermcat'], 1, 0, 'ACO'); + $_POST['perm_category'] = $_POST['newpermcat']; + } else { #BAD user + $status .= "ERROR: No new permission category specified. Using Default"; + $_POST['perm_category'] = "Default"; + } + } + $obj_id = $acl->add_object($_POST['perm_category'], $_POST['newpermname'], $_POST['newpermname'], 1, 0, 'ACO'); $status .= "Obj id: $obj_id"; $_POST['perm'] = $_POST['newpermname']; } #Permission should exist now. - $aco_array['perms'] = array($_POST['perm']); + $aco_array[$_POST['perm_category']] = array($_POST['perm']); $aro_array = array(); $axo_array = array(); $axo_group_array = array(); @@ -44,16 +53,54 @@ if ($_POST['addperm_submit']) { $_POST['active'] = 0; } - $worked = $acl->add_acl($aco_array, $aro_array,$aro_group_array,$axo_array,$axo_group_array,$_POST['allow'],$_POST['active'],1,$_POST['note'],"system"); + if ($_POST['addperm_submit']) { + $worked = $acl->add_acl($aco_array, $aro_array,$aro_group_array,$axo_array,$axo_group_array,$_POST['allow'],$_POST['active'],1,$_POST['note'],"system"); + if($worked) { + $status .= "<br><b>Addition Successfull! $worked</b>"; + } else { + $status .= "<br><b>BAD BAD BAD $worked</b>"; + } + } else {#Edit + $worked = $acl->edit_acl($_POST['editing'],$aco_array, $aro_array,$aro_group_array,$axo_array,$axo_group_array,$_POST['allow'],$_POST['active'],1,$_POST['note'],"system"); + if($worked) { + $status .= "<br><b>Edit Successfull! $worked</b>"; + } else { + $status .= "<br><b>BAD BAD BAD $worked</b>"; + } + } + +} +############################################### +#Adding a permission. +elseif ($_POST['delete_confirm']) { + $aclid = $_POST['aclid']; + $worked = $acl->del_acl($aclid); if($worked) { - $status .= "<br><b>Addition Successfull! $worked</b>"; + $status .= "<br><b>Deletion Successfull. $worked</b>"; } else { $status .= "<br><b>BAD BAD BAD $worked</b>"; } + header('Location: ' . $baseurl . 'users.php?View=permissions'); +} +elseif ($_POST['delete_cancel']) { + header('Location: ' . $baseurl . 'users.php?View=permissions'); } -$smarty->assign('perms', get_scire_permissions()); +######################################################## +if ($_GET['Action'] == "delete") { + $smarty->assign('aclid', $_GET['aclid']); +} + +if ($_GET['aclid']) { #For Editing. Load the ACL data. + $smarty->assign('acl',$acl->get_acl($_GET['aclid'])); +} +$permissions = get_scire_permissions(); +$smarty->assign('perms', $permissions); +foreach ($permissions as $perm) { + $perm_categories[$perm['permcategory']] = 1; +} +$smarty->assign('perm_categories',$perm_categories); $smarty->assign('ugroups', $acl->format_groups($acl->sort_groups('aro'), TEXT)); $smarty->assign('cgroups', $acl->format_groups($acl->sort_groups('AXO'), TEXT)); diff --git a/scire/client.php b/scire/client.php index 5d15b21..17514b2 100755 --- a/scire/client.php +++ b/scire/client.php @@ -187,5 +187,5 @@ $smarty->assign('leftbar_menu', $leftbar_menu); $smarty->assign('Action', $_GET['Action']); $smarty->assign('status', $status); $smarty->display('client.tpl'); -pre_var_dump($_POST); +#pre_var_dump($_POST); ?> diff --git a/scire/clients.php b/scire/clients.php index f170b25..4038763 100755 --- a/scire/clients.php +++ b/scire/clients.php @@ -77,6 +77,8 @@ switch($_GET['View']) { } break; case "permissions": + $smarty->assign('leftbar_submenu_title', "Actions"); + add_leftbar($leftbar_submenu, "Assign Permission", "assign_permission.php"); $template = "permissions.tpl"; $smarty->assign('type','clients'); $ugroups = $acl->format_groups($acl->sort_groups('aro'), 'ARRAY'); @@ -148,5 +150,5 @@ $smarty->assign('View', $_GET['View']); $smarty->assign('Action', $_GET['Action']); $smarty->assign('status', $status); $smarty->display($template); -var_dump($_POST); +#var_dump($_POST); ?> diff --git a/scire/settings.php b/scire/settings.php index be9a270..1ae64cc 100755 --- a/scire/settings.php +++ b/scire/settings.php @@ -198,6 +198,7 @@ add_leftbar($leftbar_menu, "Main Settings", "settings.php"); add_leftbar($leftbar_menu, "Jobs Page", "settings.php?View=Jobs"); add_leftbar($leftbar_menu, "Clients Page", "settings.php?View=Clients"); add_leftbar($leftbar_menu, "Users Page", "settings.php?View=Users"); +add_leftbar($leftbar_menu, "UI Permissions", "ui_permissions.php"); $smarty->assign('leftbar_menu', $leftbar_menu); $smarty->assign('leftbar_submenu', $leftbar_submenu); diff --git a/scire/ui_permissions.php b/scire/ui_permissions.php new file mode 100755 index 0000000..5394a6c --- /dev/null +++ b/scire/ui_permissions.php @@ -0,0 +1,111 @@ +<?php +include('.lib/common.php'); + +$smarty->assign('leftbar', "on"); +$leftbar_menu = array(); + +add_leftbar($leftbar_menu, "««Cancel", "settings.php"); + + +$userid = ""; +$scire_ui_section = "scire_ui"; + +##################################################### +#Deal with submitted forms. + +############################################### +#Adding a permission. +if ($_POST['addperm_submit'] or $_POST['editperm_submit']) { + if ($_POST['newpermname'] and $_POST['newpermdesc']) { #Add a new permission FIXME add check of auth for this. + $status = scire_add_permission($_POST['newpermname'],$_POST['newpermdesc'], $_SESSION['userid']); + if ($status == 1) { $status = "Permission Addition successfull. "; } + $obj_id = $acl->add_object($scire_ui_section, $_POST['newpermname'], $_POST['newpermname'], 1, 0, 'ACO'); + $status .= "Obj id: $obj_id"; + $_POST['perm'] = $_POST['newpermname']; + } + #Permission should exist now. + $aco_array[$scire_ui_section] = array($_POST['perm']); + $aro_array = array(); + $axo_array = array(); + $axo_group_array = array(); + $aro_group_array = array(); +# if ($_POST['usertype'] == "usergroups") { + $aro_group_array = $_POST['usergroups']; +# } else { + $aro_array['users'] = $_POST['users']; +# } + $axo_array[$scire_ui_section] = $scire_ui_section; + + if (!$_POST['active']) { + $_POST['active'] = 0; + } + + if ($_POST['addperm_submit']) { + $worked = $acl->add_acl($aco_array, $aro_array,$aro_group_array,$axo_array,$axo_group_array,$_POST['allow'],$_POST['active'],1,$_POST['note'],"system"); + if($worked) { + $status .= "<br><b>Addition Successfull! $worked</b>"; + } else { + $status .= "<br><b>BAD BAD BAD $worked</b>"; + } + } else {#Edit + $worked = $acl->edit_acl($_POST['editing'],$aco_array, $aro_array,$aro_group_array,$axo_array,$axo_group_array,$_POST['allow'],$_POST['active'],1,$_POST['note'],"system"); + if($worked) { + $status .= "<br><b>Edit Successfull! $worked</b>"; + } else { + $status .= "<br><b>BAD BAD BAD $worked</b>"; + } + } + +} +############################################### +#Adding a permission. +elseif ($_POST['delete_confirm']) { + $aclid = $_POST['aclid']; + $worked = $acl->del_acl($aclid); + if($worked) { + $status .= "<br><b>Deletion Successfull. $worked</b>"; + } else { + $status .= "<br><b>BAD BAD BAD $worked</b>"; + } + header('Location: ' . $baseurl . 'ui_permissions.php?Action=view'); +} +elseif ($_POST['delete_cancel']) { + header('Location: ' . $baseurl . 'ui_permissions.php?Action=view'); +} + + +######################################################## +switch ($_GET['Action']) { + case "delete": + $smarty->assign('aclid', $_GET['aclid']); + break; + case "edit": + $smarty->assign('acl',$acl->get_acl($_GET['aclid'])); + break; + case "add": + $ui_permissions = get_scire_ui_permissions(); + $smarty->assign('perms', $ui_permissions); + $smarty->assign('ugroups', $acl->format_groups($acl->sort_groups('aro'), TEXT)); + break; + default: + $ugroups = $acl->format_groups($acl->sort_groups('aro'), 'ARRAY'); + $smarty->assign('ugroups', $ugroups); + break; +} + + + + + + +$users = get_scire_users('username', 'asc'); +$smarty->assign('users', $users); + + +$smarty->assign('get', $_GET); +$smarty->assign('leftbar_menu', $leftbar_menu); +$smarty->assign('Action', $_GET['Action']); +$smarty->assign('status', $status); +$smarty->display('ui_permissions.tpl'); +#pre_var_dump($_POST); +?> diff --git a/scire/user.php b/scire/user.php index 407aa28..a43742a 100755 --- a/scire/user.php +++ b/scire/user.php @@ -109,7 +109,7 @@ switch($_GET['Action']) { $smarty->assign('gacl_userid', $_GET['gacl_userid']); $ingroups = array(); $ingroups = $acl->get_object_groups($_GET['gacl_userid'],'ARO'); - var_dump($ingroups); + #var_dump($ingroups); $smarty->assign('ingroups', $ingroups); case "create": $smarty->assign('desc', "Add a user."); @@ -172,5 +172,5 @@ $smarty->assign('leftbar_menu', $leftbar_menu); $smarty->assign('Action', $_GET['Action']); $smarty->assign('status', $status); $smarty->display('user.tpl'); -var_dump($_POST); +#var_dump($_POST); ?> diff --git a/scire/users.php b/scire/users.php index d2ce18b..8c40a31 100755 --- a/scire/users.php +++ b/scire/users.php @@ -72,6 +72,8 @@ switch($_GET['View']) { } break; case "permissions": + $smarty->assign('leftbar_submenu_title', "Actions"); + add_leftbar($leftbar_submenu, "Assign Permission", "assign_permission.php"); $template = "permissions.tpl"; $smarty->assign('type','users'); $ugroups = $acl->format_groups($acl->sort_groups('aro'), 'ARRAY'); @@ -142,5 +144,5 @@ $smarty->assign('View', $_GET['View']); $smarty->assign('Action', $_GET['Action']); $smarty->assign('status', $status); $smarty->display($template); -var_dump($_POST); +#var_dump($_POST); ?> |