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'));
new_skinned_page('listes/members.tpl', AUTH_COOKIE);
if(Get::has('del')) {
$client->unsubscribe($liste);
- header("Location: {$_SERVER['PHP_SELF']}?liste=$liste");
+ redirect("{$_SERVER['PHP_SELF']}?liste=$liste");
}
if(Get::has('add')) {
$client->subscribe($liste);
- header("Location: {$_SERVER['PHP_SELF']}?liste=$liste");
+ redirect("{$_SERVER['PHP_SELF']}?liste=$liste");
}
$members = $client->get_members($liste);