Example #1
0
<?php

// Get dynamically the path to the current script
$path = rtrim(realpath(dirname(__FILE__)), '/');
require_once $path . '/config.php';
require_once $path . '/sso.php';
// Need to check whether a user is already logged in
$userId = isset($_SESSION['user_id']) ? $_SESSION['user_id'] : null;
$action = isset($_GET['action']) ? trim($_GET['action']) : null;
$userData = SSO::checkResponse();
if ($userData !== false) {
    $userId = $userData['oracle_guid'];
    $_SESSION['user_id'] = $userId;
}
?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js" lang="en">           <![endif]-->
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>Oracle Enterprise Project Portfolio Management</title>
        <meta name="author" content="">
        <meta name="description" content="">
        <meta name="keywords" content="">
        <meta name="viewport" content="width=device-width,initial-scale=1">

        <link href="<?php