Beispiel #1
0
function disError($msg, $web = false)
{
    if ($web) {
        jsCtrl::Alert($msg);
        jsCtrl::back();
    } else {
        $re['success'] = false;
        $re['errors']['msg'] = $msg;
        dis($re);
    }
    exit;
}
 function errMsg($str = '對不起您沒有該操作的權限')
 {
     jsCtrl::Alert($str);
     exit;
 }
function redirect($url)
{
    @header('Location :' . $url);
    jsCtrl::Location($url);
    exit;
}