do_role_aed.php

来自「一个基于web的开源项目管理工具」· PHP 代码 · 共 31 行

PHP
31
字号
<?php /* ROLES $Id: do_role_aed.php,v 1.2.10.2 2007/03/06 00:34:44 merlinyoda Exp $ */if (!defined('DP_BASE_DIR')){  die('You should not access this file directly.');}$del = isset($_POST['del']) ? $_POST['del'] : 0;$role =& new CRole();if (($msg = $role->bind( $_POST ))) {	$AppUI->setMsg( $msg, UI_MSG_ERROR );	$AppUI->redirect();}if ($del) {	if (($msg = $role->delete())) {		$AppUI->setMsg( $msg, UI_MSG_ERROR );	} else {		$AppUI->setMsg( "Role deleted", UI_MSG_ALERT );	}} else {	if (($msg = $role->store())) {		$AppUI->setMsg( $msg, UI_MSG_ERROR );	} else {		$isNotNew = @$_POST['role_id'];		$AppUI->setMsg( "Role ".($isNotNew ? 'updated' : 'inserted'), UI_MSG_OK );	}}$AppUI->redirect( "m=system&u=roles" );?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?