Commit 2da67cca authored by lolo888's avatar lolo888

Add mailing list default url to /mailman/admin of domain name

parent e564b479
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment