case 'group_sync':
     changeItem('#__community_acl_groups', $cid, 1);
     break;
 case 'group_unsync':
     changeItem('#__community_acl_groups', $cid, 0);
     break;
     ##-- ROLES --------------
 ##-- ROLES --------------
 case 'list_roles':
     showRoles($option);
     break;
 case 'role_add':
     editRole(false);
     break;
 case 'role_edit':
     editRole(true);
     break;
 case 'role_save':
 case 'role_apply':
     saveRole();
     break;
 case 'role_orderup':
     orderItem('#__community_acl_roles', 'group_id', $cid[0], -1);
     break;
 case 'role_orderdown':
     orderItem('#__community_acl_roles', 'group_id', $cid[0], 1);
     break;
 case 'role_saveorder':
     saveOrder($cid, '#__community_acl_roles', 'group_id');
     break;
 case 'role_publish':
Exemplo n.º 2
0
}
switch ($op) {
    case "addRole":
        addRole();
        break;
    case "clearOrphanedStaff":
        clearOrphanedStaff();
        break;
    case "clearRoles":
        clearRoles();
        break;
    case "customDept":
        customDept();
        break;
    case "editRole":
        editRole();
        break;
    case "editStaff":
        editStaff();
        break;
    case "manageStaff":
        manageStaff();
        break;
    default:
        header("Location: " . XHELP_BASE_URL . "/admin/index.php");
        break;
}
function addRole()
{
    require_once XHELP_CLASS_PATH . '/session.php';
    $_xhelpSession = new Session();