Merge remote-tracking branch 'origin/master' into 0.10.0
This commit is contained in:
@@ -43,9 +43,9 @@ class DnsEntry
|
|||||||
{
|
{
|
||||||
$_content = $this->content;
|
$_content = $this->content;
|
||||||
// check content length for txt records for bind9 (multiline)
|
// check content length for txt records for bind9 (multiline)
|
||||||
if (Settings::Get('system.dns_server') != 'pdns' && $this->type == 'TXT' && strlen($_content) >= 64) {
|
if (Settings::Get('system.dns_server') != 'pdns' && $this->type == 'TXT' && strlen($_content) >= 255) {
|
||||||
// split string
|
// split string
|
||||||
$_contentlines = str_split($_content, 63);
|
$_contentlines = str_split($_content, 254);
|
||||||
// first line
|
// first line
|
||||||
$_l = array_shift($_contentlines);
|
$_l = array_shift($_contentlines);
|
||||||
// check for starting quote
|
// check for starting quote
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<froxlor>
|
<froxlor>
|
||||||
<distribution name="Ubuntu" codename="Precise" version="12.04" defaulteditor="/usr/bin/nano">
|
<distribution name="Ubuntu" codename="Precise" version="12.04" defaulteditor="/usr/bin/nano" deprecated="true">
|
||||||
<services>
|
<services>
|
||||||
<!-- HTTP -->
|
<!-- HTTP -->
|
||||||
<service type="http" title="{{lng.admin.configfiles.http}}">
|
<service type="http" title="{{lng.admin.configfiles.http}}">
|
||||||
|
|||||||
4680
lib/configfiles/xenial.xml
Normal file
4680
lib/configfiles/xenial.xml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -36,9 +36,11 @@ function getRedirectCodesArray() {
|
|||||||
* return an array of all enabled redirect-codes
|
* return an array of all enabled redirect-codes
|
||||||
* for the settings form
|
* for the settings form
|
||||||
*
|
*
|
||||||
|
* @param bool $add_desc optional, default true, add the code-description
|
||||||
|
*
|
||||||
* @return array array of enabled redirect-codes
|
* @return array array of enabled redirect-codes
|
||||||
*/
|
*/
|
||||||
function getRedirectCodes() {
|
function getRedirectCodes($add_desc = true) {
|
||||||
|
|
||||||
global $lng;
|
global $lng;
|
||||||
|
|
||||||
@@ -47,7 +49,10 @@ function getRedirectCodes() {
|
|||||||
|
|
||||||
$codes = array();
|
$codes = array();
|
||||||
while ($rc = $result_stmt->fetch(PDO::FETCH_ASSOC)) {
|
while ($rc = $result_stmt->fetch(PDO::FETCH_ASSOC)) {
|
||||||
$codes[$rc['id']] = $rc['code']. ' ('.$lng['redirect_desc'][$rc['desc']].')';
|
$codes[$rc['id']] = $rc['code'];
|
||||||
|
if ($add_desc) {
|
||||||
|
$codes[$rc['id']] .= ' ('.$lng['redirect_desc'][$rc['desc']].')';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $codes;
|
return $codes;
|
||||||
@@ -58,12 +63,17 @@ function getRedirectCodes() {
|
|||||||
* domain-id
|
* domain-id
|
||||||
*
|
*
|
||||||
* @param integer $domainid id of the domain
|
* @param integer $domainid id of the domain
|
||||||
* @param string $default
|
|
||||||
*
|
*
|
||||||
* @return string redirect-code
|
* @return string redirect-code
|
||||||
*/
|
*/
|
||||||
function getDomainRedirectCode($domainid = 0, $default = '') {
|
function getDomainRedirectCode($domainid = 0) {
|
||||||
|
|
||||||
|
// get system default
|
||||||
|
$default = '301';
|
||||||
|
if (Settings::Get('customredirect.enabled') == '1') {
|
||||||
|
$all_codes = getRedirectCodes(false);
|
||||||
|
$default = $all_codes[Settings::Get('customredirect.default')];
|
||||||
|
}
|
||||||
$code = $default;
|
$code = $default;
|
||||||
if ($domainid > 0) {
|
if ($domainid > 0) {
|
||||||
|
|
||||||
|
|||||||
@@ -1687,7 +1687,7 @@ $lng['serversettings']['panel_customer_hide_options']['description'] = 'Wählen
|
|||||||
$lng['serversettings']['allow_allow_customer_shell']['title'] = 'Erlaube Kunden für FTP Benutzer eine Shell auszuwählen';
|
$lng['serversettings']['allow_allow_customer_shell']['title'] = 'Erlaube Kunden für FTP Benutzer eine Shell auszuwählen';
|
||||||
$lng['serversettings']['allow_allow_customer_shell']['description'] = '<strong class="red">Bitte beachten: Shell Zugriff gestattet dem Benutzer verschiedene Programme auf Ihrem System auszuführen. Mit großer Vorsicht verwenden. Bitte aktiviere dies nur wenn WIRKLICH bekannt ist, was das bedeutet!!!</strong>';
|
$lng['serversettings']['allow_allow_customer_shell']['description'] = '<strong class="red">Bitte beachten: Shell Zugriff gestattet dem Benutzer verschiedene Programme auf Ihrem System auszuführen. Mit großer Vorsicht verwenden. Bitte aktiviere dies nur wenn WIRKLICH bekannt ist, was das bedeutet!!!</strong>';
|
||||||
$lng['serversettings']['available_shells']['title'] = 'Liste der verfügbaren Shells';
|
$lng['serversettings']['available_shells']['title'] = 'Liste der verfügbaren Shells';
|
||||||
$lng['serversettings']['available_shells']['description'] = 'Komme-getrennte Liste von Shells die der Kunde für seine FTP-Konten wählen kann.<br><br>Hinweis: Die Standard-Shell <strong>/bin/false</strong> wird immer eine Auswahlmöglichkeit sein (wenn aktiviert), auch wenn diese Einstellung leer ist. Sie ist in jedem Fall der Standardwert für alle FTP-Konten';
|
$lng['serversettings']['available_shells']['description'] = 'Komma-getrennte Liste von Shells die der Kunde für seine FTP-Konten wählen kann.<br><br>Hinweis: Die Standard-Shell <strong>/bin/false</strong> wird immer eine Auswahlmöglichkeit sein (wenn aktiviert), auch wenn diese Einstellung leer ist. Sie ist in jedem Fall der Standardwert für alle FTP-Konten';
|
||||||
$lng['serversettings']['le_froxlor_enabled']['title'] = "Let's Encrypt für den froxlor Vhost verwenden";
|
$lng['serversettings']['le_froxlor_enabled']['title'] = "Let's Encrypt für den froxlor Vhost verwenden";
|
||||||
$lng['serversettings']['le_froxlor_enabled']['description'] = "Wenn dies aktiviert ist, erstellt froxlor für seinen vhost automatisch ein Let's Encrypt Zertifikat.";
|
$lng['serversettings']['le_froxlor_enabled']['description'] = "Wenn dies aktiviert ist, erstellt froxlor für seinen vhost automatisch ein Let's Encrypt Zertifikat.";
|
||||||
$lng['serversettings']['le_froxlor_redirect']['title'] = "SSL-Weiterleitung für den froxlor Vhost aktivieren";
|
$lng['serversettings']['le_froxlor_redirect']['title'] = "SSL-Weiterleitung für den froxlor Vhost aktivieren";
|
||||||
|
|||||||
@@ -964,7 +964,7 @@ class apache extends HttpConfigBase
|
|||||||
$corrected_docroot = $domain['documentroot'];
|
$corrected_docroot = $domain['documentroot'];
|
||||||
|
|
||||||
// Get domain's redirect code
|
// Get domain's redirect code
|
||||||
$code = getDomainRedirectCode($domain['id'], '301');
|
$code = getDomainRedirectCode($domain['id']);
|
||||||
$modrew_red = '';
|
$modrew_red = '';
|
||||||
if ($code != '') {
|
if ($code != '') {
|
||||||
$modrew_red = ' [R=' . $code . ';L,NE]';
|
$modrew_red = ' [R=' . $code . ';L,NE]';
|
||||||
|
|||||||
@@ -467,7 +467,7 @@ class lighttpd extends HttpConfigBase
|
|||||||
$uri = $domain['documentroot'];
|
$uri = $domain['documentroot'];
|
||||||
|
|
||||||
// Get domain's redirect code
|
// Get domain's redirect code
|
||||||
$code = getDomainRedirectCode($domain['id'], '301');
|
$code = getDomainRedirectCode($domain['id']);
|
||||||
|
|
||||||
$vhost_content .= ' url.redirect-code = ' . $code. "\n";
|
$vhost_content .= ' url.redirect-code = ' . $code. "\n";
|
||||||
$vhost_content .= ' url.redirect = (' . "\n";
|
$vhost_content .= ' url.redirect = (' . "\n";
|
||||||
|
|||||||
@@ -486,7 +486,7 @@ class nginx extends HttpConfigBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get domain's redirect code
|
// Get domain's redirect code
|
||||||
$code = getDomainRedirectCode($domain['id'], '301');
|
$code = getDomainRedirectCode($domain['id']);
|
||||||
|
|
||||||
$vhost_content .= "\t" . 'if ($request_uri !~ ^/.well-known/acme-challenge/\w+$) {' . "\n";
|
$vhost_content .= "\t" . 'if ($request_uri !~ ^/.well-known/acme-challenge/\w+$) {' . "\n";
|
||||||
$vhost_content .= "\t\t" . 'return ' . $code .' ' . $uri . '$request_uri;' . "\n";
|
$vhost_content .= "\t\t" . 'return ' . $code .' ' . $uri . '$request_uri;' . "\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user