extranet/www/pages/logout.php

35 lines
1.1 KiB
PHP
Raw Normal View History

<?
// $url_connexion=SITEINST_URL1;
$url_connexion = $_SESSION['tabInfo']['referer_login'];
$firephp->log($url_connexion, 'url_connexion');
if ($url_connexion=='')
$url_connexion=$_SERVER['HTTP_REFERER'];
elseif ($url_connexion<>SITEINST_URL1 &&
$url_connexion<>SITEINST_URL2 &&
$url_connexion<>'http://www2.scores-decisions.com/extranet/')
$url_connexion=SITEINST_URL1;
$firephp->log($url_connexion, 'url_connexion');
//$_SESSION['connected'] = false;
//$_SESSION['tabInfo'] = array();
unset($_SESSION);
if (!isset($refresh)) $refresh=0;
if (!isset($message)) $message="Vous avez <20>t<EFBFBD> d<>connect<63> de l'extranet";
?>
<html>
<head>
<title>Extranet Scores &amp; D<EFBFBD>cisions</title>
<meta HTTP-EQUIV="Refresh" CONTENT="<?=$refresh?>; URL=<?=$url_connexion?>" />
</head>
<body>
<h4 class="logout"><?=$message?></h4>
<h5 class="logout">Si cette page ne disparait pas au bout de <?=$refresh?> seconde(s), veuillez cliquer <a href="<?=$url_connexion?>">ici</a></h5><br/>
<h5 class="logout">Sinon cliquer <a href="<?=SITEINST_URL1?>">ici</a> pour atteindre la page d'accueil du site de Scores &amp; D&eacute;cisions</h5>
</body>
</html>
<?
die();
?>