remove clear cache.
[platal.git] / htdocs / auth-redirect.php
index 715606c..f0b375e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  Copyright (C) 2003-2006 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -22,9 +22,5 @@
 require_once("xorg.inc.php");
 new_skinned_page('index.tpl',AUTH_COOKIE);
 
-//adresse de redirection par defaut
-if (isset($_REQUEST['dest'])) $redirect=$_REQUEST['dest'];
-else $redirect="/";
-
-header("Location: ".$redirect);
+redirect(Env::get('dest', '/'));
 ?>