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");
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')) {
$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')) {
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')) {
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)) {
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);
$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);
$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)) {
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)