<?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'));
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);