From 56be4fbd65a867e3599bbc53ef0bb0aba4362c96 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 3 May 2009 18:23:36 +0000 Subject: [PATCH] added TLS option --- lam/templates/config/confmain.php | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/lam/templates/config/confmain.php b/lam/templates/config/confmain.php index 564951da..f09d8371 100644 --- a/lam/templates/config/confmain.php +++ b/lam/templates/config/confmain.php @@ -143,7 +143,7 @@ if (isset($_SESSION['conf_errors'])) { // display formular echo ("
\n"); -echo ("
" . _("Server settings") . "
\n"); +echo ("
\"profiles.png\" " . _("Server settings") . "
\n"); echo (""); // serverURL echo ("". @@ -154,6 +154,25 @@ echo "\n"; $tabindex++; +// use TLS +echo "\n"; +echo "\n"; +echo "\n"; +$tabindex++; // new line echo (""); @@ -225,7 +244,7 @@ echo (""); echo ("
"); -echo ("
" . _("Account types and modules") . "
\n"); +echo ("
\"modules.png\" " . _("Account types and modules") . "
\n"); // Account modules $types = $conf->get_ActiveTypes(); @@ -281,7 +300,7 @@ for ($i = 0; $i < sizeof($modules); $i++) { } -echo ("
" . _("Language settings") . "
\n"); +echo ("
\"language.png\" " . _("Language settings") . "
\n"); echo ("
" . _("Server address") . " *: "; printHelpLink(getHelp('', '201'), '201'); echo "
" . _("Activate TLS") . ": \n"; +echo "\n"; +echo ""; +printHelpLink(getHelp('', '201'), '201'); +echo "
 
\n"); // language @@ -326,7 +345,7 @@ echo ("\n"); echo ("
\n"); // script settings -echo ("
" . _("Script settings") . "
\n"); +echo ("
\"lamdaemon.png\" " . _("Script settings") . "
\n"); echo ("
\n"); echo ("
". @@ -393,7 +412,7 @@ echo ("\n"); echo ("
\n"); // security setings -echo ("
" . _("Security settings") . "
\n"); +echo ("
\"security.png\" " . _("Security settings") . "
\n"); echo ("\n"); // login method echo ("
". @@ -509,6 +528,7 @@ function saveSettings() { if (!$conf->set_ServerURL($_POST['serverurl'])) { $errors[] = array("ERROR", _("Server address is invalid!")); } + $conf->setUseTLS($_POST['useTLS']); if (!$conf->set_cacheTimeout($_POST['cachetimeout'])) { $errors[] = array("ERROR", _("Cache timeout is invalid!")); }