Example #1
0
 /**
  * 权限检测
  * @param $authz 权限检查
  */
 function actionCheck($authz)
 {
     if (!check_authz($authz)) {
         echo "{success:false,msg:'您没有此操作的权限,请联系系统管理员!'}";
         exit;
     } else {
         return true;
     }
 }
Example #2
0
/**
 * 检查管理员权限,返回JSON格式数剧
 *
 * @access  public
 * @param   string  $authz
 * @return  void
 */
function check_authz_json($authz)
{
    if (!check_authz($authz)) {
        make_json_error($GLOBALS['_LANG']['priv_error']);
    }
}
Example #3
0
/**
 * 检查管理员权限,返回JSON格式数剧
 *
 * @access public
 * @param string $authz            
 * @return void
 */
function check_authz_json($authz)
{
    if (!check_authz($authz)) {
        make_json_error(L('priv_error'));
    }
}
Example #4
0
/**
 * 检查管理员权限,返回JSON格式数剧
 *
 * @access  public
 * @param   string  $authz
 * @return  void
 */
function check_authz_json($authz)
{
    if (!check_authz($authz)) {
        make_json_error('无此权限!');
    }
}