function __construct() { parent::__construct(); if (strtolower(g('a')) != 'api') { session_start(); } }
function __construct() { // 载入默认的 parent::__construct(); if (g('a') != 'get_token' && g('a') != 'register') { $this->check_token(); } }
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(); } }
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; } } }
/** * * @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(); }
function __construct() { parent::__construct(); $this->check_login(); }
function __construct() { parent::__construct(); }
function __construct() { parent::__construct(); include 'saetv2.ex.class.php'; session_start(); }
function __construct() { // 载入默认的 parent::__construct(); session_start(); }
function __construct() { parent::__construct(); if_login(); }
function __construct() { // 载入默认的 parent::__construct(); }
* @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]); }
function __construct() { parent::__construct(); //$this->check_token(); }