コード例 #1
0
ファイル: default.class.php プロジェクト: oxmcvusd/nowboard
 function __construct()
 {
     parent::__construct();
     if (strtolower(g('a')) != 'api') {
         session_start();
     }
 }
コード例 #2
0
ファイル: user.class.php プロジェクト: vehery/brandNewiCYL
 function __construct()
 {
     // 载入默认的
     parent::__construct();
     if (g('a') != 'get_token' && g('a') != 'register') {
         $this->check_token();
     }
 }
コード例 #3
0
ファイル: api.class.php プロジェクト: xianliflc/teamirr
 function __construct()
 {
     parent::__construct();
     apply_filter('API_' . g('a') . '_INPUT_FILTER');
     $not_check = array('user_sign_up', 'user_get_token');
     $not_check = apply_filter('API_LOGIN_ACTION_FILTER', $not_check);
     if (!in_array(g('a'), $not_check)) {
         $this->check_token();
     }
 }
コード例 #4
0
ファイル: default.class.php プロジェクト: jfojfo/LazyREST
 function __construct()
 {
     // 载入默认的
     parent::__construct();
     if (g('a') != 'login' && g('a') != 'login_check' && g('a') != 'install') {
         if (!is_login()) {
             info_page('<a href="?a=login">请先登入</a>');
             exit;
         }
     }
 }
コード例 #5
0
 /**
  * 
  * @param array $main
  */
 public static function begin($main)
 {
     self::$module = $main['config']['default'];
     if (isset($main['config']['modules'])) {
         if (isset($main['config']['modules'][Url::segment(1)])) {
             $class = new $main['config']['modules'][Url::segment(1)]['class']();
             self::$namespace_module = $class->begin();
         } else {
             $class = new $main['config']['modules'][self::$module]['class']();
             self::$namespace_module = $class->begin();
         }
     }
     return new Controller();
 }
コード例 #6
0
ファイル: pluglist.class.php プロジェクト: xianliflc/teamirr
 function __construct()
 {
     parent::__construct();
     $this->check_login();
 }
コード例 #7
0
ファイル: default.class.php プロジェクト: yongshliu/LazyPHP
 function __construct()
 {
     parent::__construct();
 }
コード例 #8
0
ファイル: weibo.class.php プロジェクト: oxmcvusd/nowboard
 function __construct()
 {
     parent::__construct();
     include 'saetv2.ex.class.php';
     session_start();
 }
コード例 #9
0
ファイル: folder.class.php プロジェクト: adamchau/teamdisk
 function __construct()
 {
     // 载入默认的
     parent::__construct();
     session_start();
 }
コード例 #10
0
 function __construct()
 {
     parent::__construct();
     if_login();
 }
コード例 #11
0
ファイル: login.class.php プロジェクト: adamchau/teamdisk
 function __construct()
 {
     // 载入默认的
     parent::__construct();
 }
コード例 #12
0
 * @author    Bashar Al-Fallouji <*****@*****.**>
 * @copyright 2009 Bashar Al-Fallouji <*****@*****.**>
 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD License
 * @since     File available since Release 1.0.0
 */
include "lib/codeCompare.php";
include "lib/textUI.php";
include "lib/appController.php";
// Display header message
textUI::displayHeader();
// Check if enough parameters were passed
if ($_SERVER['argc'] < 3) {
    textUI::displayHelp();
    die;
}
$params = appController::parseParameters($_SERVER['argv']);
// Parse folders
$results[] = codeCompare::parseFolder($_SERVER['argv'][1]);
$results[] = codeCompare::parseFolder($_SERVER['argv'][2]);
// Verbose mode, display everything
if (isset($params['all'])) {
    appController::compareAll($results);
}
// Compare classes from FolderA with FolderB
if (isset($params['classes'])) {
    appController::compareClasses($results);
}
// Compare methods and parameters
if (isset($params['methods'])) {
    appController::compareMethods($results, $_SERVER['argv'][1], $_SERVER['argv'][2]);
}
コード例 #13
0
ファイル: api.class.php プロジェクト: Flyu/voting4wechat
 function __construct()
 {
     parent::__construct();
     //$this->check_token();
 }