fixes
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 14 Nov 2005 23:29:36 +0000 (23:29 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 14 Nov 2005 23:29:36 +0000 (23:29 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@155 839d8a87-29fc-0310-9880-83ba4fa771e5

htdocs.net/fiche.php
include/platal.inc.php
include/xorg.inc.php

index 426a7fa..6d05057 100644 (file)
@@ -1,3 +1,4 @@
 <?php
+    require 'xnet.inc.php';
     redirect("https://www.polytechnique.org/fiche.php?user=".$_GET['user']);
 ?>
index 769261a..a24d16e 100644 (file)
@@ -43,6 +43,18 @@ define('NO_SKIN', 1);
 require_once('platal/env.inc.php');
 
 // }}}
+// {{{ function redirect
+
+function redirect($page)
+{
+    if (count($_SESSION)) {
+        session_write_close();
+    }
+    header("Location: $page");
+    exit;
+}
+
+// }}}
 
 // vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
 ?>
index 45dccf9..95a7bb9 100644 (file)
@@ -100,18 +100,6 @@ function new_admin_table_editor($table, $idfield, $idedit=false)
 }
 
 // }}}
-// {{{ function redirect
-
-function redirect($page)
-{
-    if (count($_SESSION)) {
-        session_write_close();
-    }
-    header("Location: $page");
-    exit;
-}
-
-// }}}
 
 // vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
 ?>