From: Pierre Habouzit (MadCoder Date: Mon, 31 Jan 2005 06:52:23 +0000 (+0000) Subject: cia is dead most of the time, sic + Backports X-Git-Tag: xorg/old~340 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=c56e8e7b7c1cd184d63e693e0c3beb0761fdec2c;p=platal.git cia is dead most of the time, sic + Backports 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 --- diff --git a/bin/cron/clean.php b/bin/cron/clean.php index e6d780e..51fabbd 100755 --- a/bin/cron/clean.php +++ b/bin/cron/clean.php @@ -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"); diff --git a/htdocs/admin/newsletter_edit.php b/htdocs/admin/newsletter_edit.php index 210b718..508ee2b 100644 --- a/htdocs/admin/newsletter_edit.php +++ b/htdocs/admin/newsletter_edit.php @@ -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')) { diff --git a/htdocs/listes/admin.php b/htdocs/listes/admin.php index 43b6914..bb8edaa 100644 --- a/htdocs/listes/admin.php +++ b/htdocs/listes/admin.php @@ -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)) { diff --git a/htdocs/listes/members.php b/htdocs/listes/members.php index cea7622..1b4cb75 100644 --- a/htdocs/listes/members.php +++ b/htdocs/listes/members.php @@ -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); diff --git a/htdocs/listes/moderate.php b/htdocs/listes/moderate.php index 18c4a13..4282e22 100644 --- a/htdocs/listes/moderate.php +++ b/htdocs/listes/moderate.php @@ -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); diff --git a/htdocs/listes/options.php b/htdocs/listes/options.php index 3c0e0b2..cae85f5 100644 --- a/htdocs/listes/options.php +++ b/htdocs/listes/options.php @@ -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)) { diff --git a/htdocs/listes/trombi.php b/htdocs/listes/trombi.php index 6b52bbc..f7d8c71 100644 --- a/htdocs/listes/trombi.php +++ b/htdocs/listes/trombi.php @@ -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)