cia is dead most of the time, sic + Backports
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Mon, 31 Jan 2005 06:52:23 +0000 (06:52 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:27:57 +0000 (23:27 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.4--patch-10
   envoidirect est suppimée - TODO : adapter au nouveau systeme

 * opensource@polytechnique.org--2005/platal--release--0.9.4--patch-11
   envoidirect est suppimée . TODO : adapter au nouveau systeme

 * opensource@polytechnique.org--2005/platal--release--0.9.4--patch-12
   envoidirect est suppimée . TODO : adapter au nouveau systeme

 * opensource@polytechnique.org--2005/platal--release--0.9.4--patch-13
   closes FS#273 : firefox sux

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-418

bin/cron/clean.php
htdocs/admin/newsletter_edit.php
htdocs/listes/admin.php
htdocs/listes/members.php
htdocs/listes/moderate.php
htdocs/listes/options.php
htdocs/listes/trombi.php

index e6d780e..51fabbd 100755 (executable)
@@ -37,9 +37,6 @@ query("DELETE FROM watch_ops WHERE known<$eight_days_ago");
 query("DELETE FROM register_pending WHERE TO_DAYS(NOW()) - TO_DAYS(date) >= 365");
 query("delete from register_pending WHERE hash = 'INSCRIT'");
 
-// la table envoidirect est nettoyée
-query("update envoidirect set uid = CONCAT('+',uid) where uid not like '+%' and date_succes != 0");
-
 // quelques tables sont triées pour que la lecture triée soit plus facile
 query("alter table applis_def order by text");
 query("alter table binets_def order by text");
index 210b718..508ee2b 100644 (file)
@@ -28,7 +28,7 @@ $nl  = new NewsLetter($nid);
 
 if(Get::has('del_aid')) {
     $nl->delArticle(Get::get('del_aid'));
-    header("Location: ?nid=$nid");
+    header("Location: {$_SERVER['PHP_SELF']}?nid=$nid");
 }
 
 if(Post::get('update')) {
@@ -42,7 +42,7 @@ if(Post::get('save')) {
     $art  = new NLArticle(Post::get('title'), Post::get('body'), Post::get('append'),
             Get::get('edit_aid'), Post::get('cid'), Post::get('pos'));
     $nl->saveArticle($art);
-    header("Location: ?nid=$nid");
+    header("Location: {$_SERVER['PHP_SELF']}?nid=$nid");
 }
 
 if(Get::has('edit_aid')) {
index 43b6914..bb8edaa 100644 (file)
@@ -44,7 +44,7 @@ if (Env::has('add_member')) {
 
 if (Env::has('del_member')) {
     $client->mass_unsubscribe($liste, Array(Env::get('del_member').'@'.$globals->mail->domain));
-    header("Location: ?liste=$liste");
+    header("Location: {$_SERVER['PHP_SELF']}?liste=$liste");
 }
 
 if (Env::has('add_owner')) {
@@ -60,7 +60,7 @@ if (Env::has('add_owner')) {
 
 if (Env::has('del_owner')) {
     $client->del_owner($liste, Env::get('del_owner').'@'.$globals->mail->domain);
-    header("Location: ?liste=$liste");
+    header("Location: {$_SERVER['PHP_SELF']}?liste=$liste");
 }
 
 if(list($det,$mem,$own) = $client->get_members($liste)) {
index cea7622..1b4cb75 100644 (file)
@@ -30,11 +30,11 @@ $client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'));
 
 if(Get::has('del')) {
     $client->unsubscribe($liste);
-    header("Location: ?liste=$liste");
+    header("Location: {$_SERVER['PHP_SELF']}?liste=$liste");
 }
 if(Get::has('add')) {
     $client->subscribe($liste);
-    header("Location: ?liste=$liste");
+    header("Location: {$_SERVER['PHP_SELF']}?liste=$liste");
 }
 $members = $client->get_members($liste);
 
index 18c4a13..4282e22 100644 (file)
@@ -24,7 +24,7 @@ if (!Env::has('liste')) header('Location: index.php');
 $liste = strtolower(Env::get('liste'));
 
 if (preg_match("!(?:[a-z0-9]+\\.)?{$globals->mail->domain}-(.*)!", $liste, $matches)) {
-    header('Location: ?liste='.$matches[1]);
+    header("Location: {$_SERVER['PHP_SELF']}?liste={$matches[1]}");
 }
 
 new_skinned_page('listes/moderate.tpl', AUTH_MDP);
index 3c0e0b2..cae85f5 100644 (file)
@@ -57,7 +57,7 @@ if (Post::has('submit')) {
     $client->add_to_wl($liste, Post::get('atn_add'));
 } elseif (Get::has('atn_del')) {
     $client->del_from_wl($liste, Get::get('atn_del'));
-    header("Location: ?liste=$liste");
+    header("Location: {$_SERVER['PHP_SELF']}?liste=$liste");
 }
 
 if(list($details,$options) = $client->get_owner_options($liste)) {
index 6b52bbc..f7d8c71 100644 (file)
@@ -31,11 +31,11 @@ $client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'));
 
 if(Get::has('del')) {
     $client->unsubscribe($liste);
-    header("Location: ?liste=$liste");
+    header("Location: {$_SERVER['PHP_SELF']}?liste=$liste");
 }
 if(Get::has('add')) {
     $client->subscribe($liste);
-    header("Location: ?liste=$liste");
+    header("Location: {$_SERVER['PHP_SELF']}?liste=$liste");
 }
 
 function getList($offset,$limit)