--- a/web/logout.php Mon Nov 25 22:28:08 2013 +0100
+++ b/web/logout.php Tue Nov 26 01:18:39 2013 +0100
@@ -1,76 +1,5 @@
<?php
include_once 'common.php';
logout();
-
-$data = authenticate($C_event_users, $translate);
-
-$dest_url = URL_ROOT;
-
-if(isset($data) && !isset($data['error']) && isset($data['name']) && !empty($data['name'])) {
- $dest_url = URL_ROOT."/event_form.php";
-}
-
-?>
-<!DOCTYPE html>
-<html lang="<?php echo($actual); ?>">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>Polemic Tweet — logout</title>
- <meta http-equiv="X-UA-Compatible" content="IE=9" />
- <meta http-equiv="refresh" content="1;url=<?php echo($dest_url);?>">
-
- <!-- FONT -->
- <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
- <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
-
- <!-- CSS -->
- <link rel="stylesheet" href="<?php echo(registry_url('blueprint-screen','css'));?>" type="text/css" media="screen, projection"/>
- <link rel="stylesheet" href="<?php echo(registry_url('blueprint-print','css'));?>" type="text/css" media="print"/>
- <!--[if lt IE 8]><link rel="stylesheet" href="<?php echo(registry_url('blueprint-ie','css'));?>" type="text/css" media="screen, projection"><![endif]-->
- <link rel="stylesheet" href="<?php echo(registry_url('blueprint-plugins-fancy-type','css'));?>" type="text/css" media="screen, projection"/>
- <link rel="stylesheet" href="<?php echo(registry_url('custom','css'));?>" type="text/css" media="screen, projection"/>
-
- <script type="text/javascript">
- window.location.href = "<?php echo($dest_url);?>";
- </script>
- <!-- JAVASCRIPT -->
- <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script>
- <script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script>
-
-</head>
-<body>
- <div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div>
- <div class="container">
- <img src="images/ENMI_2010_logo.gif" class="logo">
- <ul class="menu">
- <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>" class="menuLink">
- <?php print $translate->_("Accueil"); ?></a></li>
- <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>about.php" class="menuLink">
- <?php print $translate->_("A propos"); ?></a></li>
- <li ><a href="mailto:contact@iri.centrepompidou.fr" class="menuLink" >
- <?php print $translate->_("Contact"); ?></a></li>
- </ul>
- <ul class="menu">
- <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>archives.php" class="menuLink">
- <?php print $translate->_("Archives"); ?></a></li>
- </ul>
-
-
- <ul class="menu lang" >
- <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>index.php?lang=ja_JP" class="menuLink" >
- <img src='images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
- <?php print $translate->_("Japonais"); ?></a></li>
- <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>index.php?lang=fr" class="menuLink">
- <img src='images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> />
- <?php print $translate->_("Français"); ?></a></li>
- <li ><a href="<?php echo(URL_ROOT); ?>index.php?lang=en" class="menuLink">
- <img src='images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
- <?php print $translate->_("Anglais"); ?></a></li>
- </ul>
- </div>
- <div class="container">
- If you are not redirected automatically, follow the <a href='<?php echo($dest_url);?>'>link</a>
- </body>
- </div>
- </body>
-</html>
\ No newline at end of file
+header("location:".URL_ROOT);
+exit();