![]() |
|---|
| [ Index ] |
Source Code Reference for V1.00 |
[Summary view] [Print] [Text view]
1 <?php /* $Id: do_syskey_aed.php 102 2008-03-18 19:52:59Z pedroix $ $URL: https://web2project.svn.sourceforge.net/svnroot/web2project/trunk/modules/system/syskeys/do_syskey_aed.php $ */ 2 if (!defined('W2P_BASE_DIR')) { 3 die('You should not access this file directly.'); 4 } 5 6 // check permissions 7 $perms = &$AppUI->acl(); 8 if (!$perms->checkModule('system', 'edit')) { 9 $AppUI->redirect('m=public&a=access_denied'); 10 } 11 12 $del = isset($_POST['del']) ? $_POST['del'] : 0; 13 14 $obj = new CSysKey(); 15 16 if (!$obj->bind($_POST)) { 17 $AppUI->setMsg($obj->getError(), UI_MSG_ERROR); 18 $AppUI->redirect(); 19 } 20 21 $AppUI->setMsg('System Lookup Keys', UI_MSG_ALERT); 22 if ($del) { 23 if (($msg = $obj->delete())) { 24 $AppUI->setMsg($msg, UI_MSG_ERROR); 25 } else { 26 $AppUI->setMsg('deleted', UI_MSG_ALERT, true); 27 } 28 } else { 29 if (($msg = $obj->store())) { 30 $AppUI->setMsg($msg, UI_MSG_ERROR); 31 } else { 32 $AppUI->setMsg($_POST['syskey_id'] ? 'updated' : 'inserted', UI_MSG_OK, true); 33 } 34 } 35 $AppUI->redirect('m=system&u=syskeys&a=keys'); 36 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jan 8 03:00:03 2009 | Cross-referenced by PHPXref 0.7 |