enhance listing of customer domains; add third openbasedir-option to make 'parentdirectory of domain-docroot' value possible (refs #515); corrected some formfield definitions
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -994,6 +994,8 @@ class Apache extends HttpConfigBase
|
||||
if ($domain['openbasedir'] == '1') {
|
||||
if ($domain['openbasedir_path'] == '1' || strstr($domain['documentroot'], ":") !== false) {
|
||||
$_phpappendopenbasedir = Domain::appendOpenBasedirPath($domain['customerroot'], true);
|
||||
} else if ($domain['openbasedir_path'] == '2' && strpos(dirname($domain['documentroot']).'/', $domain['customerroot']) !== false) {
|
||||
$_phpappendopenbasedir = Domain::appendOpenBasedirPath(dirname($domain['documentroot']).'/', true);
|
||||
} else {
|
||||
$_phpappendopenbasedir = Domain::appendOpenBasedirPath($domain['documentroot'], true);
|
||||
}
|
||||
|
||||
@@ -172,6 +172,8 @@ class Fcgid
|
||||
|
||||
if ($this->domain['openbasedir_path'] == '0' && strstr($this->domain['documentroot'], ":") === false) {
|
||||
$openbasedir = Domain::appendOpenBasedirPath($this->domain['documentroot'], true);
|
||||
} else if ($this->domain['openbasedir_path'] == '2' && strpos(dirname($this->domain['documentroot']).'/', $this->domain['customerroot']) !== false) {
|
||||
$openbasedir = Domain::appendOpenBasedirPath(dirname($this->domain['documentroot']).'/', true);
|
||||
} else {
|
||||
$openbasedir = Domain::appendOpenBasedirPath($this->domain['customerroot'], true);
|
||||
}
|
||||
|
||||
@@ -239,6 +239,8 @@ pm.max_children = 1
|
||||
|
||||
if ($this->domain['openbasedir_path'] == '0' && strstr($this->domain['documentroot'], ":") === false) {
|
||||
$openbasedir = Domain::appendOpenBasedirPath($this->domain['documentroot'], true);
|
||||
} else if ($this->domain['openbasedir_path'] == '2' && strpos(dirname($this->domain['documentroot']).'/', $this->domain['customerroot']) !== false) {
|
||||
$openbasedir = Domain::appendOpenBasedirPath(dirname($this->domain['documentroot']).'/', true);
|
||||
} else {
|
||||
$openbasedir = Domain::appendOpenBasedirPath($this->domain['customerroot'], true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user