コード例 #1
0
ファイル: Registry.php プロジェクト: jthurteau/saf
 protected static function _init()
 {
     if (is_null(self::$_singleton)) {
         self::$_singleton = new Saf_Registry();
     }
     if (is_null(self::$_configuration)) {
         self::$_configuration = array(FACET_ROOT => array(), 'response' => array(), 'get' => $_GET, 'post' => $_POST, 'request' => $_REQUEST, 'session' => &$_SESSION, 'auth' => array());
     }
 }
コード例 #2
0
ファイル: Auth.php プロジェクト: jthurteau/saf
 public static function logoutLocally()
 {
     if (array_key_exists('username', $_SESSION)) {
         unset($_SESSION['username']);
     }
     Saf_Registry::cleanSession();
 }