示例#1
0
 public function execute()
 {
     Sso_PhpCas::logout();
     echo "SUCCESS!";
 }
示例#2
0
文件: index.php 项目: WayWingsDev/mis
<?php

/**
 * @name index
 * @desc 入口文件
 * @author 符广森(fuguangsen@baidu.com)
 */
define('CAS_CALLBACK_SERVER', 'mis.navi.baidu.com');
$objApplication = Bd_Init::init();
Session_Factory::init();
if ($_GET['logout']) {
    Sso_PhpCas::logout();
} else {
    //忽略登录验证
    if ($_GET["ignoreLogin"] == 1 || $_POST["ignoreLogin"] == 1) {
        $username = "";
    } else {
        $username = Sso_PhpCas::login();
    }
    define('CURRENT_USER', $username);
}
$objResponse = $objApplication->bootstrap()->run();