closes an at least 2 years TODO : lists archives are online
authorx2000habouzit <x2000habouzit>
Tue, 30 Nov 2004 18:39:18 +0000 (18:39 +0000)
committerx2000habouzit <x2000habouzit>
Tue, 30 Nov 2004 18:39:18 +0000 (18:39 +0000)
#86

ChangeLog
htdocs/listes/archives.php

index b8cc140..8432290 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -42,6 +42,7 @@ Bug/Wish :
                - #83,208,222 : New fiche.                                                                                      -MC
 
        * Lists :
+               - #86 : yet another old old wish : lists archives are online !          -MC
                - #184 : Owners can now delete their lists.                                                     -MC
                - #231 : Add a link to the user's fiche on moderation page.                     -MC
 
index 66298b5..6bb3832 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: archives.php,v 1.3 2004-11-30 11:30:57 x2000habouzit Exp $
+        $Id: archives.php,v 1.4 2004-11-30 18:39:19 x2000habouzit Exp $
  ***************************************************************************/
 
 if(empty($_REQUEST['liste'])) header('Location: index.php');
@@ -36,7 +36,11 @@ if (list($det) = $client->get_members($liste)) {
     } elseif (isset($_GET['file'])) {
         $file = $_GET['file'];
         $rep  = $_GET['rep'];
-        $page->assign('url', $globals->lists->spool."/polytechnique.org-$liste/$rep/$file");
+        if(strstr('/', $file)!==false || !preg_match(',^\d+/\d+$,', $_GET['rep'])) {
+            $page->assign('no_list',true);
+        } else { 
+            $page->assign('url', $globals->lists->spool."/polytechnique.org-$liste/$rep/$file");
+        }
     } else {
         $archs = Array();
         foreach (glob($globals->lists->spool."/polytechnique.org-$liste/*/*") as $rep) {