![]() |
|---|
| [ Index ] |
Source Code Reference for V1.00 |
[Summary view] [Print] [Text view]
1 <?php /* $Id: do_perms_aed.php 38 2008-02-11 11:38:51Z pedroix $ $URL: https://web2project.svn.sourceforge.net/svnroot/web2project/trunk/modules/admin/do_perms_aed.php $ */ 2 if (!defined('W2P_BASE_DIR')) { 3 die('You should not access this file directly.'); 4 } 5 6 $del = isset($_POST['del']) ? $_POST['del'] : 0; 7 8 $perms = &$AppUI->acl(); 9 if (!$perms->checkModule('admin', 'edit')) { 10 $AppUI->redirect('m=public&a=access_denied'); 11 } 12 if (!$perms->checkModule('users', 'edit')) { 13 $AppUI->redirect('m=public&a=access_denied'); 14 } 15 16 $obj = &$AppUI->acl(); 17 18 $AppUI->setMsg('Permission'); 19 if ($del) { 20 if ($obj->del_acl($_REQUEST['permission_id'])) { 21 $AppUI->setMsg('deleted', UI_MSG_ALERT, true); 22 $obj->recalcPermissions(null, $_POST['permission_user']); 23 $AppUI->redirect(); 24 } else { 25 $AppUI->setMsg($msg, UI_MSG_ERROR); 26 $AppUI->redirect(); 27 } 28 } else { 29 if ($obj->addUserPermission()) { 30 $AppUI->setMsg($isNotNew ? 'updated' : 'added', UI_MSG_OK, true); 31 } else { 32 $AppUI->setMsg($msg, UI_MSG_ERROR); 33 } 34 $AppUI->redirect(); 35 } 36 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jan 7 03:00:01 2009 | Cross-referenced by PHPXref 0.7 |