add note to customer domain-add/edit to clearify trailing-slash in URLs, corrected apache-rewrite for url-redirects, fixes #1261
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -43,7 +43,7 @@ return array(
|
|||||||
),
|
),
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => $lng['panel']['path'],
|
||||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? $pathSelect['note'].'<br />'.$pathSelect['value'] : ''),
|
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescriptionSubdomain'] : null).(isset($pathSelect['note']) ? $pathSelect['note'].'<br />'.$pathSelect['value'] : ''),
|
||||||
'type' => $pathSelect['type'],
|
'type' => $pathSelect['type'],
|
||||||
'select_var' => $pathSelect['value'],
|
'select_var' => $pathSelect['value'],
|
||||||
'value' => $pathSelect['value']
|
'value' => $pathSelect['value']
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ return array(
|
|||||||
),
|
),
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => $lng['panel']['path'],
|
||||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescriptionSubdomain'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
||||||
'type' => $pathSelect['type'],
|
'type' => $pathSelect['type'],
|
||||||
'select_var' => $pathSelect['value'],
|
'select_var' => $pathSelect['value'],
|
||||||
'value' => $pathSelect['value']
|
'value' => $pathSelect['value']
|
||||||
|
|||||||
@@ -492,7 +492,8 @@ $lng['admin']['nameserversettings'] = 'Nameserver settings';
|
|||||||
$lng['admin']['updatecounters'] = 'Recalculate resource usage';
|
$lng['admin']['updatecounters'] = 'Recalculate resource usage';
|
||||||
$lng['question']['admin_counters_reallyupdate'] = 'Do you really want to recalculate resource usage?';
|
$lng['question']['admin_counters_reallyupdate'] = 'Do you really want to recalculate resource usage?';
|
||||||
$lng['panel']['pathDescription'] = 'If the directory doesn\'t exist, it will be created automatically.';
|
$lng['panel']['pathDescription'] = 'If the directory doesn\'t exist, it will be created automatically.';
|
||||||
$lng['panel']['pathDescriptionEx'] = '<br /><br />If you want a redirect to another domain than this entry has to start with http:// or https://';
|
$lng['panel']['pathDescriptionEx'] = '<br /><br />If you want a redirect to another domain than this entry has to start with http:// or https://.';
|
||||||
|
$lng['panel']['pathDescriptionSubdomain'] = $lng['panel']['pathDescription'].$lng['panel']['pathDescriptionEx']."<br /><br />If the URL ends with / it is considered a folder, if not, it is treated as file.";
|
||||||
|
|
||||||
// ADDED IN 1.2.16-svn6
|
// ADDED IN 1.2.16-svn6
|
||||||
|
|
||||||
|
|||||||
@@ -491,7 +491,8 @@ $lng['admin']['nameserversettings'] = 'Nameservereinstellungen';
|
|||||||
$lng['admin']['updatecounters'] = 'Ressourcenverbrauch';
|
$lng['admin']['updatecounters'] = 'Ressourcenverbrauch';
|
||||||
$lng['question']['admin_counters_reallyupdate'] = 'Wollen Sie den Ressourcenverbrauch neu berechnen?';
|
$lng['question']['admin_counters_reallyupdate'] = 'Wollen Sie den Ressourcenverbrauch neu berechnen?';
|
||||||
$lng['panel']['pathDescription'] = 'Wenn das Verzeichnis nicht existiert, wird es automatisch erstellt.';
|
$lng['panel']['pathDescription'] = 'Wenn das Verzeichnis nicht existiert, wird es automatisch erstellt.';
|
||||||
$lng['panel']['pathDescriptionEx'] = '<br /><br />Sollte eine Weiterleitung auf eine andere Domain gewünscht sein, muss der Eintrag mit http:// oder https:// beginnen';
|
$lng['panel']['pathDescriptionEx'] = '<br /><br />Sollte eine Weiterleitung auf eine andere Domain gewünscht sein, muss der Eintrag mit http:// oder https:// beginnen.';
|
||||||
|
$lng['panel']['pathDescriptionSubdomain'] = $lng['panel']['pathDescription'].$lng['panel']['pathDescriptionEx']."<br /><br />Endet die URL mit einem / geht Froxlor von einem Ordner aus, wenn nicht, wird es wie eine Datei behandelt.";
|
||||||
|
|
||||||
// ADDED IN 1.2.16-svn6
|
// ADDED IN 1.2.16-svn6
|
||||||
|
|
||||||
|
|||||||
@@ -673,9 +673,6 @@ class apache
|
|||||||
|
|
||||||
if (preg_match('/^https?\:\/\//', $domain['documentroot'])) {
|
if (preg_match('/^https?\:\/\//', $domain['documentroot'])) {
|
||||||
$corrected_docroot = $this->idnaConvert->encode($domain['documentroot']);
|
$corrected_docroot = $this->idnaConvert->encode($domain['documentroot']);
|
||||||
if (substr($corrected_docroot, -1) == '/') {
|
|
||||||
$corrected_docroot = substr($corrected_docroot, 0, -1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Get domain's redirect code */
|
/* Get domain's redirect code */
|
||||||
$code = getDomainRedirectCode($domain['id']);
|
$code = getDomainRedirectCode($domain['id']);
|
||||||
|
|||||||
Reference in New Issue
Block a user