From c2d75c703026b39ccfab3155352d6e57a3d36668 Mon Sep 17 00:00:00 2001 From: Chris Vigelius Date: Mon, 6 Jul 2015 15:09:13 +0200 Subject: [PATCH] add description and normalize {IS_SSL} value --- lng/english.lng.php | 3 +++ lng/german.lng.php | 3 +++ scripts/classes/class.HttpConfigBase.php | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lng/english.lng.php b/lng/english.lng.php index 7904fc16..37ef01f8 100644 --- a/lng/english.lng.php +++ b/lng/english.lng.php @@ -1843,3 +1843,6 @@ $lng['admin']['configfiles']['commands'] = 'Commands: T $lng['admin']['configfiles']['files'] = 'Configfiles: This is an example of the contents of a configuration file. The commands before these textfields should open an editor with the target file. Just copy and paste the contents into the editor and save the file.

Please note: The MySQL-password has not been replaced for security reasons. Please replace "MYSQL_PASSWORD" on your own. If you forgot your MySQL-password you\'ll find it in "lib/userdata.inc.php"'; $lng['serversettings']['apache_itksupport']['title'] = 'Use modifications for Apache ITK-MPM'; $lng['serversettings']['apache_itksupport']['description'] = 'ATTENTION: use only if you acutally have apache itk-mpm enabled
otherwise your webserver will not be able to start'; +$lng['admin']['specialsettings_replacements'] = "You can use the following variables:
{DOMAIN}, {DOCROOT}, {CUSTOMER}, {IP}, {PORT}, {IS_SSL}
"; +$lng['serversettings']['default_vhostconf']['description'] = 'The content of this field will be included into this ip/port vHost container directly. '.$lng['admin']['specialsettings_replacements'].' Attention: The code won\'t be checked for any errors. If it contains errors, webserver might not start again!'; +$lng['serversettings']['default_vhostconf_domain']['description'] = 'The content of this field will be included into the domain vHost container directly. '.$lng['admin']['specialsettings_replacements'].' Attention: The code won\'t be checked for any errors. If it contains errors, webserver might not start again!'; \ No newline at end of file diff --git a/lng/german.lng.php b/lng/german.lng.php index bd5e8027..1f20f6e2 100644 --- a/lng/german.lng.php +++ b/lng/german.lng.php @@ -1570,3 +1570,6 @@ $lng['admin']['configfiles']['commands'] = 'Kommandos: $lng['admin']['configfiles']['files'] = 'Konfigurationsdateien: Dies ist der Inhalt einer Konfigurationsdatei. Der Befehl direkt vor dem Textfeld sollte einen Editor mit der Zeildatei öffnen. Der Inhalt kann nun einfach kopiert und in den Editor eingefügt und die Datei gespeichert werden.

Beachten Sie: Das MySQL-Passwort wurde aus Sicherheitsgründen nicht ersetzt. Bitte ersetzen Sie "MYSQL_PASSWORD" manuell durch das entsprechende Passwort. Falls Sie es vergessen haben sollten, finden Sie es in der Datei "lib/userdata.inc.php".'; $lng['serversettings']['apache_itksupport']['title'] = 'Anpassungen für Apache ITK-MPM verwenden'; $lng['serversettings']['apache_itksupport']['description'] = '
Achtung: Bitte nur verwenden, wenn wirklich Apache itk-mpm verwendet wird, ansonsten wird der Webserver nicht starten.
'; +$lng['admin']['specialsettings_replacements'] = "Die folgenden Variablen können verwendet werden:
{DOMAIN}, {DOCROOT}, {CUSTOMER}, {IP}, {PORT}, {IS_SSL}
"; +$lng['serversettings']['default_vhostconf']['description'] = 'Der Inhalt dieses Feldes wird direkt in den IP/Port-vHost-Container übernommen. '.$lng['admin']['specialsettings_replacements'].'
ACHTUNG: Der Code wird nicht auf Fehler geprüft. Etwaige Fehler werden also auch übernommen. Der Webserver könnte nicht mehr starten!'; +$lng['serversettings']['default_vhostconf_domain']['description'] = 'Der Inhalt dieses Feldes wird direkt in jeden Domain-vHost-Container übernommen. '. $lng['admin']['specialsettings_replacements'].'ACHTUNG: Der Code wird nicht auf Fehler geprüft. Etwaige Fehler werden also auch übernommen. Der Webserver könnte nicht mehr starten!'; diff --git a/scripts/classes/class.HttpConfigBase.php b/scripts/classes/class.HttpConfigBase.php index 2e65e607..a03001e4 100644 --- a/scripts/classes/class.HttpConfigBase.php +++ b/scripts/classes/class.HttpConfigBase.php @@ -17,7 +17,7 @@ class HttpConfigBase { * {IP} - IP for this domain * {PORT} - Port for this domain * {CUSTOMER} - customer name - * {IS_SSL} - '1' if domain/ip is ssl, '' otherwise + * {IS_SSL} - evaluates to 'ssl' if domain/ip is ssl, otherwise it is an empty string * {DOCROOT} - document root for this domain * * @param $template @@ -29,7 +29,7 @@ class HttpConfigBase { 'CUSTOMER' => $domain['loginname'], 'IP' => $ipandport['ip'], 'PORT' => $ipandport['port'], - 'IS_SSL' => $domain['ssl'], + 'IS_SSL' => ($domain['ssl'])?'ssl':'', 'DOCROOT' => $domain['documentroot'] ); return replace_variables($template, $templateVars);