コード例 #1
0
ファイル: auth.php プロジェクト: houlonglong/easytee-me
 static function redirect_login_page($redirect = '')
 {
     $url = '/user/auth/login';
     if (PtLib\is_xhr()) {
         PtLib\json_response('', 1, "请先登陆", $url);
     } else {
         $redirect = empty($redirect) ? PtApp::current_url() : $redirect;
         PtLib\location("/user/auth/login?redirect=" . urldecode($redirect));
     }
 }
コード例 #2
0
ファイル: PtApp.php プロジェクト: houlonglong/easytee-me
 static function _location($url = "/")
 {
     PtLib\location($url);
 }
コード例 #3
0
ファイル: index.php プロジェクト: houlonglong/easytee-me
<?php

PtLib\location("/user/activity/index");