require_once 'xnet.inc.php';
if (!Env::has('liste')) header('Location: listes.php');
-$liste = strtolower(Env::get('liste'));
+$liste = strtolower(Env::get('liste'));
+$domain = $globals->asso('mail_domain');
new_group_page('listes/admin.tpl');
require_once 'xnet.inc.php';
if (!Env::has('liste')) header('Location: listes.php');
-$liste = strtolower(Env::get('liste'));
+$liste = strtolower(Env::get('liste'));
+$domain = $globals->asso('mail_domain');
new_group_page('listes/archives.tpl');
require_once 'xnet.inc.php';
if (!Env::has('liste')) header('Location: listes.php');
-$liste = strtolower(Env::get('liste'));
+$liste = strtolower(Env::get('liste'));
+$domain = $globals->asso('mail_domain');
if (preg_match("!(?:[a-z0-9]+\\.)?{".$globals->asso('mail_domain')."}_(.*)!", $liste, $matches)) {
header("Location: {$_SERVER['PHP_SELF']}?liste={$matches[1]}");
if (!$page) {
require_once("xorg.inc.php");
if (!Env::has('liste')) header('Location: index.php');
- $liste = strtolower(Env::get('liste'));
+ $liste = strtolower(Env::get('liste'));
+ $domain = $globals->mail->domain;
new_skinned_page('listes/admin.tpl', AUTH_MDP);
require_once('lists.inc.php');
}
if (Env::has('del_member')) {
- $client->mass_unsubscribe($liste, Array(Env::get('del_member').'@'.$globals->mail->domain));
+ $client->mass_unsubscribe($liste, Array(Env::get('del_member').'@'.$domain));
header("Location: {$_SERVER['PHP_SELF']}?liste=$liste");
}
}
if (Env::has('del_owner')) {
- $client->del_owner($liste, Env::get('del_owner').'@'.$globals->mail->domain);
+ $client->del_owner($liste, Env::get('del_owner').'@'.$domain);
header("Location: {$_SERVER['PHP_SELF']}?liste=$liste");
}
require_once("xorg.inc.php");
if (!Env::has('liste')) header('Location: index.php');
$liste = strtolower(Env::get('liste'));
+ $domain = $globals->mail->domain;
new_skinned_page('listes/archives.tpl', AUTH_COOKIE);
require_once('lists.inc.php');
if(strstr('/', $file)!==false || !preg_match(',^\d+/\d+$,', $rep)) {
$page->kill("La liste n'existe pas ou tu n'as pas le droit de la consulter");
} else {
- $page->assign('archives', $globals->lists->spool."/{$globals->mail->domain}{$globals->lists->vhost_sep}$liste/$rep/$file");
+ $page->assign('archives', $globals->lists->spool."/{$domain}{$globals->lists->vhost_sep}$liste/$rep/$file");
}
} else {
$archs = Array();
- foreach (glob($globals->lists->spool."/{$globals->mail->domain}{$globals->lists->vhost_sep}$liste/*/*") as $rep) {
+ foreach (glob($globals->lists->spool."/{$domain}{$globals->lists->vhost_sep}$liste/*/*") as $rep) {
if (preg_match(",/(\d*)/(\d*)$,", $rep, $matches)) {
$archs[intval($matches[1])][intval($matches[2])] = true;
}
require_once("xorg.inc.php");
if (!Env::has('liste')) header('Location: index.php');
$liste = strtolower(Env::get('liste'));
+ $domain = $globals->mail->domain;
- if (preg_match("!(?:[a-z0-9]+\\.)?{$globals->mail->domain}_(.*)!", $liste, $matches)) {
+ if (preg_match("!(?:[a-z0-9]+\\.)?{$domain}_(.*)!", $liste, $matches)) {
header("Location: {$_SERVER['PHP_SELF']}?liste={$matches[1]}");
}
.$append;
require_once('diogenes/diogenes.hermes.inc.php');
$mailer = new HermesMailer();
- $mailer->addTo("$liste-owner@{$globals->mail->domain}");
- $mailer->setFrom("$liste-bounces@{$globals->mail->domain}");
- $mailer->addHeader('Reply-To', "$liste-owner@{$globals->mail->domain}");
+ $mailer->addTo("$liste-owner@{$domain}");
+ $mailer->setFrom("$liste-bounces@{$domain}");
+ $mailer->addHeader('Reply-To', "$liste-owner@{$domain}");
$mailer->setSubject($subject);
$mailer->setTxtBody(wordwrap($texte,72));
$mailer->send();
if(Get::has('mid') && is_array($mail)) {
$msg = file_get_contents('/etc/mailman/fr/refuse.txt');
- $msg = str_replace("%(adminaddr)s","$liste-owner@{$globals->mail->domain}", $msg);
+ $msg = str_replace("%(adminaddr)s","$liste-owner@{$domain}", $msg);
$msg = str_replace("%(request)s","<< SUJET DU MAIL >>", $msg);
$msg = str_replace("%(reason)s","<< TON EXPLICATION >>", $msg);
$msg = str_replace("%(listname)s","$liste", $msg);