exit; } global $current_action; $current_action = 'edit'; if (isset($_POST['update'])) { if (do_edit('group', $_POST, $_GET['id'])) { global $edited; $edited = 1; MAD_Admin_Redirect::redirect('edit_group.php?edited=1&id=' . $_GET['id'] . ''); } else { global $edited; $edited = 2; } } if ($edited != 2) { $editdata = get_group_detail($_GET['id']); } require_once MAD_PATH . '/www/cp/templates/header.tpl.php'; ?> <div id="content"> <div id="contentHeader"> <h1>Edit Group</h1> </div> <!-- #contentHeader --> <div class="container"> <div class="grid-24">
if (edit_permissions($_GET['type'], $_POST, $_GET['id'])) { global $edited; $edited = 1; MAD_Admin_Redirect::redirect('permission_management.php?edited=1&id=' . $_GET['id'] . '&type=' . $_GET['type'] . ''); } else { global $edited; $edited = 2; } } if ($edited != 2) { $editdata = get_permissions($_GET['type'], $_GET['id']); } switch ($_GET['type']) { case 'group': $tt = 'Group'; $group_detail = get_group_detail($_GET['id']); $tt_det = $group_detail['group_name']; break; case 'user': $tt = 'User'; $usr_detail = get_user_detail($_GET['id']); $tt_det = $usr_detail['first_name'] . ' ' . $usr_detail['last_name']; break; } require_once MAD_PATH . '/www/cp/templates/header.tpl.php'; ?> <div id="content"> <div id="contentHeader"> <h1>Manage Permissions</h1>