From dfe10ab6be3b63ced4ffef0c7591b20f3a9ffd71 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Wed, 10 Sep 2008 10:20:29 +0000 Subject: [PATCH] New: Add info on smtp/port setup to explain why feature not available on Linux. --- htdocs/admin/mails.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/mails.php b/htdocs/admin/mails.php index 33dcf5fd732..5129b3099b6 100644 --- a/htdocs/admin/mails.php +++ b/htdocs/admin/mails.php @@ -279,9 +279,16 @@ else // Boutons actions print '<div class="tabsAction">'; - if (function_exists('fsockopen') && $port && $server) + if (! $linuxlike) { - print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=testconnect">'.$langs->trans("DoTestServerAvailability").'</a>'; + if (function_exists('fsockopen') && $port && $server) + { + print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=testconnect">'.$langs->trans("DoTestServerAvailability").'</a>'; + } + } + else + { + print '<a class="butActionRefused" href="#" title="'.$langs->trans("FeatureNotAvailableOnLinux").'">'.$langs->trans("DoTestSend").'</a>'; } print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=test&mode=init">'.$langs->trans("DoTestSend").'</a>'; if ($conf->fckeditor->enabled) -- GitLab