From 332d2d607baf52438296a09ccc3ee23b9a10711a Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sun, 18 Nov 2007 21:46:20 +0000 Subject: [PATCH] broadcast-message.php: - exit if $CONF['sendmail'] != 'YES' git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@236 a1433add-5e2c-0410-b055-b7f2511e0802 --- broadcast-message.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/broadcast-message.php b/broadcast-message.php index b73ebefc..754f8693 100644 --- a/broadcast-message.php +++ b/broadcast-message.php @@ -30,6 +30,11 @@ require_once('common.php'); authentication_require_role('global-admin'); +if ($CONF['sendmail'] != 'YES') { + header("Location: " . $CONF['postfix_admin_url'] . "/main.php"); + exit; +} + $SESSID_USERNAME = authentication_get_username(); if ($_SERVER['REQUEST_METHOD'] == "POST")