if(!isset($GLOBALS["errors"]) && !isset($GLOBALS["warnings"]) ) {
if(isset($_REQUEST['logout_from_cas'])){
session_start();
session_destroy();
session_unset();
$_SESSION=array();
exit();
}
require_once("./includes/php/db.inc.php");
require_once("./includes/php/commons.inc.php");
require_once("./includes/php/CAS/CAS.php");
if(isset($_REQUEST["action"])) {
$action = $_REQUEST["action"];
require("./includes/php/" . $action . ".inc.php");
exit(0);
}
phpCAS::setDebug();
phpCAS::client(CAS_VERSION_2_0,'id.ist.utl.pt',443,'/cas');
phpCAS::forceAuthentication();
$user = phpCAS::getUser();
$_POST['utilizador'] = $user;
redirectCAS(NULL,NULL, "login");
exit;
} else {
//if (!isset($GLOBALS["errors"])) $GLOBALS["errors"]) = $_GET['erros'];
if(isset($_REQUEST["action"])) {
$action = $_REQUEST["action"];
require("./includes/php/" . $action . ".inc.php");
exit(0);
}
?>
Pode consultar a listagem das confirmações submetidas.
exit; } ?>