<?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 *
if (!$page) {
require_once("xorg.inc.php");
- if (!Env::has('liste')) header('Location: index.php');
+ if (!Env::has('liste')) redirect('index.php');
$liste = strtolower(Env::get('liste'));
$domain = $globals->mail->domain;
if (preg_match("!(?:[a-z0-9]+\\.)?{$domain}_(.*)!", $liste, $matches)) {
- header("Location: {$_SERVER['PHP_SELF']}?liste={$matches[1]}");
+ redirect("{$_SERVER['PHP_SELF']}?liste={$matches[1]}");
}
new_skinned_page('listes/moderate.tpl', AUTH_MDP);
if(Env::has('sadd')) {
$client->handle_request($liste,Env::get('sadd'),4,''); /* 4 = SUBSCRIBE */
- header("Location: {$_SERVER['PHP_SELF']}?liste=$liste");
+ redirect("{$_SERVER['PHP_SELF']}?liste=$liste");
}
if(Post::has('sdel')) {