From 2da67cca44f00894a7f4336ce77ad232500f424f Mon Sep 17 00:00:00 2001 From: lolo888 Date: Mon, 16 Mar 2015 04:59:55 +0100 Subject: [PATCH] Add mailing list default url to /mailman/admin of domain name --- interface/web/mail/mailinglist.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/web/mail/mailinglist.php b/interface/web/mail/mailinglist.php index 6ef779cbd..2b24e4ee5 100644 --- a/interface/web/mail/mailinglist.php +++ b/interface/web/mail/mailinglist.php @@ -43,7 +43,7 @@ $listId = $app->functions->intval($_GET['id']); /* * Get the data to connect to the database */ -$dbData = $app->db->queryAllRecords("SELECT server_id, listname FROM mail_mailinglist WHERE mailinglist_id = " . $listId); +$dbData = $app->db->queryAllRecords("SELECT server_id, listname, domain FROM mail_mailinglist WHERE mailinglist_id = " . $listId); $serverId = $app->functions->intval($dbData[0]['server_id']); if ($serverId == 0){ die ("No List - Server found!"); @@ -62,7 +62,7 @@ if($global_config['mailmailinglist_url'] != '') { * We only redirect to the login-form, so there is no need, to check any rights */ isset($_SERVER['HTTPS'])? $http = 'https' : $http = 'http'; - header('Location:' . $http . '://' . $serverData['server_name'] . '/cgi-bin/mailman/admin/' . $dbData[0]['listname']); + header('Location:' . $http . '://' . $dbData[0]['domain'] . '/cgi-bin/mailman/admin/' . $dbData[0]['listname']); } exit; -?> +?> \ No newline at end of file -- GitLab