begin to move carnet (beginning with the rss feed)
[platal.git] / htdocs / carnet / panel.php
index 922c5dd..e8254cb 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   *
@@ -25,7 +25,7 @@ require_once('notifs.inc.php');
 
 if(Get::has('read')) {
     $_SESSION['watch_last'] = Get::get('read');
-    header("Location: panel.php");
+    redirect("panel.php");
 }
 
 $page->assign('now',date('YmdHis'));
@@ -35,7 +35,9 @@ $page->assign('notifs', $notifs);
 $page->assign('today', date('Y-m-d'));
 
 if (Session::has('core_rss_hash')) {
-    $page->assign('xorg_rss', Array("title" => "Polytechnique.org :: Carnet", "href" => "/carnet/rss.php/".Session::get('forlife')."/".Session::get('core_rss_hash').".xml"));
+    $page->assign('xorg_rss',
+                  array("title" => "Polytechnique.org :: Carnet",
+                        "href" => "/carnet/rss/".Session::get('forlife')."/".Session::get('core_rss_hash')."/rss.xml"));
 }
 
 $page->run();