Inheritance: extends YagePlugin
コード例 #1
0
ファイル: SimpleSAMLPHP.php プロジェクト: SkylarKelty/Rapid
 /**
  * Logout page hook.
  * For compatibility with other Auth methods.
  */
 public function logout($redirect)
 {
     if ($this->logged_in()) {
         $this->_saml->logout();
         return true;
     }
     parent::logout($redirect);
 }
コード例 #2
0
ファイル: LDAPAuthPlugin.inc.php プロジェクト: yuricampos/ojs
 /**
  * Called as a plugin is registered to the registry
  * @param $category String Name of category plugin was registered to
  * @return boolean True iff plugin initialized successfully; if false,
  * 	the plugin will not be registered.
  */
 function register($category, $path)
 {
     $success = parent::register($category, $path);
     $this->addLocaleData();
     return $success;
 }
コード例 #3
0
ファイル: Auth.php プロジェクト: hzh123/my_yaf
 public function goLoginWithBackUrl()
 {
     $back = $_SERVER['REQUEST_URI'];
     //        $toUrl = "/login?auto=login&back=" . urlencode($back);
     $toUrl = "/login";
     AuthPlugin::headerLocation($toUrl);
 }