remove unnecessary ternaries (#1027)
* remove unnecessary ternaries * fix: !($id <= 0); * remove ternary
This commit is contained in:
@@ -330,7 +330,7 @@ if ($page == 'overview' && $userinfo['change_serversettings'] == '1') {
|
|||||||
if (Settings::Get('system.mail_use_smtp')) {
|
if (Settings::Get('system.mail_use_smtp')) {
|
||||||
$testmail->isSMTP();
|
$testmail->isSMTP();
|
||||||
$testmail->Host = Settings::Get('system.mail_smtp_host');
|
$testmail->Host = Settings::Get('system.mail_smtp_host');
|
||||||
$testmail->SMTPAuth = Settings::Get('system.mail_smtp_auth') == '1' ? true : false;
|
$testmail->SMTPAuth = Settings::Get('system.mail_smtp_auth') == '1';
|
||||||
$testmail->Username = Settings::Get('system.mail_smtp_user');
|
$testmail->Username = Settings::Get('system.mail_smtp_user');
|
||||||
$testmail->Password = Settings::Get('system.mail_smtp_passwd');
|
$testmail->Password = Settings::Get('system.mail_smtp_passwd');
|
||||||
if (Settings::Get('system.mail_smtp_usetls')) {
|
if (Settings::Get('system.mail_smtp_usetls')) {
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ if ($action == '') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$templates = array_diff($available_templates, $templates);
|
$templates = array_diff($available_templates, $templates);
|
||||||
if (array_search($template, $templates) === false) {
|
if (!in_array($template, $templates)) {
|
||||||
\Froxlor\UI\Response::standard_error('templatenotfound');
|
\Froxlor\UI\Response::standard_error('templatenotfound');
|
||||||
} else {
|
} else {
|
||||||
$ins_stmt = Database::prepare("
|
$ins_stmt = Database::prepare("
|
||||||
|
|||||||
@@ -506,7 +506,7 @@ if (\Froxlor\Froxlor::isFroxlorVersion('0.9.6-svn2')) {
|
|||||||
|
|
||||||
showUpdateStep("Updating from 0.9.6-svn2 to 0.9.6-svn3", false);
|
showUpdateStep("Updating from 0.9.6-svn2 to 0.9.6-svn3", false);
|
||||||
|
|
||||||
$update_deferr_enable = isset($_POST['update_deferr_enable']) ? true : false;
|
$update_deferr_enable = isset($_POST['update_deferr_enable']);
|
||||||
|
|
||||||
$err500 = false;
|
$err500 = false;
|
||||||
$err401 = false;
|
$err401 = false;
|
||||||
|
|||||||
@@ -85,5 +85,5 @@ function versionInUpdate($current_version, $version_to_check)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (\Froxlor\Froxlor::versionCompare2($current_version, $version_to_check) == -1 ? true : false);
|
return \Froxlor\Froxlor::versionCompare2($current_version, $version_to_check) == -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ class Admins extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
|
|||||||
public function get()
|
public function get()
|
||||||
{
|
{
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ln_optional = ($id <= 0 ? false : true);
|
$ln_optional = $id > 0;
|
||||||
$loginname = $this->getParam('loginname', $ln_optional, '');
|
$loginname = $this->getParam('loginname', $ln_optional, '');
|
||||||
|
|
||||||
if ($this->isAdmin() && ($this->getUserDetail('change_serversettings') == 1 || ($this->getUserDetail('adminid') == $id || $this->getUserDetail('loginname') == $loginname))) {
|
if ($this->isAdmin() && ($this->getUserDetail('change_serversettings') == 1 || ($this->getUserDetail('adminid') == $id || $this->getUserDetail('loginname') == $loginname))) {
|
||||||
@@ -459,7 +459,7 @@ class Admins extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
|
|||||||
if ($this->isAdmin()) {
|
if ($this->isAdmin()) {
|
||||||
|
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ln_optional = ($id <= 0 ? false : true);
|
$ln_optional = $id > 0;
|
||||||
$loginname = $this->getParam('loginname', $ln_optional, '');
|
$loginname = $this->getParam('loginname', $ln_optional, '');
|
||||||
|
|
||||||
$result = $this->apiCall('Admins.get', array(
|
$result = $this->apiCall('Admins.get', array(
|
||||||
@@ -700,7 +700,7 @@ class Admins extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
|
|||||||
{
|
{
|
||||||
if ($this->isAdmin() && $this->getUserDetail('change_serversettings') == 1) {
|
if ($this->isAdmin() && $this->getUserDetail('change_serversettings') == 1) {
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ln_optional = ($id <= 0 ? false : true);
|
$ln_optional = $id > 0;
|
||||||
$loginname = $this->getParam('loginname', $ln_optional, '');
|
$loginname = $this->getParam('loginname', $ln_optional, '');
|
||||||
|
|
||||||
$result = $this->apiCall('Admins.get', array(
|
$result = $this->apiCall('Admins.get', array(
|
||||||
@@ -796,7 +796,7 @@ class Admins extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
|
|||||||
{
|
{
|
||||||
if ($this->isAdmin() && $this->getUserDetail('change_serversettings') == 1) {
|
if ($this->isAdmin() && $this->getUserDetail('change_serversettings') == 1) {
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ln_optional = ($id <= 0 ? false : true);
|
$ln_optional = $id > 0;
|
||||||
$loginname = $this->getParam('loginname', $ln_optional, '');
|
$loginname = $this->getParam('loginname', $ln_optional, '');
|
||||||
|
|
||||||
$result = $this->apiCall('Admins.get', array(
|
$result = $this->apiCall('Admins.get', array(
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class Certificates extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resou
|
|||||||
public function add()
|
public function add()
|
||||||
{
|
{
|
||||||
$domainid = $this->getParam('domainid', true, 0);
|
$domainid = $this->getParam('domainid', true, 0);
|
||||||
$dn_optional = ($domainid <= 0 ? false : true);
|
$dn_optional = $domainid > 0;
|
||||||
$domainname = $this->getParam('domainname', $dn_optional, '');
|
$domainname = $this->getParam('domainname', $dn_optional, '');
|
||||||
|
|
||||||
if ($this->isAdmin() == false && Settings::IsInList('panel.customer_hide_options', 'domains')) {
|
if ($this->isAdmin() == false && Settings::IsInList('panel.customer_hide_options', 'domains')) {
|
||||||
@@ -101,7 +101,7 @@ class Certificates extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resou
|
|||||||
public function get()
|
public function get()
|
||||||
{
|
{
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$domainname = $this->getParam('domainname', $dn_optional, '');
|
$domainname = $this->getParam('domainname', $dn_optional, '');
|
||||||
|
|
||||||
if ($this->isAdmin() == false && Settings::IsInList('panel.customer_hide_options', 'domains')) {
|
if ($this->isAdmin() == false && Settings::IsInList('panel.customer_hide_options', 'domains')) {
|
||||||
@@ -146,7 +146,7 @@ class Certificates extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resou
|
|||||||
public function update()
|
public function update()
|
||||||
{
|
{
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$domainname = $this->getParam('domainname', $dn_optional, '');
|
$domainname = $this->getParam('domainname', $dn_optional, '');
|
||||||
|
|
||||||
if ($this->isAdmin() == false && Settings::IsInList('panel.customer_hide_options', 'domains')) {
|
if ($this->isAdmin() == false && Settings::IsInList('panel.customer_hide_options', 'domains')) {
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource
|
|||||||
public function get()
|
public function get()
|
||||||
{
|
{
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ln_optional = ($id <= 0 ? false : true);
|
$ln_optional = $id > 0;
|
||||||
$loginname = $this->getParam('loginname', $ln_optional, '');
|
$loginname = $this->getParam('loginname', $ln_optional, '');
|
||||||
$show_usages = $this->getBoolParam('show_usages', true, false);
|
$show_usages = $this->getBoolParam('show_usages', true, false);
|
||||||
|
|
||||||
@@ -340,7 +340,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource
|
|||||||
$name = $this->getParam('name', true, '');
|
$name = $this->getParam('name', true, '');
|
||||||
$firstname = $this->getParam('firstname', true, '');
|
$firstname = $this->getParam('firstname', true, '');
|
||||||
$company_required = (! empty($name) && empty($firstname)) || (empty($name) && ! empty($firstname)) || (empty($name) && empty($firstname));
|
$company_required = (! empty($name) && empty($firstname)) || (empty($name) && ! empty($firstname)) || (empty($name) && empty($firstname));
|
||||||
$company = $this->getParam('company', ($company_required ? false : true), '');
|
$company = $this->getParam('company', !$company_required, '');
|
||||||
$street = $this->getParam('street', true, '');
|
$street = $this->getParam('street', true, '');
|
||||||
$zipcode = $this->getParam('zipcode', true, '');
|
$zipcode = $this->getParam('zipcode', true, '');
|
||||||
$city = $this->getParam('city', true, '');
|
$city = $this->getParam('city', true, '');
|
||||||
@@ -936,7 +936,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource
|
|||||||
public function update()
|
public function update()
|
||||||
{
|
{
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ln_optional = ($id <= 0 ? false : true);
|
$ln_optional = $id > 0;
|
||||||
$loginname = $this->getParam('loginname', $ln_optional, '');
|
$loginname = $this->getParam('loginname', $ln_optional, '');
|
||||||
|
|
||||||
$result = $this->apiCall('Customers.get', array(
|
$result = $this->apiCall('Customers.get', array(
|
||||||
@@ -954,7 +954,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource
|
|||||||
$name = $this->getParam('name', true, $result['name']);
|
$name = $this->getParam('name', true, $result['name']);
|
||||||
$firstname = $this->getParam('firstname', true, $result['firstname']);
|
$firstname = $this->getParam('firstname', true, $result['firstname']);
|
||||||
$company_required = empty($result['company']) && ((! empty($name) && empty($firstname)) || (empty($name) && ! empty($firstname)) || (empty($name) && empty($firstname)));
|
$company_required = empty($result['company']) && ((! empty($name) && empty($firstname)) || (empty($name) && ! empty($firstname)) || (empty($name) && empty($firstname)));
|
||||||
$company = $this->getParam('company', ($company_required ? false : true), $result['company']);
|
$company = $this->getParam('company', !$company_required, $result['company']);
|
||||||
$street = $this->getParam('street', true, $result['street']);
|
$street = $this->getParam('street', true, $result['street']);
|
||||||
$zipcode = $this->getParam('zipcode', true, $result['zipcode']);
|
$zipcode = $this->getParam('zipcode', true, $result['zipcode']);
|
||||||
$city = $this->getParam('city', true, $result['city']);
|
$city = $this->getParam('city', true, $result['city']);
|
||||||
@@ -1441,7 +1441,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource
|
|||||||
{
|
{
|
||||||
if ($this->isAdmin()) {
|
if ($this->isAdmin()) {
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ln_optional = ($id <= 0 ? false : true);
|
$ln_optional = $id > 0;
|
||||||
$loginname = $this->getParam('loginname', $ln_optional, '');
|
$loginname = $this->getParam('loginname', $ln_optional, '');
|
||||||
$delete_userfiles = $this->getParam('delete_userfiles', true, 0);
|
$delete_userfiles = $this->getParam('delete_userfiles', true, 0);
|
||||||
|
|
||||||
@@ -1672,7 +1672,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource
|
|||||||
{
|
{
|
||||||
if ($this->isAdmin()) {
|
if ($this->isAdmin()) {
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ln_optional = ($id <= 0 ? false : true);
|
$ln_optional = $id > 0;
|
||||||
$loginname = $this->getParam('loginname', $ln_optional, '');
|
$loginname = $this->getParam('loginname', $ln_optional, '');
|
||||||
|
|
||||||
$result = $this->apiCall('Customers.get', array(
|
$result = $this->apiCall('Customers.get', array(
|
||||||
@@ -1718,7 +1718,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource
|
|||||||
if ($this->isAdmin() && $this->getUserDetail('change_serversettings') == 1) {
|
if ($this->isAdmin() && $this->getUserDetail('change_serversettings') == 1) {
|
||||||
$adminid = $this->getParam('adminid');
|
$adminid = $this->getParam('adminid');
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ln_optional = ($id <= 0 ? false : true);
|
$ln_optional = $id > 0;
|
||||||
$loginname = $this->getParam('loginname', $ln_optional, '');
|
$loginname = $this->getParam('loginname', $ln_optional, '');
|
||||||
|
|
||||||
$c_result = $this->apiCall('Customers.get', array(
|
$c_result = $this->apiCall('Customers.get', array(
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ class DirProtections extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Res
|
|||||||
}
|
}
|
||||||
|
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$un_optional = ($id <= 0 ? false : true);
|
$un_optional = $id > 0;
|
||||||
$username = $this->getParam('username', $un_optional, '');
|
$username = $this->getParam('username', $un_optional, '');
|
||||||
|
|
||||||
$params = array();
|
$params = array();
|
||||||
@@ -202,7 +202,7 @@ class DirProtections extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Res
|
|||||||
public function update()
|
public function update()
|
||||||
{
|
{
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$un_optional = ($id <= 0 ? false : true);
|
$un_optional = $id > 0;
|
||||||
$username = $this->getParam('username', $un_optional, '');
|
$username = $this->getParam('username', $un_optional, '');
|
||||||
|
|
||||||
// validation
|
// validation
|
||||||
@@ -353,7 +353,7 @@ class DirProtections extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Res
|
|||||||
}
|
}
|
||||||
|
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$un_optional = ($id <= 0 ? false : true);
|
$un_optional = $id > 0;
|
||||||
$username = $this->getParam('username', $un_optional, '');
|
$username = $this->getParam('username', $un_optional, '');
|
||||||
|
|
||||||
if ($this->isAdmin() == false && Settings::IsInList('panel.customer_hide_options', 'extras.directoryprotection')) {
|
if ($this->isAdmin() == false && Settings::IsInList('panel.customer_hide_options', 'extras.directoryprotection')) {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ class DomainZones extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
|
|||||||
}
|
}
|
||||||
|
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$domainname = $this->getParam('domainname', $dn_optional, '');
|
$domainname = $this->getParam('domainname', $dn_optional, '');
|
||||||
|
|
||||||
// get requested domain
|
// get requested domain
|
||||||
@@ -370,7 +370,7 @@ class DomainZones extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
|
|||||||
}
|
}
|
||||||
|
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$domainname = $this->getParam('domainname', $dn_optional, '');
|
$domainname = $this->getParam('domainname', $dn_optional, '');
|
||||||
|
|
||||||
// get requested domain
|
// get requested domain
|
||||||
@@ -435,7 +435,7 @@ class DomainZones extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
|
|||||||
}
|
}
|
||||||
|
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$domainname = $this->getParam('domainname', $dn_optional, '');
|
$domainname = $this->getParam('domainname', $dn_optional, '');
|
||||||
|
|
||||||
// get requested domain
|
// get requested domain
|
||||||
@@ -481,7 +481,7 @@ class DomainZones extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
|
|||||||
}
|
}
|
||||||
|
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$domainname = $this->getParam('domainname', $dn_optional, '');
|
$domainname = $this->getParam('domainname', $dn_optional, '');
|
||||||
|
|
||||||
// get requested domain
|
// get requested domain
|
||||||
@@ -525,7 +525,7 @@ class DomainZones extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
|
|||||||
|
|
||||||
$entry_id = $this->getParam('entry_id');
|
$entry_id = $this->getParam('entry_id');
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$domainname = $this->getParam('domainname', $dn_optional, '');
|
$domainname = $this->getParam('domainname', $dn_optional, '');
|
||||||
|
|
||||||
// get requested domain
|
// get requested domain
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ class Domains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEn
|
|||||||
{
|
{
|
||||||
if ($this->isAdmin()) {
|
if ($this->isAdmin()) {
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$domainname = $this->getParam('domainname', $dn_optional, '');
|
$domainname = $this->getParam('domainname', $dn_optional, '');
|
||||||
$with_ips = $this->getParam('with_ips', true, true);
|
$with_ips = $this->getParam('with_ips', true, true);
|
||||||
$no_std_subdomain = $this->getParam('no_std_subdomain', true, false);
|
$no_std_subdomain = $this->getParam('no_std_subdomain', true, false);
|
||||||
@@ -982,7 +982,7 @@ class Domains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEn
|
|||||||
|
|
||||||
// parameters
|
// parameters
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$domainname = $this->getParam('domainname', $dn_optional, '');
|
$domainname = $this->getParam('domainname', $dn_optional, '');
|
||||||
|
|
||||||
// get requested domain
|
// get requested domain
|
||||||
@@ -1858,7 +1858,7 @@ class Domains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEn
|
|||||||
{
|
{
|
||||||
if ($this->isAdmin()) {
|
if ($this->isAdmin()) {
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$domainname = $this->getParam('domainname', $dn_optional, '');
|
$domainname = $this->getParam('domainname', $dn_optional, '');
|
||||||
$is_stdsubdomain = $this->getParam('is_stdsubdomain', true, 0);
|
$is_stdsubdomain = $this->getParam('is_stdsubdomain', true, 0);
|
||||||
$remove_subbutmain_domains = $this->getParam('delete_mainsubdomains', true, 0);
|
$remove_subbutmain_domains = $this->getParam('delete_mainsubdomains', true, 0);
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class EmailAccounts extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Reso
|
|||||||
|
|
||||||
// parameter
|
// parameter
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ea_optional = ($id <= 0 ? false : true);
|
$ea_optional = $id > 0;
|
||||||
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
||||||
$email_password = $this->getParam('email_password');
|
$email_password = $this->getParam('email_password');
|
||||||
$alternative_email = $this->getParam('alternative_email', true, '');
|
$alternative_email = $this->getParam('alternative_email', true, '');
|
||||||
@@ -317,7 +317,7 @@ class EmailAccounts extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Reso
|
|||||||
|
|
||||||
// parameter
|
// parameter
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ea_optional = ($id <= 0 ? false : true);
|
$ea_optional = $id > 0;
|
||||||
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
||||||
|
|
||||||
// validation
|
// validation
|
||||||
@@ -333,7 +333,7 @@ class EmailAccounts extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Reso
|
|||||||
|
|
||||||
$password = $this->getParam('email_password', true, '');
|
$password = $this->getParam('email_password', true, '');
|
||||||
$quota = $this->getParam('email_quota', true, $result['quota']);
|
$quota = $this->getParam('email_quota', true, $result['quota']);
|
||||||
$deactivated = $this->getBoolParam('deactivated', true, (strtolower($result['postfix']) == 'n' ? true : false));
|
$deactivated = $this->getBoolParam('deactivated', true, strtolower($result['postfix']) == 'n');
|
||||||
|
|
||||||
// get needed customer info to reduce the email-account-counter by one
|
// get needed customer info to reduce the email-account-counter by one
|
||||||
$customer = $this->getCustomerData();
|
$customer = $this->getCustomerData();
|
||||||
@@ -451,7 +451,7 @@ class EmailAccounts extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Reso
|
|||||||
|
|
||||||
// parameter
|
// parameter
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ea_optional = ($id <= 0 ? false : true);
|
$ea_optional = $id > 0;
|
||||||
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
||||||
$delete_userfiles = $this->getBoolParam('delete_userfiles', true, 0);
|
$delete_userfiles = $this->getBoolParam('delete_userfiles', true, 0);
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class EmailForwarders extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Re
|
|||||||
|
|
||||||
// parameter
|
// parameter
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ea_optional = ($id <= 0 ? false : true);
|
$ea_optional = $id > 0;
|
||||||
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
||||||
$destination = $this->getParam('destination');
|
$destination = $this->getParam('destination');
|
||||||
|
|
||||||
@@ -149,7 +149,7 @@ class EmailForwarders extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Re
|
|||||||
|
|
||||||
// parameter
|
// parameter
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ea_optional = ($id <= 0 ? false : true);
|
$ea_optional = $id > 0;
|
||||||
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
||||||
|
|
||||||
// validation
|
// validation
|
||||||
@@ -198,7 +198,7 @@ class EmailForwarders extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Re
|
|||||||
|
|
||||||
// parameter
|
// parameter
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ea_optional = ($id <= 0 ? false : true);
|
$ea_optional = $id > 0;
|
||||||
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
||||||
|
|
||||||
// validation
|
// validation
|
||||||
@@ -239,7 +239,7 @@ class EmailForwarders extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Re
|
|||||||
|
|
||||||
// parameter
|
// parameter
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ea_optional = ($id <= 0 ? false : true);
|
$ea_optional = $id > 0;
|
||||||
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
||||||
$forwarderid = $this->getParam('forwarderid');
|
$forwarderid = $this->getParam('forwarderid');
|
||||||
|
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ class Emails extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
|
|||||||
public function get()
|
public function get()
|
||||||
{
|
{
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ea_optional = ($id <= 0 ? false : true);
|
$ea_optional = $id > 0;
|
||||||
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
||||||
|
|
||||||
$params = array();
|
$params = array();
|
||||||
@@ -223,7 +223,7 @@ class Emails extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
|
|||||||
}
|
}
|
||||||
|
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ea_optional = ($id <= 0 ? false : true);
|
$ea_optional = $id > 0;
|
||||||
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
||||||
|
|
||||||
$result = $this->apiCall('Emails.get', array(
|
$result = $this->apiCall('Emails.get', array(
|
||||||
@@ -378,7 +378,7 @@ class Emails extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
|
|||||||
}
|
}
|
||||||
|
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$ea_optional = ($id <= 0 ? false : true);
|
$ea_optional = $id > 0;
|
||||||
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
$emailaddr = $this->getParam('emailaddr', $ea_optional, '');
|
||||||
|
|
||||||
$result = $this->apiCall('Emails.get', array(
|
$result = $this->apiCall('Emails.get', array(
|
||||||
|
|||||||
@@ -302,7 +302,7 @@ class Ftps extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEntit
|
|||||||
public function get()
|
public function get()
|
||||||
{
|
{
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$un_optional = ($id <= 0 ? false : true);
|
$un_optional = $id > 0;
|
||||||
$username = $this->getParam('username', $un_optional, '');
|
$username = $this->getParam('username', $un_optional, '');
|
||||||
|
|
||||||
$params = array();
|
$params = array();
|
||||||
@@ -379,7 +379,7 @@ class Ftps extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEntit
|
|||||||
}
|
}
|
||||||
|
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$un_optional = ($id <= 0 ? false : true);
|
$un_optional = $id > 0;
|
||||||
$username = $this->getParam('username', $un_optional, '');
|
$username = $this->getParam('username', $un_optional, '');
|
||||||
|
|
||||||
$result = $this->apiCall('Ftps.get', array(
|
$result = $this->apiCall('Ftps.get', array(
|
||||||
@@ -554,7 +554,7 @@ class Ftps extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEntit
|
|||||||
public function delete()
|
public function delete()
|
||||||
{
|
{
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$un_optional = ($id <= 0 ? false : true);
|
$un_optional = $id > 0;
|
||||||
$username = $this->getParam('username', $un_optional, '');
|
$username = $this->getParam('username', $un_optional, '');
|
||||||
$delete_userfiles = $this->getBoolParam('delete_userfiles', true, 0);
|
$delete_userfiles = $this->getBoolParam('delete_userfiles', true, 0);
|
||||||
|
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ class HostingPlans extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resou
|
|||||||
{
|
{
|
||||||
if ($this->isAdmin()) {
|
if ($this->isAdmin()) {
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$planname = $this->getParam('planname', $dn_optional, '');
|
$planname = $this->getParam('planname', $dn_optional, '');
|
||||||
$result_stmt = Database::prepare("
|
$result_stmt = Database::prepare("
|
||||||
SELECT * FROM `" . TABLE_PANEL_PLANS . "` WHERE " . ($id > 0 ? "`id` = :iddn" : "`name` = :iddn") . ($this->getUserDetail('customers_see_all') ? '' : " AND `adminid` = :adminid"));
|
SELECT * FROM `" . TABLE_PANEL_PLANS . "` WHERE " . ($id > 0 ? "`id` = :iddn" : "`name` = :iddn") . ($this->getUserDetail('customers_see_all') ? '' : " AND `adminid` = :adminid"));
|
||||||
@@ -323,7 +323,7 @@ class HostingPlans extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resou
|
|||||||
|
|
||||||
// parameters
|
// parameters
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$planname = $this->getParam('planname', $dn_optional, '');
|
$planname = $this->getParam('planname', $dn_optional, '');
|
||||||
|
|
||||||
// get requested hosting-plan
|
// get requested hosting-plan
|
||||||
@@ -414,7 +414,7 @@ class HostingPlans extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resou
|
|||||||
{
|
{
|
||||||
if ($this->isAdmin()) {
|
if ($this->isAdmin()) {
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$planname = $this->getParam('planname', $dn_optional, '');
|
$planname = $this->getParam('planname', $dn_optional, '');
|
||||||
|
|
||||||
// get requested hosting-plan
|
// get requested hosting-plan
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ class Mysqls extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
|
|||||||
public function get()
|
public function get()
|
||||||
{
|
{
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$dbname = $this->getParam('dbname', $dn_optional, '');
|
$dbname = $this->getParam('dbname', $dn_optional, '');
|
||||||
$dbserver = $this->getParam('mysql_server', true, -1);
|
$dbserver = $this->getParam('mysql_server', true, -1);
|
||||||
|
|
||||||
@@ -304,7 +304,7 @@ class Mysqls extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
|
|||||||
public function update()
|
public function update()
|
||||||
{
|
{
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$dbname = $this->getParam('dbname', $dn_optional, '');
|
$dbname = $this->getParam('dbname', $dn_optional, '');
|
||||||
$dbserver = $this->getParam('mysql_server', true, -1);
|
$dbserver = $this->getParam('mysql_server', true, -1);
|
||||||
$customer = $this->getCustomerData();
|
$customer = $this->getCustomerData();
|
||||||
@@ -488,7 +488,7 @@ class Mysqls extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
|
|||||||
public function delete()
|
public function delete()
|
||||||
{
|
{
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$dbname = $this->getParam('dbname', $dn_optional, '');
|
$dbname = $this->getParam('dbname', $dn_optional, '');
|
||||||
$dbserver = $this->getParam('mysql_server', true, -1);
|
$dbserver = $this->getParam('mysql_server', true, -1);
|
||||||
$customer = $this->getCustomerData();
|
$customer = $this->getCustomerData();
|
||||||
|
|||||||
@@ -390,7 +390,7 @@ class SubDomains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
|
|||||||
public function get()
|
public function get()
|
||||||
{
|
{
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$domainname = $this->getParam('domainname', $dn_optional, '');
|
$domainname = $this->getParam('domainname', $dn_optional, '');
|
||||||
|
|
||||||
// convert possible idn domain to punycode
|
// convert possible idn domain to punycode
|
||||||
@@ -506,7 +506,7 @@ class SubDomains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
|
|||||||
public function update()
|
public function update()
|
||||||
{
|
{
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$domainname = $this->getParam('domainname', $dn_optional, '');
|
$domainname = $this->getParam('domainname', $dn_optional, '');
|
||||||
|
|
||||||
if ($this->isAdmin() == false && Settings::IsInList('panel.customer_hide_options', 'domains')) {
|
if ($this->isAdmin() == false && Settings::IsInList('panel.customer_hide_options', 'domains')) {
|
||||||
@@ -936,7 +936,7 @@ class SubDomains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
|
|||||||
public function delete()
|
public function delete()
|
||||||
{
|
{
|
||||||
$id = $this->getParam('id', true, 0);
|
$id = $this->getParam('id', true, 0);
|
||||||
$dn_optional = ($id <= 0 ? false : true);
|
$dn_optional = $id > 0;
|
||||||
$domainname = $this->getParam('domainname', $dn_optional, '');
|
$domainname = $this->getParam('domainname', $dn_optional, '');
|
||||||
|
|
||||||
if ($this->isAdmin() == false && Settings::IsInList('panel.customer_hide_options', 'domains')) {
|
if ($this->isAdmin() == false && Settings::IsInList('panel.customer_hide_options', 'domains')) {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class BackupCron extends \Froxlor\Cron\FroxlorCron
|
|||||||
$BackupPidStatus = @posix_kill($BackupPid, 0);
|
$BackupPidStatus = @posix_kill($BackupPid, 0);
|
||||||
} else {
|
} else {
|
||||||
system("kill -CHLD " . $BackupPid . " 1> /dev/null 2> /dev/null", $BackupPidStatus);
|
system("kill -CHLD " . $BackupPid . " 1> /dev/null 2> /dev/null", $BackupPidStatus);
|
||||||
$BackupPidStatus = $BackupPidStatus ? false : true;
|
$BackupPidStatus = !$BackupPidStatus;
|
||||||
}
|
}
|
||||||
if ($BackupPidStatus) {
|
if ($BackupPidStatus) {
|
||||||
FroxlorLogger::getInstanceOf()->logAction(\Froxlor\FroxlorLogger::CRON_ACTION, LOG_INFO, 'Backup run already in progress');
|
FroxlorLogger::getInstanceOf()->logAction(\Froxlor\FroxlorLogger::CRON_ACTION, LOG_INFO, 'Backup run already in progress');
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class TrafficCron extends \Froxlor\Cron\FroxlorCron
|
|||||||
$TrafficPidStatus = @posix_kill($TrafficPid, 0);
|
$TrafficPidStatus = @posix_kill($TrafficPid, 0);
|
||||||
} else {
|
} else {
|
||||||
system("kill -CHLD " . $TrafficPid . " 1> /dev/null 2> /dev/null", $TrafficPidStatus);
|
system("kill -CHLD " . $TrafficPid . " 1> /dev/null 2> /dev/null", $TrafficPidStatus);
|
||||||
$TrafficPidStatus = $TrafficPidStatus ? false : true;
|
$TrafficPidStatus = !$TrafficPidStatus;
|
||||||
}
|
}
|
||||||
if ($TrafficPidStatus) {
|
if ($TrafficPidStatus) {
|
||||||
\Froxlor\FroxlorLogger::getInstanceOf()->logAction(\Froxlor\FroxlorLogger::CRON_ACTION, LOG_INFO, 'Traffic Run already in progress');
|
\Froxlor\FroxlorLogger::getInstanceOf()->logAction(\Froxlor\FroxlorLogger::CRON_ACTION, LOG_INFO, 'Traffic Run already in progress');
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class Customer
|
|||||||
$result = $result_stmt->fetch(\PDO::FETCH_ASSOC);
|
$result = $result_stmt->fetch(\PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
if (is_array($result) && isset($result['perlenabled'])) {
|
if (is_array($result) && isset($result['perlenabled'])) {
|
||||||
return ($result['perlenabled'] == '1') ? true : false;
|
return $result['perlenabled'] == '1';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class Directory
|
|||||||
'dir' => FileDir::makeCorrectDir($this->dir)
|
'dir' => FileDir::makeCorrectDir($this->dir)
|
||||||
));
|
));
|
||||||
if ($uo_res != false && isset($uo_res['usropts'])) {
|
if ($uo_res != false && isset($uo_res['usropts'])) {
|
||||||
return ($uo_res['usropts'] > 0 ? true : false);
|
return $uo_res['usropts'] > 0;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -77,7 +77,7 @@ class Directory
|
|||||||
'dir' => FileDir::makeCorrectDir($this->dir)
|
'dir' => FileDir::makeCorrectDir($this->dir)
|
||||||
));
|
));
|
||||||
if ($up_res != false && isset($up_res['usrprot'])) {
|
if ($up_res != false && isset($up_res['usrprot'])) {
|
||||||
return ($up_res['usrprot'] > 0 ? true : false);
|
return $up_res['usrprot'] > 0;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,6 @@ class FroxlorVhostSettings
|
|||||||
{
|
{
|
||||||
$sel_stmt = Database::prepare("SELECT COUNT(*) as vcentries FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `vhostcontainer`= '1'" . ($need_ssl ? " AND `ssl` = '1'" : ""));
|
$sel_stmt = Database::prepare("SELECT COUNT(*) as vcentries FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `vhostcontainer`= '1'" . ($need_ssl ? " AND `ssl` = '1'" : ""));
|
||||||
$result = Database::pexecute_first($sel_stmt);
|
$result = Database::pexecute_first($sel_stmt);
|
||||||
return $result['vcentries'] > 0 ? true : false;
|
return $result['vcentries'] > 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ class Crypt
|
|||||||
if ($pwd_hash == $pwd_check || password_verify($password, $pwd_hash)) {
|
if ($pwd_hash == $pwd_check || password_verify($password, $pwd_hash)) {
|
||||||
|
|
||||||
// check for update of hash (only if our database is ready to handle the bigger string)
|
// check for update of hash (only if our database is ready to handle the bigger string)
|
||||||
$is_ready = (\Froxlor\Froxlor::versionCompare2("0.9.33", \Froxlor\Froxlor::getVersion()) <= 0 ? true : false);
|
$is_ready = \Froxlor\Froxlor::versionCompare2("0.9.33", \Froxlor\Froxlor::getVersion()) <= 0 ;
|
||||||
if ((password_needs_rehash($pwd_hash, $algo) || $update_hash) && $is_ready) {
|
if ((password_needs_rehash($pwd_hash, $algo) || $update_hash) && $is_ready) {
|
||||||
$upd_stmt = \Froxlor\Database\Database::prepare("
|
$upd_stmt = \Froxlor\Database\Database::prepare("
|
||||||
UPDATE " . $table . " SET `password` = :newpasswd WHERE `" . $uid . "` = :uid
|
UPDATE " . $table . " SET `password` = :newpasswd WHERE `" . $uid . "` = :uid
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class Mailer extends \PHPMailer\PHPMailer\PHPMailer
|
|||||||
if (Settings::Get('system.mail_use_smtp')) {
|
if (Settings::Get('system.mail_use_smtp')) {
|
||||||
$this->isSMTP();
|
$this->isSMTP();
|
||||||
$this->Host = Settings::Get('system.mail_smtp_host');
|
$this->Host = Settings::Get('system.mail_smtp_host');
|
||||||
$this->SMTPAuth = Settings::Get('system.mail_smtp_auth') == '1' ? true : false;
|
$this->SMTPAuth = Settings::Get('system.mail_smtp_auth') == '1';
|
||||||
$this->Username = Settings::Get('system.mail_smtp_user');
|
$this->Username = Settings::Get('system.mail_smtp_user');
|
||||||
$this->Password = Settings::Get('system.mail_smtp_passwd');
|
$this->Password = Settings::Get('system.mail_smtp_passwd');
|
||||||
if (Settings::Get('system.mail_smtp_usetls')) {
|
if (Settings::Get('system.mail_smtp_usetls')) {
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class Listing
|
|||||||
'pagination' => $collection_data['pagination'],
|
'pagination' => $collection_data['pagination'],
|
||||||
'empty_msg' => $tabellisting['empty_msg'] ?? null,
|
'empty_msg' => $tabellisting['empty_msg'] ?? null,
|
||||||
'total_entries' => ($collection->getPagination() instanceof Pagination) ? $collection->getPagination()->getEntries() : 0,
|
'total_entries' => ($collection->getPagination() instanceof Pagination) ? $collection->getPagination()->getEntries() : 0,
|
||||||
'is_search' => ($collection->getPagination() instanceof Pagination) ? $collection->getPagination()->isSearchResult() : false,
|
'is_search' => $collection->getPagination() instanceof Pagination && $collection->getPagination()->isSearchResult(),
|
||||||
'self_overview' => $tabellisting['self_overview'] ?? [],
|
'self_overview' => $tabellisting['self_overview'] ?? [],
|
||||||
'available_columns' => self::getAvailableColumnsForListing($tabellisting)
|
'available_columns' => self::getAvailableColumnsForListing($tabellisting)
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -14,6 +14,9 @@
|
|||||||
* @package Formfields
|
* @package Formfields
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Froxlor\Settings;
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'admin_add' => array(
|
'admin_add' => array(
|
||||||
'title' => $lng['admin']['admin_add'],
|
'title' => $lng['admin']['admin_add'],
|
||||||
@@ -37,7 +40,7 @@ return array(
|
|||||||
'admin_password_suggestion' => array(
|
'admin_password_suggestion' => array(
|
||||||
'next_to_prefix' => $lng['customer']['generated_pwd'].':',
|
'next_to_prefix' => $lng['customer']['generated_pwd'].':',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
|
'visible' => (Settings::Get('panel.password_regex') == ''),
|
||||||
'value' => \Froxlor\System\Crypt::generatePassword(),
|
'value' => \Froxlor\System\Crypt::generatePassword(),
|
||||||
'readonly' => true
|
'readonly' => true
|
||||||
)
|
)
|
||||||
@@ -55,8 +58,8 @@ return array(
|
|||||||
'desc' => $lng['usersettings']['api_allowed']['description'],
|
'desc' => $lng['usersettings']['api_allowed']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => (\Froxlor\Settings::Get('api.enabled') == '1' ? true : false),
|
'checked' => Settings::Get('api.enabled') == '1',
|
||||||
'visible' => (\Froxlor\Settings::Get('api.enabled') == '1' ? true : false)
|
'visible' => Settings::Get('api.enabled') == '1'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -183,7 +186,7 @@ return array(
|
|||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => 0,
|
'value' => 0,
|
||||||
'maxlength' => 9,
|
'maxlength' => 9,
|
||||||
'visible' => (\Froxlor\Settings::Get('system.mail_quota_enabled') == '1' ? true : false),
|
'visible' => Settings::Get('system.mail_quota_enabled') == '1',
|
||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'ftps' => array(
|
'ftps' => array(
|
||||||
|
|||||||
@@ -33,18 +33,18 @@ return array(
|
|||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => $result['deactivated'],
|
'checked' => $result['deactivated'],
|
||||||
'visible' => ($result['adminid'] == $userinfo['userid'] ? false : true)
|
'visible' => $result['adminid'] != $userinfo['userid']
|
||||||
),
|
),
|
||||||
'admin_password' => array(
|
'admin_password' => array(
|
||||||
'label' => $lng['login']['password'] . ' (' . $lng['panel']['emptyfornochanges'] . ')',
|
'label' => $lng['login']['password'] . ' (' . $lng['panel']['emptyfornochanges'] . ')',
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
'autocomplete' => 'off',
|
'autocomplete' => 'off',
|
||||||
'visible' => ($result['adminid'] == $userinfo['userid'] ? false : true),
|
'visible' => $result['adminid'] != $userinfo['userid'],
|
||||||
'next_to' => [
|
'next_to' => [
|
||||||
'admin_password_suggestion' => array(
|
'admin_password_suggestion' => array(
|
||||||
'next_to_prefix' => $lng['customer']['generated_pwd'].':',
|
'next_to_prefix' => $lng['customer']['generated_pwd'].':',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == '' && ($result['adminid'] == $userinfo['userid'] ? false : true)),
|
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == '' && !($result['adminid'] == $userinfo['userid'])),
|
||||||
'value' => \Froxlor\System\Crypt::generatePassword(),
|
'value' => \Froxlor\System\Crypt::generatePassword(),
|
||||||
'readonly' => true
|
'readonly' => true
|
||||||
)
|
)
|
||||||
@@ -55,7 +55,7 @@ return array(
|
|||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $languages,
|
'select_var' => $languages,
|
||||||
'selected' => $result['def_language'],
|
'selected' => $result['def_language'],
|
||||||
'visible' => ($result['adminid'] == $userinfo['userid'] ? false : true)
|
'visible' => $result['adminid'] != $userinfo['userid']
|
||||||
),
|
),
|
||||||
'api_allowed' => array(
|
'api_allowed' => array(
|
||||||
'label' => $lng['usersettings']['api_allowed']['title'],
|
'label' => $lng['usersettings']['api_allowed']['title'],
|
||||||
@@ -63,7 +63,7 @@ return array(
|
|||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => $result['api_allowed'],
|
'checked' => $result['api_allowed'],
|
||||||
'visible' => (\Froxlor\Settings::Get('api.enabled') == '1' ? true : false)
|
'visible' => \Froxlor\Settings::Get('api.enabled') == '1'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -102,7 +102,7 @@ return array(
|
|||||||
'section_c' => array(
|
'section_c' => array(
|
||||||
'title' => $lng['admin']['servicedata'],
|
'title' => $lng['admin']['servicedata'],
|
||||||
'image' => 'icons/user_add.png',
|
'image' => 'icons/user_add.png',
|
||||||
'visible' => ($result['adminid'] != $userinfo['userid'] ? true : false),
|
'visible' => $result['adminid'] != $userinfo['userid'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'ipaddress' => array(
|
'ipaddress' => array(
|
||||||
'label' => $lng['serversettings']['ipaddress']['title'],
|
'label' => $lng['serversettings']['ipaddress']['title'],
|
||||||
@@ -195,7 +195,7 @@ return array(
|
|||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => $result['email_quota'],
|
'value' => $result['email_quota'],
|
||||||
'maxlength' => 9,
|
'maxlength' => 9,
|
||||||
'visible' => (\Froxlor\Settings::Get('system.mail_quota_enabled') == '1' ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.mail_quota_enabled') == '1',
|
||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'ftps' => array(
|
'ftps' => array(
|
||||||
|
|||||||
@@ -71,8 +71,8 @@ return array(
|
|||||||
'desc' => $lng['usersettings']['api_allowed']['description'],
|
'desc' => $lng['usersettings']['api_allowed']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => (\Froxlor\Settings::Get('api.enabled') == '1' ? true : false),
|
'checked' => \Froxlor\Settings::Get('api.enabled') == '1',
|
||||||
'visible' => (\Froxlor\Settings::Get('api.enabled') == '1' ? true : false)
|
'visible' => \Froxlor\Settings::Get('api.enabled') == '1'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -213,7 +213,7 @@ return array(
|
|||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => 0,
|
'value' => 0,
|
||||||
'maxlength' => 9,
|
'maxlength' => 9,
|
||||||
'visible' => (\Froxlor\Settings::Get('system.mail_quota_enabled') == '1' ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.mail_quota_enabled') == '1',
|
||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'email_imap' => array(
|
'email_imap' => array(
|
||||||
@@ -250,7 +250,7 @@ return array(
|
|||||||
'checked' => true
|
'checked' => true
|
||||||
),
|
),
|
||||||
'allowed_phpconfigs' => array(
|
'allowed_phpconfigs' => array(
|
||||||
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false),
|
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1)),
|
||||||
'label' => $lng['admin']['phpsettings']['title'],
|
'label' => $lng['admin']['phpsettings']['title'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => $phpconfigs,
|
'values' => $phpconfigs,
|
||||||
@@ -271,8 +271,8 @@ return array(
|
|||||||
'label' => $lng['admin']['dnsenabled'] . '?',
|
'label' => $lng['admin']['dnsenabled'] . '?',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => (\Froxlor\Settings::Get('system.dnsenabled') == '1' ? true : false),
|
'checked' => \Froxlor\Settings::Get('system.dnsenabled') == '1',
|
||||||
'visible' => (\Froxlor\Settings::Get('system.dnsenabled') == '1' ? true : false)
|
'visible' => \Froxlor\Settings::Get('system.dnsenabled') == '1'
|
||||||
),
|
),
|
||||||
'logviewenabled' => array(
|
'logviewenabled' => array(
|
||||||
'label' => $lng['admin']['logviewenabled'] . '?',
|
'label' => $lng['admin']['logviewenabled'] . '?',
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ return array(
|
|||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => $result['api_allowed'],
|
'checked' => $result['api_allowed'],
|
||||||
'visible' => (\Froxlor\Settings::Get('api.enabled') == '1' ? true : false)
|
'visible' => \Froxlor\Settings::Get('api.enabled') == '1'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -225,7 +225,7 @@ return array(
|
|||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => $result['email_quota'],
|
'value' => $result['email_quota'],
|
||||||
'maxlength' => 9,
|
'maxlength' => 9,
|
||||||
'visible' => (\Froxlor\Settings::Get('system.mail_quota_enabled') == '1' ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.mail_quota_enabled') == '1',
|
||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'email_imap' => array(
|
'email_imap' => array(
|
||||||
@@ -262,7 +262,7 @@ return array(
|
|||||||
'checked' => $result['phpenabled']
|
'checked' => $result['phpenabled']
|
||||||
),
|
),
|
||||||
'allowed_phpconfigs' => array(
|
'allowed_phpconfigs' => array(
|
||||||
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false),
|
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1)),
|
||||||
'label' => $lng['admin']['phpsettings']['title'],
|
'label' => $lng['admin']['phpsettings']['title'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => $phpconfigs,
|
'values' => $phpconfigs,
|
||||||
@@ -280,7 +280,7 @@ return array(
|
|||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => $result['dnsenabled'],
|
'checked' => $result['dnsenabled'],
|
||||||
'visible' => (\Froxlor\Settings::Get('system.dnsenabled') == '1' ? true : false)
|
'visible' => \Froxlor\Settings::Get('system.dnsenabled') == '1'
|
||||||
),
|
),
|
||||||
'logviewenabled' => array(
|
'logviewenabled' => array(
|
||||||
'label' => $lng['admin']['logviewenabled'] . '?',
|
'label' => $lng['admin']['logviewenabled'] . '?',
|
||||||
|
|||||||
@@ -14,6 +14,9 @@
|
|||||||
* @package Formfields
|
* @package Formfields
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Froxlor\Settings;
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'domain_add' => array(
|
'domain_add' => array(
|
||||||
'title' => $lng['admin']['domain_add'],
|
'title' => $lng['admin']['domain_add'],
|
||||||
@@ -35,7 +38,7 @@ return array(
|
|||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'adminid' => array(
|
'adminid' => array(
|
||||||
'visible' => ($userinfo['customers_see_all'] == '1' ? true : false),
|
'visible' => $userinfo['customers_see_all'] == '1',
|
||||||
'label' => $lng['admin']['admin'],
|
'label' => $lng['admin']['admin'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $admins,
|
'select_var' => $admins,
|
||||||
@@ -103,7 +106,7 @@ return array(
|
|||||||
'selected' => 0
|
'selected' => 0
|
||||||
),
|
),
|
||||||
'dkim' => array(
|
'dkim' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('dkim.use_dkim') == '1' ? true : false),
|
'visible' => Settings::Get('dkim.use_dkim') == '1',
|
||||||
'label' => 'DomainKeys',
|
'label' => 'DomainKeys',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
@@ -116,7 +119,7 @@ return array(
|
|||||||
'image' => 'icons/domain_add.png',
|
'image' => 'icons/domain_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'documentroot' => array(
|
'documentroot' => array(
|
||||||
'visible' => ($userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => $userinfo['change_serversettings'] == '1',
|
||||||
'label' => 'DocumentRoot',
|
'label' => 'DocumentRoot',
|
||||||
'desc' => $lng['panel']['emptyfordefault'],
|
'desc' => $lng['panel']['emptyfordefault'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
@@ -126,7 +129,7 @@ return array(
|
|||||||
'desc' => $lng['domains']['ipandport_multi']['description'],
|
'desc' => $lng['domains']['ipandport_multi']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => $ipsandports,
|
'values' => $ipsandports,
|
||||||
'value' => explode(',', \Froxlor\Settings::Get('system.defaultip')),
|
'value' => explode(',', Settings::Get('system.defaultip')),
|
||||||
'is_array' => 1,
|
'is_array' => 1,
|
||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
@@ -135,7 +138,7 @@ return array(
|
|||||||
'desc' => $lng['admin']['selectserveralias_desc'],
|
'desc' => $lng['admin']['selectserveralias_desc'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $serveraliasoptions,
|
'select_var' => $serveraliasoptions,
|
||||||
'selected' => \Froxlor\Settings::Get('system.domaindefaultalias')
|
'selected' => Settings::Get('system.domaindefaultalias')
|
||||||
),
|
),
|
||||||
'speciallogfile' => array(
|
'speciallogfile' => array(
|
||||||
'label' => $lng['admin']['speciallogfile']['title'],
|
'label' => $lng['admin']['speciallogfile']['title'],
|
||||||
@@ -145,7 +148,7 @@ return array(
|
|||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'specialsettings' => array(
|
'specialsettings' => array(
|
||||||
'visible' => ($userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => $userinfo['change_serversettings'] == '1',
|
||||||
'label' => $lng['admin']['ownvhostsettings'],
|
'label' => $lng['admin']['ownvhostsettings'],
|
||||||
'desc' => $lng['serversettings']['default_vhostconf']['description'],
|
'desc' => $lng['serversettings']['default_vhostconf']['description'],
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
@@ -153,7 +156,7 @@ return array(
|
|||||||
'rows' => 12
|
'rows' => 12
|
||||||
),
|
),
|
||||||
'notryfiles' => array(
|
'notryfiles' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.webserver') == 'nginx' && $userinfo['change_serversettings'] == '1'),
|
'visible' => (Settings::Get('system.webserver') == 'nginx' && $userinfo['change_serversettings'] == '1'),
|
||||||
'label' => $lng['admin']['notryfiles']['title'],
|
'label' => $lng['admin']['notryfiles']['title'],
|
||||||
'desc' => $lng['admin']['notryfiles']['description'],
|
'desc' => $lng['admin']['notryfiles']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -179,17 +182,17 @@ return array(
|
|||||||
'section_bssl' => array(
|
'section_bssl' => array(
|
||||||
'title' => $lng['admin']['webserversettings_ssl'],
|
'title' => $lng['admin']['webserversettings_ssl'],
|
||||||
'image' => 'icons/domain_add.png',
|
'image' => 'icons/domain_add.png',
|
||||||
'visible' => \Froxlor\Settings::Get('system.use_ssl') == '1' ? true : false,
|
'visible' => Settings::Get('system.use_ssl') == '1',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'sslenabled' => array(
|
'sslenabled' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false),
|
'visible' => !empty($ssl_ipsandports),
|
||||||
'label' => $lng['admin']['domain_sslenabled'],
|
'label' => $lng['admin']['domain_sslenabled'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => true
|
'checked' => true
|
||||||
),
|
),
|
||||||
'no_ssl_available_info' => array(
|
'no_ssl_available_info' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false),
|
'visible' => !empty($ssl_ipsandports),
|
||||||
'label' => 'SSL',
|
'label' => 'SSL',
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $lng['panel']['nosslipsavailable']
|
'value' => $lng['panel']['nosslipsavailable']
|
||||||
@@ -199,11 +202,11 @@ return array(
|
|||||||
'desc' => $lng['domains']['ipandport_ssl_multi']['description'],
|
'desc' => $lng['domains']['ipandport_ssl_multi']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => $ssl_ipsandports,
|
'values' => $ssl_ipsandports,
|
||||||
'value' => explode(',', \Froxlor\Settings::Get('system.defaultsslip')),
|
'value' => explode(',', Settings::Get('system.defaultsslip')),
|
||||||
'is_array' => 1
|
'is_array' => 1
|
||||||
),
|
),
|
||||||
'ssl_redirect' => array(
|
'ssl_redirect' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false),
|
'visible' => !empty($ssl_ipsandports),
|
||||||
'label' => $lng['domains']['ssl_redirect']['title'],
|
'label' => $lng['domains']['ssl_redirect']['title'],
|
||||||
'desc' => $lng['domains']['ssl_redirect']['description'],
|
'desc' => $lng['domains']['ssl_redirect']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -211,7 +214,7 @@ return array(
|
|||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'letsencrypt' => array(
|
'letsencrypt' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.leenabled') == '1' ? (!empty($ssl_ipsandports) ? true : false) : false),
|
'visible' => (Settings::Get('system.leenabled') == '1' && !empty($ssl_ipsandports)),
|
||||||
'label' => $lng['admin']['letsencrypt']['title'],
|
'label' => $lng['admin']['letsencrypt']['title'],
|
||||||
'desc' => $lng['admin']['letsencrypt']['description'],
|
'desc' => $lng['admin']['letsencrypt']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -219,7 +222,7 @@ return array(
|
|||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'http2' => array(
|
'http2' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' && \Froxlor\Settings::Get('system.http2_support') == '1',
|
'visible' => !empty($ssl_ipsandports) && Settings::Get('system.webserver') != 'lighttpd' && Settings::Get('system.http2_support') == '1',
|
||||||
'label' => $lng['admin']['domain_http2']['title'],
|
'label' => $lng['admin']['domain_http2']['title'],
|
||||||
'desc' => $lng['admin']['domain_http2']['description'],
|
'desc' => $lng['admin']['domain_http2']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -227,14 +230,14 @@ return array(
|
|||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'override_tls' => array(
|
'override_tls' => array(
|
||||||
'visible' => ((!empty($ssl_ipsandports) ? true : false) && $userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => !empty($ssl_ipsandports) && $userinfo['change_serversettings'] == '1',
|
||||||
'label' => $lng['admin']['domain_override_tls'],
|
'label' => $lng['admin']['domain_override_tls'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'ssl_protocols' => array(
|
'ssl_protocols' => array(
|
||||||
'visible' => ((!empty($ssl_ipsandports) ? true : false) && $userinfo['change_serversettings'] == '1' && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' ? true : false),
|
'visible' => !empty($ssl_ipsandports) && $userinfo['change_serversettings'] == '1' && Settings::Get('system.webserver') != 'lighttpd',
|
||||||
'label' => $lng['serversettings']['ssl']['ssl_protocols']['title'],
|
'label' => $lng['serversettings']['ssl']['ssl_protocols']['title'],
|
||||||
'desc' => $lng['serversettings']['ssl']['ssl_protocols']['description'],
|
'desc' => $lng['serversettings']['ssl']['ssl_protocols']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -262,21 +265,21 @@ return array(
|
|||||||
'is_array' => 1
|
'is_array' => 1
|
||||||
),
|
),
|
||||||
'ssl_cipher_list' => array(
|
'ssl_cipher_list' => array(
|
||||||
'visible' => ((!empty($ssl_ipsandports) ? true : false) && $userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => !empty($ssl_ipsandports) && $userinfo['change_serversettings'] == '1',
|
||||||
'label' => $lng['serversettings']['ssl']['ssl_cipher_list']['title'],
|
'label' => $lng['serversettings']['ssl']['ssl_cipher_list']['title'],
|
||||||
'desc' => $lng['serversettings']['ssl']['ssl_cipher_list']['description'],
|
'desc' => $lng['serversettings']['ssl']['ssl_cipher_list']['description'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => \Froxlor\Settings::Get('system.ssl_cipher_list')
|
'value' => Settings::Get('system.ssl_cipher_list')
|
||||||
),
|
),
|
||||||
'tlsv13_cipher_list' => array(
|
'tlsv13_cipher_list' => array(
|
||||||
'visible' => ((!empty($ssl_ipsandports) ? true : false) && $userinfo['change_serversettings'] == '1' && \Froxlor\Settings::Get('system.webserver') == "apache2" && \Froxlor\Settings::Get('system.apache24') == 1 ? true : false),
|
'visible' => !empty($ssl_ipsandports) && $userinfo['change_serversettings'] == '1' && Settings::Get('system.webserver') == "apache2" && Settings::Get('system.apache24') == 1,
|
||||||
'label' => $lng['serversettings']['ssl']['tlsv13_cipher_list']['title'],
|
'label' => $lng['serversettings']['ssl']['tlsv13_cipher_list']['title'],
|
||||||
'desc' => $lng['serversettings']['ssl']['tlsv13_cipher_list']['description'],
|
'desc' => $lng['serversettings']['ssl']['tlsv13_cipher_list']['description'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => \Froxlor\Settings::Get('system.tlsv13_cipher_list')
|
'value' => Settings::Get('system.tlsv13_cipher_list')
|
||||||
),
|
),
|
||||||
'ssl_specialsettings' => array(
|
'ssl_specialsettings' => array(
|
||||||
'visible' => ((!empty($ssl_ipsandports) ? true : false) && $userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => !empty($ssl_ipsandports) && $userinfo['change_serversettings'] == '1',
|
||||||
'label' => $lng['admin']['ownsslvhostsettings'],
|
'label' => $lng['admin']['ownsslvhostsettings'],
|
||||||
'desc' => $lng['serversettings']['default_vhostconf']['description'],
|
'desc' => $lng['serversettings']['default_vhostconf']['description'],
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
@@ -284,14 +287,14 @@ return array(
|
|||||||
'rows' => 12
|
'rows' => 12
|
||||||
),
|
),
|
||||||
'include_specialsettings' => array(
|
'include_specialsettings' => array(
|
||||||
'visible' => ((!empty($ssl_ipsandports) ? true : false) && $userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => !empty($ssl_ipsandports) && $userinfo['change_serversettings'] == '1',
|
||||||
'label' => $lng['admin']['include_ownvhostsettings'],
|
'label' => $lng['admin']['include_ownvhostsettings'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'hsts_maxage' => array(
|
'hsts_maxage' => array(
|
||||||
'visible' => ($ssl_ipsandports != '' ? true : false),
|
'visible' => $ssl_ipsandports != '',
|
||||||
'label' => $lng['admin']['domain_hsts_maxage']['title'],
|
'label' => $lng['admin']['domain_hsts_maxage']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_maxage']['description'],
|
'desc' => $lng['admin']['domain_hsts_maxage']['description'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
@@ -300,7 +303,7 @@ return array(
|
|||||||
'value' => 0
|
'value' => 0
|
||||||
),
|
),
|
||||||
'hsts_sub' => array(
|
'hsts_sub' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false),
|
'visible' => !empty($ssl_ipsandports),
|
||||||
'label' => $lng['admin']['domain_hsts_incsub']['title'],
|
'label' => $lng['admin']['domain_hsts_incsub']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_incsub']['description'],
|
'desc' => $lng['admin']['domain_hsts_incsub']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -308,7 +311,7 @@ return array(
|
|||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'hsts_preload' => array(
|
'hsts_preload' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false),
|
'visible' => !empty($ssl_ipsandports),
|
||||||
'label' => $lng['admin']['domain_hsts_preload']['title'],
|
'label' => $lng['admin']['domain_hsts_preload']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_preload']['description'],
|
'desc' => $lng['admin']['domain_hsts_preload']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -316,22 +319,22 @@ return array(
|
|||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'ocsp_stapling' => array(
|
'ocsp_stapling' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd',
|
'visible' => !empty($ssl_ipsandports) && Settings::Get('system.webserver') != 'lighttpd',
|
||||||
'label' => $lng['admin']['domain_ocsp_stapling']['title'],
|
'label' => $lng['admin']['domain_ocsp_stapling']['title'],
|
||||||
'desc' => $lng['admin']['domain_ocsp_stapling']['description'] . (\Froxlor\Settings::Get('system.webserver') == 'nginx' ? $lng['admin']['domain_ocsp_stapling']['nginx_version_warning'] : ""),
|
'desc' => $lng['admin']['domain_ocsp_stapling']['description'] . (Settings::Get('system.webserver') == 'nginx' ? $lng['admin']['domain_ocsp_stapling']['nginx_version_warning'] : ""),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'honorcipherorder' => array(
|
'honorcipherorder' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false),
|
'visible' => !empty($ssl_ipsandports),
|
||||||
'label' => $lng['admin']['domain_honorcipherorder'],
|
'label' => $lng['admin']['domain_honorcipherorder'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'sessiontickets' => array(
|
'sessiontickets' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' && \Froxlor\Settings::Get('system.sessionticketsenabled' != '1'),
|
'visible' => !empty($ssl_ipsandports) && Settings::Get('system.webserver') != 'lighttpd' && Settings::Get('system.sessionticketsenabled' != '1'),
|
||||||
'label' => $lng['admin']['domain_sessiontickets'],
|
'label' => $lng['admin']['domain_sessiontickets'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
@@ -342,7 +345,7 @@ return array(
|
|||||||
'section_c' => array(
|
'section_c' => array(
|
||||||
'title' => $lng['admin']['phpserversettings'],
|
'title' => $lng['admin']['phpserversettings'],
|
||||||
'image' => 'icons/domain_add.png',
|
'image' => 'icons/domain_add.png',
|
||||||
'visible' => (($userinfo['change_serversettings'] == '1' || $userinfo['caneditphpsettings'] == '1') ? true : false),
|
'visible' => $userinfo['change_serversettings'] == '1' || $userinfo['caneditphpsettings'] == '1',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'openbasedir' => array(
|
'openbasedir' => array(
|
||||||
'label' => 'OpenBasedir',
|
'label' => 'OpenBasedir',
|
||||||
@@ -357,19 +360,19 @@ return array(
|
|||||||
'checked' => true
|
'checked' => true
|
||||||
),
|
),
|
||||||
'phpsettingid' => array(
|
'phpsettingid' => array(
|
||||||
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false),
|
'visible' => (int) Settings::Get('system.mod_fcgid') == 1 || (int) Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['admin']['phpsettings']['title'],
|
'label' => $lng['admin']['phpsettings']['title'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $phpconfigs,
|
'select_var' => $phpconfigs,
|
||||||
'selected' => (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1 ? \Froxlor\Settings::Get('phpfpm.defaultini') : \Froxlor\Settings::Get('system.mod_fcgid_defaultini')
|
'selected' => (int) Settings::Get('phpfpm.enabled') == 1 ? Settings::Get('phpfpm.defaultini') : Settings::Get('system.mod_fcgid_defaultini')
|
||||||
),
|
),
|
||||||
'mod_fcgid_starter' => array(
|
'mod_fcgid_starter' => array(
|
||||||
'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
'visible' => (int) Settings::Get('system.mod_fcgid') == 1,
|
||||||
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
||||||
'type' => 'number'
|
'type' => 'number'
|
||||||
),
|
),
|
||||||
'mod_fcgid_maxrequests' => array(
|
'mod_fcgid_maxrequests' => array(
|
||||||
'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
'visible' => (int) Settings::Get('system.mod_fcgid') == 1,
|
||||||
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
||||||
'type' => 'number'
|
'type' => 'number'
|
||||||
)
|
)
|
||||||
@@ -378,7 +381,7 @@ return array(
|
|||||||
'section_d' => array(
|
'section_d' => array(
|
||||||
'title' => $lng['admin']['nameserversettings'],
|
'title' => $lng['admin']['nameserversettings'],
|
||||||
'image' => 'icons/domain_add.png',
|
'image' => 'icons/domain_add.png',
|
||||||
'visible' => (\Froxlor\Settings::Get('system.bind_enable') == '1' && $userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => Settings::Get('system.bind_enable') == '1' && $userinfo['change_serversettings'] == '1',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'isbinddomain' => array(
|
'isbinddomain' => array(
|
||||||
'label' => 'Nameserver',
|
'label' => 'Nameserver',
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ return array(
|
|||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'adminid' => array(
|
'adminid' => array(
|
||||||
'visible' => ($userinfo['customers_see_all'] == '1' ? true : false),
|
'visible' => $userinfo['customers_see_all'] == '1',
|
||||||
'label' => $lng['admin']['admin'],
|
'label' => $lng['admin']['admin'],
|
||||||
'type' => (\Froxlor\Settings::Get('panel.allow_domain_change_admin') == '1' ? 'select' : 'infotext'),
|
'type' => (\Froxlor\Settings::Get('panel.allow_domain_change_admin') == '1' ? 'select' : 'infotext'),
|
||||||
'select_var' => (!empty($admins) ? $admins : null),
|
'select_var' => (!empty($admins) ? $admins : null),
|
||||||
@@ -46,7 +46,7 @@ return array(
|
|||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'alias' => array(
|
'alias' => array(
|
||||||
'visible' => ($alias_check == '0' ? true : false),
|
'visible' => $alias_check == '0',
|
||||||
'label' => $lng['domains']['aliasdomain'],
|
'label' => $lng['domains']['aliasdomain'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $domains,
|
'select_var' => $domains,
|
||||||
@@ -116,7 +116,7 @@ return array(
|
|||||||
'selected' => $result['subcanemaildomain']
|
'selected' => $result['subcanemaildomain']
|
||||||
),
|
),
|
||||||
'dkim' => array(
|
'dkim' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('dkim.use_dkim') == '1' ? true : false),
|
'visible' => \Froxlor\Settings::Get('dkim.use_dkim') == '1',
|
||||||
'label' => 'DomainKeys',
|
'label' => 'DomainKeys',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
@@ -129,7 +129,7 @@ return array(
|
|||||||
'image' => 'icons/domain_edit.png',
|
'image' => 'icons/domain_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'documentroot' => array(
|
'documentroot' => array(
|
||||||
'visible' => ($userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => $userinfo['change_serversettings'] == '1',
|
||||||
'label' => 'DocumentRoot',
|
'label' => 'DocumentRoot',
|
||||||
'desc' => $lng['panel']['emptyfordefault'],
|
'desc' => $lng['panel']['emptyfordefault'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
@@ -163,7 +163,7 @@ return array(
|
|||||||
'value' => '0'
|
'value' => '0'
|
||||||
),
|
),
|
||||||
'specialsettings' => array(
|
'specialsettings' => array(
|
||||||
'visible' => ($userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => $userinfo['change_serversettings'] == '1',
|
||||||
'label' => $lng['admin']['ownvhostsettings'],
|
'label' => $lng['admin']['ownvhostsettings'],
|
||||||
'desc' => $lng['serversettings']['default_vhostconf']['description'],
|
'desc' => $lng['serversettings']['default_vhostconf']['description'],
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
@@ -172,7 +172,7 @@ return array(
|
|||||||
'rows' => 12
|
'rows' => 12
|
||||||
),
|
),
|
||||||
'specialsettingsforsubdomains' => array(
|
'specialsettingsforsubdomains' => array(
|
||||||
'visible' => ($userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => $userinfo['change_serversettings'] == '1',
|
||||||
'label' => $lng['admin']['specialsettingsforsubdomains'],
|
'label' => $lng['admin']['specialsettingsforsubdomains'],
|
||||||
'desc' => $lng['serversettings']['specialsettingsforsubdomains']['description'],
|
'desc' => $lng['serversettings']['specialsettingsforsubdomains']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -206,17 +206,17 @@ return array(
|
|||||||
'section_bssl' => array(
|
'section_bssl' => array(
|
||||||
'title' => $lng['admin']['webserversettings_ssl'],
|
'title' => $lng['admin']['webserversettings_ssl'],
|
||||||
'image' => 'icons/domain_edit.png',
|
'image' => 'icons/domain_edit.png',
|
||||||
'visible' => \Froxlor\Settings::Get('system.use_ssl') == '1' ? true : false,
|
'visible' => \Froxlor\Settings::Get('system.use_ssl') == '1',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'sslenabled' => array(
|
'sslenabled' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false),
|
'visible' => !empty($ssl_ipsandports),
|
||||||
'label' => $lng['admin']['domain_sslenabled'],
|
'label' => $lng['admin']['domain_sslenabled'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => $result['ssl_enabled']
|
'checked' => $result['ssl_enabled']
|
||||||
),
|
),
|
||||||
'no_ssl_available_info' => array(
|
'no_ssl_available_info' => array(
|
||||||
'visible' => (empty($ssl_ipsandports) ? true : false),
|
'visible' => empty($ssl_ipsandports),
|
||||||
'label' => 'SSL',
|
'label' => 'SSL',
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $lng['panel']['nosslipsavailable']
|
'value' => $lng['panel']['nosslipsavailable']
|
||||||
@@ -230,7 +230,7 @@ return array(
|
|||||||
'is_array' => 1
|
'is_array' => 1
|
||||||
),
|
),
|
||||||
'ssl_redirect' => array(
|
'ssl_redirect' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false),
|
'visible' => !empty($ssl_ipsandports),
|
||||||
'label' => $lng['domains']['ssl_redirect']['title'],
|
'label' => $lng['domains']['ssl_redirect']['title'],
|
||||||
'desc' => $lng['domains']['ssl_redirect']['description'] . ($result['temporary_ssl_redirect'] > 1 ? $lng['domains']['ssl_redirect_temporarilydisabled'] : ''),
|
'desc' => $lng['domains']['ssl_redirect']['description'] . ($result['temporary_ssl_redirect'] > 1 ? $lng['domains']['ssl_redirect_temporarilydisabled'] : ''),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -238,7 +238,7 @@ return array(
|
|||||||
'checked' => $result['ssl_redirect']
|
'checked' => $result['ssl_redirect']
|
||||||
),
|
),
|
||||||
'letsencrypt' => array(
|
'letsencrypt' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.leenabled') == '1' ? (!empty($ssl_ipsandports) ? true : false) : false),
|
'visible' => (\Froxlor\Settings::Get('system.leenabled') == '1' && !empty($ssl_ipsandports)),
|
||||||
'label' => $lng['admin']['letsencrypt']['title'],
|
'label' => $lng['admin']['letsencrypt']['title'],
|
||||||
'desc' => $lng['admin']['letsencrypt']['description'],
|
'desc' => $lng['admin']['letsencrypt']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -246,7 +246,7 @@ return array(
|
|||||||
'checked' => $result['letsencrypt']
|
'checked' => $result['letsencrypt']
|
||||||
),
|
),
|
||||||
'http2' => array(
|
'http2' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' && \Froxlor\Settings::Get('system.http2_support') == '1',
|
'visible' => !empty($ssl_ipsandports) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' && \Froxlor\Settings::Get('system.http2_support') == '1',
|
||||||
'label' => $lng['admin']['domain_http2']['title'],
|
'label' => $lng['admin']['domain_http2']['title'],
|
||||||
'desc' => $lng['admin']['domain_http2']['description'],
|
'desc' => $lng['admin']['domain_http2']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -254,14 +254,14 @@ return array(
|
|||||||
'checked' => $result['http2']
|
'checked' => $result['http2']
|
||||||
),
|
),
|
||||||
'override_tls' => array(
|
'override_tls' => array(
|
||||||
'visible' => ((!empty($ssl_ipsandports) ? true : false) && $userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => !empty($ssl_ipsandports) && $userinfo['change_serversettings'] == '1',
|
||||||
'label' => $lng['admin']['domain_override_tls'],
|
'label' => $lng['admin']['domain_override_tls'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => $result['override_tls']
|
'checked' => $result['override_tls']
|
||||||
),
|
),
|
||||||
'ssl_protocols' => array(
|
'ssl_protocols' => array(
|
||||||
'visible' => ((!empty($ssl_ipsandports) ? true : false) && $userinfo['change_serversettings'] == '1' && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' ? true : false),
|
'visible' => !empty($ssl_ipsandports) && $userinfo['change_serversettings'] == '1' && \Froxlor\Settings::Get('system.webserver') != 'lighttpd',
|
||||||
'label' => $lng['serversettings']['ssl']['ssl_protocols']['title'],
|
'label' => $lng['serversettings']['ssl']['ssl_protocols']['title'],
|
||||||
'desc' => $lng['serversettings']['ssl']['ssl_protocols']['description'],
|
'desc' => $lng['serversettings']['ssl']['ssl_protocols']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -287,21 +287,21 @@ return array(
|
|||||||
'is_array' => 1
|
'is_array' => 1
|
||||||
),
|
),
|
||||||
'ssl_cipher_list' => array(
|
'ssl_cipher_list' => array(
|
||||||
'visible' => ((!empty($ssl_ipsandports) ? true : false) && $userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => !empty($ssl_ipsandports) && $userinfo['change_serversettings'] == '1',
|
||||||
'label' => $lng['serversettings']['ssl']['ssl_cipher_list']['title'],
|
'label' => $lng['serversettings']['ssl']['ssl_cipher_list']['title'],
|
||||||
'desc' => $lng['serversettings']['ssl']['ssl_cipher_list']['description'],
|
'desc' => $lng['serversettings']['ssl']['ssl_cipher_list']['description'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => !empty($result['ssl_cipher_list']) ? $result['ssl_cipher_list'] : \Froxlor\Settings::Get('system.ssl_cipher_list')
|
'value' => !empty($result['ssl_cipher_list']) ? $result['ssl_cipher_list'] : \Froxlor\Settings::Get('system.ssl_cipher_list')
|
||||||
),
|
),
|
||||||
'tlsv13_cipher_list' => array(
|
'tlsv13_cipher_list' => array(
|
||||||
'visible' => ((!empty($ssl_ipsandports) ? true : false) && $userinfo['change_serversettings'] == '1' && \Froxlor\Settings::Get('system.webserver') == "apache2" && \Froxlor\Settings::Get('system.apache24') == 1 ? true : false),
|
'visible' => !empty($ssl_ipsandports) && $userinfo['change_serversettings'] == '1' && \Froxlor\Settings::Get('system.webserver') == "apache2" && \Froxlor\Settings::Get('system.apache24') == 1,
|
||||||
'label' => $lng['serversettings']['ssl']['tlsv13_cipher_list']['title'],
|
'label' => $lng['serversettings']['ssl']['tlsv13_cipher_list']['title'],
|
||||||
'desc' => $lng['serversettings']['ssl']['tlsv13_cipher_list']['description'],
|
'desc' => $lng['serversettings']['ssl']['tlsv13_cipher_list']['description'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => !empty($result['tlsv13_cipher_list']) ? $result['tlsv13_cipher_list'] : \Froxlor\Settings::Get('system.tlsv13_cipher_list')
|
'value' => !empty($result['tlsv13_cipher_list']) ? $result['tlsv13_cipher_list'] : \Froxlor\Settings::Get('system.tlsv13_cipher_list')
|
||||||
),
|
),
|
||||||
'ssl_specialsettings' => array(
|
'ssl_specialsettings' => array(
|
||||||
'visible' => ($userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => $userinfo['change_serversettings'] == '1',
|
||||||
'label' => $lng['admin']['ownsslvhostsettings'],
|
'label' => $lng['admin']['ownsslvhostsettings'],
|
||||||
'desc' => $lng['serversettings']['default_vhostconf']['description'],
|
'desc' => $lng['serversettings']['default_vhostconf']['description'],
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
@@ -316,7 +316,7 @@ return array(
|
|||||||
'checked' => $result['include_specialsettings']
|
'checked' => $result['include_specialsettings']
|
||||||
),
|
),
|
||||||
'hsts_maxage' => array(
|
'hsts_maxage' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false),
|
'visible' => !empty($ssl_ipsandports),
|
||||||
'label' => $lng['admin']['domain_hsts_maxage']['title'],
|
'label' => $lng['admin']['domain_hsts_maxage']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_maxage']['description'],
|
'desc' => $lng['admin']['domain_hsts_maxage']['description'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
@@ -325,7 +325,7 @@ return array(
|
|||||||
'value' => $result['hsts']
|
'value' => $result['hsts']
|
||||||
),
|
),
|
||||||
'hsts_sub' => array(
|
'hsts_sub' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false),
|
'visible' => !empty($ssl_ipsandports),
|
||||||
'label' => $lng['admin']['domain_hsts_incsub']['title'],
|
'label' => $lng['admin']['domain_hsts_incsub']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_incsub']['description'],
|
'desc' => $lng['admin']['domain_hsts_incsub']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -333,7 +333,7 @@ return array(
|
|||||||
'checked' => $result['hsts_sub']
|
'checked' => $result['hsts_sub']
|
||||||
),
|
),
|
||||||
'hsts_preload' => array(
|
'hsts_preload' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false),
|
'visible' => !empty($ssl_ipsandports),
|
||||||
'label' => $lng['admin']['domain_hsts_preload']['title'],
|
'label' => $lng['admin']['domain_hsts_preload']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_preload']['description'],
|
'desc' => $lng['admin']['domain_hsts_preload']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -341,7 +341,7 @@ return array(
|
|||||||
'checked' => $result['hsts_preload']
|
'checked' => $result['hsts_preload']
|
||||||
),
|
),
|
||||||
'ocsp_stapling' => array(
|
'ocsp_stapling' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd',
|
'visible' => !empty($ssl_ipsandports) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd',
|
||||||
'label' => $lng['admin']['domain_ocsp_stapling']['title'],
|
'label' => $lng['admin']['domain_ocsp_stapling']['title'],
|
||||||
'desc' => $lng['admin']['domain_ocsp_stapling']['description'] . (\Froxlor\Settings::Get('system.webserver') == 'nginx' ? $lng['admin']['domain_ocsp_stapling']['nginx_version_warning'] : ""),
|
'desc' => $lng['admin']['domain_ocsp_stapling']['description'] . (\Froxlor\Settings::Get('system.webserver') == 'nginx' ? $lng['admin']['domain_ocsp_stapling']['nginx_version_warning'] : ""),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -349,14 +349,14 @@ return array(
|
|||||||
'checked' => $result['ocsp_stapling']
|
'checked' => $result['ocsp_stapling']
|
||||||
),
|
),
|
||||||
'honorcipherorder' => array(
|
'honorcipherorder' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false),
|
'visible' => !empty($ssl_ipsandports),
|
||||||
'label' => $lng['admin']['domain_honorcipherorder'],
|
'label' => $lng['admin']['domain_honorcipherorder'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => $result['ssl_honorcipherorder']
|
'checked' => $result['ssl_honorcipherorder']
|
||||||
),
|
),
|
||||||
'sessiontickets' => array(
|
'sessiontickets' => array(
|
||||||
'visible' => (!empty($ssl_ipsandports) ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' && \Froxlor\Settings::Get('system.sessionticketsenabled' != '1'),
|
'visible' => !empty($ssl_ipsandports) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' && \Froxlor\Settings::Get('system.sessionticketsenabled' != '1'),
|
||||||
'label' => $lng['admin']['domain_sessiontickets'],
|
'label' => $lng['admin']['domain_sessiontickets'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
@@ -367,7 +367,7 @@ return array(
|
|||||||
'section_c' => array(
|
'section_c' => array(
|
||||||
'title' => $lng['admin']['phpserversettings'],
|
'title' => $lng['admin']['phpserversettings'],
|
||||||
'image' => 'icons/domain_edit.png',
|
'image' => 'icons/domain_edit.png',
|
||||||
'visible' => (($userinfo['change_serversettings'] == '1' || $userinfo['caneditphpsettings'] == '1') ? true : false),
|
'visible' => $userinfo['change_serversettings'] == '1' || $userinfo['caneditphpsettings'] == '1',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'openbasedir' => array(
|
'openbasedir' => array(
|
||||||
'label' => 'OpenBasedir',
|
'label' => 'OpenBasedir',
|
||||||
@@ -382,14 +382,14 @@ return array(
|
|||||||
'checked' => $result['phpenabled']
|
'checked' => $result['phpenabled']
|
||||||
),
|
),
|
||||||
'phpsettingid' => array(
|
'phpsettingid' => array(
|
||||||
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false),
|
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1)),
|
||||||
'label' => $lng['admin']['phpsettings']['title'],
|
'label' => $lng['admin']['phpsettings']['title'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $phpconfigs,
|
'select_var' => $phpconfigs,
|
||||||
'selected' => $result['phpsettingid']
|
'selected' => $result['phpsettingid']
|
||||||
),
|
),
|
||||||
'phpsettingsforsubdomains' => array(
|
'phpsettingsforsubdomains' => array(
|
||||||
'visible' => ($userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => $userinfo['change_serversettings'] == '1',
|
||||||
'label' => $lng['admin']['phpsettingsforsubdomains'],
|
'label' => $lng['admin']['phpsettingsforsubdomains'],
|
||||||
'desc' => $lng['serversettings']['phpsettingsforsubdomains']['description'],
|
'desc' => $lng['serversettings']['phpsettingsforsubdomains']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -397,13 +397,13 @@ return array(
|
|||||||
'checked' => \Froxlor\Settings::Get('system.apply_phpconfigs_default') == 1 ? '1' : '0'
|
'checked' => \Froxlor\Settings::Get('system.apply_phpconfigs_default') == 1 ? '1' : '0'
|
||||||
),
|
),
|
||||||
'mod_fcgid_starter' => array(
|
'mod_fcgid_starter' => array(
|
||||||
'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
'visible' => (int) \Froxlor\Settings::Get('system.mod_fcgid') == 1,
|
||||||
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => ((int) $result['mod_fcgid_starter'] != -1 ? $result['mod_fcgid_starter'] : '')
|
'value' => ((int) $result['mod_fcgid_starter'] != -1 ? $result['mod_fcgid_starter'] : '')
|
||||||
),
|
),
|
||||||
'mod_fcgid_maxrequests' => array(
|
'mod_fcgid_maxrequests' => array(
|
||||||
'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
'visible' => (int) \Froxlor\Settings::Get('system.mod_fcgid') == 1,
|
||||||
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => ((int) $result['mod_fcgid_maxrequests'] != -1 ? $result['mod_fcgid_maxrequests'] : '')
|
'value' => ((int) $result['mod_fcgid_maxrequests'] != -1 ? $result['mod_fcgid_maxrequests'] : '')
|
||||||
@@ -413,7 +413,7 @@ return array(
|
|||||||
'section_d' => array(
|
'section_d' => array(
|
||||||
'title' => $lng['admin']['nameserversettings'],
|
'title' => $lng['admin']['nameserversettings'],
|
||||||
'image' => 'icons/domain_edit.png',
|
'image' => 'icons/domain_edit.png',
|
||||||
'visible' => (\Froxlor\Settings::Get('system.bind_enable') == '1' && $userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.bind_enable') == '1' && $userinfo['change_serversettings'] == '1',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'isbinddomain' => array(
|
'isbinddomain' => array(
|
||||||
'label' => 'Nameserver',
|
'label' => 'Nameserver',
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ return array(
|
|||||||
'label' => $lng['admin']['ipsandports']['create_namevirtualhost_statement'],
|
'label' => $lng['admin']['ipsandports']['create_namevirtualhost_statement'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => \Froxlor\Settings::Get('system.webserver') == 'apache2' && (int) \Froxlor\Settings::Get('system.apache24') == 0 ? true : false
|
'checked' => \Froxlor\Settings::Get('system.webserver') == 'apache2' && (int) \Froxlor\Settings::Get('system.apache24') == 0
|
||||||
),
|
),
|
||||||
'vhostcontainer' => array(
|
'vhostcontainer' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['create_vhostcontainer'],
|
'label' => $lng['admin']['ipsandports']['create_vhostcontainer'],
|
||||||
@@ -95,7 +95,7 @@ return array(
|
|||||||
'rows' => 12
|
'rows' => 12
|
||||||
),
|
),
|
||||||
'ssl_default_vhostconf_domain' => array(
|
'ssl_default_vhostconf_domain' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.use_ssl') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.use_ssl') == 1,
|
||||||
'label' => $lng['admin']['ipsandports']['ssl_default_vhostconf_domain'],
|
'label' => $lng['admin']['ipsandports']['ssl_default_vhostconf_domain'],
|
||||||
'desc' => $lng['serversettings']['default_vhostconf_domain']['description'],
|
'desc' => $lng['serversettings']['default_vhostconf_domain']['description'],
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
@@ -113,7 +113,7 @@ return array(
|
|||||||
'section_d' => array(
|
'section_d' => array(
|
||||||
'title' => $lng['admin']['ipsandports']['webserverssldomainconfig'],
|
'title' => $lng['admin']['ipsandports']['webserverssldomainconfig'],
|
||||||
'image' => 'icons/ipsports_add.png',
|
'image' => 'icons/ipsports_add.png',
|
||||||
'visible' => (\Froxlor\Settings::Get('system.use_ssl') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.use_ssl') == 1,
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'ssl' => array(
|
'ssl' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['enable_ssl'],
|
'label' => $lng['admin']['ipsandports']['enable_ssl'],
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ return array(
|
|||||||
'value' => $result['default_vhostconf_domain']
|
'value' => $result['default_vhostconf_domain']
|
||||||
),
|
),
|
||||||
'ssl_default_vhostconf_domain' => array(
|
'ssl_default_vhostconf_domain' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.use_ssl') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.use_ssl') == 1,
|
||||||
'label' => $lng['admin']['ipsandports']['ssl_default_vhostconf_domain'],
|
'label' => $lng['admin']['ipsandports']['ssl_default_vhostconf_domain'],
|
||||||
'desc' => $lng['serversettings']['default_vhostconf_domain']['description'],
|
'desc' => $lng['serversettings']['default_vhostconf_domain']['description'],
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
@@ -118,7 +118,7 @@ return array(
|
|||||||
'section_d' => array(
|
'section_d' => array(
|
||||||
'title' => $lng['admin']['ipsandports']['webserverssldomainconfig'],
|
'title' => $lng['admin']['ipsandports']['webserverssldomainconfig'],
|
||||||
'image' => 'icons/ipsports_edit.png',
|
'image' => 'icons/ipsports_edit.png',
|
||||||
'visible' => (\Froxlor\Settings::Get('system.use_ssl') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.use_ssl') == 1,
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'ssl' => array(
|
'ssl' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['enable_ssl'],
|
'label' => $lng['admin']['ipsandports']['enable_ssl'],
|
||||||
|
|||||||
@@ -29,21 +29,21 @@ return array(
|
|||||||
'maxlength' => 50
|
'maxlength' => 50
|
||||||
),
|
),
|
||||||
'binary' => array(
|
'binary' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.mod_fcgid') == 1,
|
||||||
'label' => $lng['admin']['phpsettings']['binary'],
|
'label' => $lng['admin']['phpsettings']['binary'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'maxlength' => 255,
|
'maxlength' => 255,
|
||||||
'value' => '/usr/bin/php-cgi'
|
'value' => '/usr/bin/php-cgi'
|
||||||
),
|
),
|
||||||
'fpmconfig' => array(
|
'fpmconfig' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['admin']['phpsettings']['fpmdesc'],
|
'label' => $lng['admin']['phpsettings']['fpmdesc'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $fpmconfigs,
|
'select_var' => $fpmconfigs,
|
||||||
'selected' => 1
|
'selected' => 1
|
||||||
),
|
),
|
||||||
'file_extensions' => array(
|
'file_extensions' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.mod_fcgid') == 1,
|
||||||
'label' => $lng['admin']['phpsettings']['file_extensions'],
|
'label' => $lng['admin']['phpsettings']['file_extensions'],
|
||||||
'desc' => $lng['admin']['phpsettings']['file_extensions_note'],
|
'desc' => $lng['admin']['phpsettings']['file_extensions_note'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
@@ -51,59 +51,59 @@ return array(
|
|||||||
'value' => 'php'
|
'value' => 'php'
|
||||||
),
|
),
|
||||||
'mod_fcgid_starter' => array(
|
'mod_fcgid_starter' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.mod_fcgid') == 1,
|
||||||
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
||||||
'type' => 'number'
|
'type' => 'number'
|
||||||
),
|
),
|
||||||
'mod_fcgid_maxrequests' => array(
|
'mod_fcgid_maxrequests' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.mod_fcgid') == 1,
|
||||||
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
||||||
'type' => 'number'
|
'type' => 'number'
|
||||||
),
|
),
|
||||||
'mod_fcgid_umask' => array(
|
'mod_fcgid_umask' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.mod_fcgid') == 1,
|
||||||
'label' => $lng['admin']['mod_fcgid_umask']['title'],
|
'label' => $lng['admin']['mod_fcgid_umask']['title'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'maxlength' => 3,
|
'maxlength' => 3,
|
||||||
'value' => '022'
|
'value' => '022'
|
||||||
),
|
),
|
||||||
'phpfpm_enable_slowlog' => array(
|
'phpfpm_enable_slowlog' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['admin']['phpsettings']['enable_slowlog'],
|
'label' => $lng['admin']['phpsettings']['enable_slowlog'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'phpfpm_reqtermtimeout' => array(
|
'phpfpm_reqtermtimeout' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['admin']['phpsettings']['request_terminate_timeout'],
|
'label' => $lng['admin']['phpsettings']['request_terminate_timeout'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'maxlength' => 10,
|
'maxlength' => 10,
|
||||||
'value' => '60s'
|
'value' => '60s'
|
||||||
),
|
),
|
||||||
'phpfpm_reqslowtimeout' => array(
|
'phpfpm_reqslowtimeout' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['admin']['phpsettings']['request_slowlog_timeout'],
|
'label' => $lng['admin']['phpsettings']['request_slowlog_timeout'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'maxlength' => 10,
|
'maxlength' => 10,
|
||||||
'value' => '5s'
|
'value' => '5s'
|
||||||
),
|
),
|
||||||
'phpfpm_pass_authorizationheader' => array(
|
'phpfpm_pass_authorizationheader' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['admin']['phpsettings']['pass_authorizationheader'],
|
'label' => $lng['admin']['phpsettings']['pass_authorizationheader'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'override_fpmconfig' => array(
|
'override_fpmconfig' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig'],
|
'label' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'pm' => array(
|
'pm' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['pm'],
|
'label' => $lng['serversettings']['phpfpm_settings']['pm'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
@@ -114,49 +114,49 @@ return array(
|
|||||||
]
|
]
|
||||||
),
|
),
|
||||||
'max_children' => array(
|
'max_children' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['max_children']['title'],
|
'label' => $lng['serversettings']['phpfpm_settings']['max_children']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => 1
|
'value' => 1
|
||||||
),
|
),
|
||||||
'start_servers' => array(
|
'start_servers' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['start_servers']['title'],
|
'label' => $lng['serversettings']['phpfpm_settings']['start_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => 20
|
'value' => 20
|
||||||
),
|
),
|
||||||
'min_spare_servers' => array(
|
'min_spare_servers' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
|
'label' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => 5
|
'value' => 5
|
||||||
),
|
),
|
||||||
'max_spare_servers' => array(
|
'max_spare_servers' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
|
'label' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => 35
|
'value' => 35
|
||||||
),
|
),
|
||||||
'max_requests' => array(
|
'max_requests' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['max_requests']['title'],
|
'label' => $lng['serversettings']['phpfpm_settings']['max_requests']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => 0
|
'value' => 0
|
||||||
),
|
),
|
||||||
'idle_timeout' => array(
|
'idle_timeout' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['title'],
|
'label' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => 10
|
'value' => 10
|
||||||
),
|
),
|
||||||
'limit_extensions' => array(
|
'limit_extensions' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['title'],
|
'label' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
|
|||||||
@@ -30,21 +30,21 @@ return array(
|
|||||||
'value' => $result['description']
|
'value' => $result['description']
|
||||||
),
|
),
|
||||||
'binary' => array(
|
'binary' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.mod_fcgid') == 1,
|
||||||
'label' => $lng['admin']['phpsettings']['binary'],
|
'label' => $lng['admin']['phpsettings']['binary'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'maxlength' => 255,
|
'maxlength' => 255,
|
||||||
'value' => $result['binary']
|
'value' => $result['binary']
|
||||||
),
|
),
|
||||||
'fpmconfig' => array(
|
'fpmconfig' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['admin']['phpsettings']['fpmdesc'],
|
'label' => $lng['admin']['phpsettings']['fpmdesc'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $fpmconfigs,
|
'select_var' => $fpmconfigs,
|
||||||
'selected' => $result['fpmsettingid']
|
'selected' => $result['fpmsettingid']
|
||||||
),
|
),
|
||||||
'file_extensions' => array(
|
'file_extensions' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.mod_fcgid') == 1,
|
||||||
'label' => $lng['admin']['phpsettings']['file_extensions'],
|
'label' => $lng['admin']['phpsettings']['file_extensions'],
|
||||||
'desc' => $lng['admin']['phpsettings']['file_extensions_note'],
|
'desc' => $lng['admin']['phpsettings']['file_extensions_note'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
@@ -52,47 +52,47 @@ return array(
|
|||||||
'value' => $result['file_extensions']
|
'value' => $result['file_extensions']
|
||||||
),
|
),
|
||||||
'mod_fcgid_starter' => array(
|
'mod_fcgid_starter' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.mod_fcgid') == 1,
|
||||||
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => ((int) $result['mod_fcgid_starter'] != -1 ? $result['mod_fcgid_starter'] : '')
|
'value' => ((int) $result['mod_fcgid_starter'] != -1 ? $result['mod_fcgid_starter'] : '')
|
||||||
),
|
),
|
||||||
'mod_fcgid_maxrequests' => array(
|
'mod_fcgid_maxrequests' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.mod_fcgid') == 1,
|
||||||
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => ((int) $result['mod_fcgid_maxrequests'] != -1 ? $result['mod_fcgid_maxrequests'] : '')
|
'value' => ((int) $result['mod_fcgid_maxrequests'] != -1 ? $result['mod_fcgid_maxrequests'] : '')
|
||||||
),
|
),
|
||||||
'mod_fcgid_umask' => array(
|
'mod_fcgid_umask' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.mod_fcgid') == 1,
|
||||||
'label' => $lng['admin']['mod_fcgid_umask']['title'],
|
'label' => $lng['admin']['mod_fcgid_umask']['title'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'maxlength' => 3,
|
'maxlength' => 3,
|
||||||
'value' => $result['mod_fcgid_umask']
|
'value' => $result['mod_fcgid_umask']
|
||||||
),
|
),
|
||||||
'phpfpm_enable_slowlog' => array(
|
'phpfpm_enable_slowlog' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['admin']['phpsettings']['enable_slowlog'],
|
'label' => $lng['admin']['phpsettings']['enable_slowlog'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => $result['fpm_slowlog']
|
'checked' => $result['fpm_slowlog']
|
||||||
),
|
),
|
||||||
'phpfpm_reqtermtimeout' => array(
|
'phpfpm_reqtermtimeout' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['admin']['phpsettings']['request_terminate_timeout'],
|
'label' => $lng['admin']['phpsettings']['request_terminate_timeout'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'maxlength' => 10,
|
'maxlength' => 10,
|
||||||
'value' => $result['fpm_reqterm']
|
'value' => $result['fpm_reqterm']
|
||||||
),
|
),
|
||||||
'phpfpm_reqslowtimeout' => array(
|
'phpfpm_reqslowtimeout' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['admin']['phpsettings']['request_slowlog_timeout'],
|
'label' => $lng['admin']['phpsettings']['request_slowlog_timeout'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'maxlength' => 10,
|
'maxlength' => 10,
|
||||||
'value' => $result['fpm_reqslow']
|
'value' => $result['fpm_reqslow']
|
||||||
),
|
),
|
||||||
'phpfpm_pass_authorizationheader' => array(
|
'phpfpm_pass_authorizationheader' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['admin']['phpsettings']['pass_authorizationheader'],
|
'label' => $lng['admin']['phpsettings']['pass_authorizationheader'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
@@ -105,7 +105,7 @@ return array(
|
|||||||
'checked' => $result['override_fpmconfig']
|
'checked' => $result['override_fpmconfig']
|
||||||
),
|
),
|
||||||
'pm' => array(
|
'pm' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['pm'],
|
'label' => $lng['serversettings']['phpfpm_settings']['pm'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
@@ -117,49 +117,49 @@ return array(
|
|||||||
'selected' => $result['pm']
|
'selected' => $result['pm']
|
||||||
),
|
),
|
||||||
'max_children' => array(
|
'max_children' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['max_children']['title'],
|
'label' => $lng['serversettings']['phpfpm_settings']['max_children']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => $result['max_children']
|
'value' => $result['max_children']
|
||||||
),
|
),
|
||||||
'start_servers' => array(
|
'start_servers' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['start_servers']['title'],
|
'label' => $lng['serversettings']['phpfpm_settings']['start_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => $result['start_servers']
|
'value' => $result['start_servers']
|
||||||
),
|
),
|
||||||
'min_spare_servers' => array(
|
'min_spare_servers' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
|
'label' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => $result['min_spare_servers']
|
'value' => $result['min_spare_servers']
|
||||||
),
|
),
|
||||||
'max_spare_servers' => array(
|
'max_spare_servers' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
|
'label' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => $result['max_spare_servers']
|
'value' => $result['max_spare_servers']
|
||||||
),
|
),
|
||||||
'max_requests' => array(
|
'max_requests' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['max_requests']['title'],
|
'label' => $lng['serversettings']['phpfpm_settings']['max_requests']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => $result['max_requests']
|
'value' => $result['max_requests']
|
||||||
),
|
),
|
||||||
'idle_timeout' => array(
|
'idle_timeout' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['title'],
|
'label' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => $result['idle_timeout']
|
'value' => $result['idle_timeout']
|
||||||
),
|
),
|
||||||
'limit_extensions' => array(
|
'limit_extensions' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') == 1,
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['title'],
|
'label' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
|
|||||||
@@ -51,12 +51,12 @@ return array(
|
|||||||
'note' => $pathSelect['note'] ?? '',
|
'note' => $pathSelect['note'] ?? '',
|
||||||
),
|
),
|
||||||
'url' => array(
|
'url' => array(
|
||||||
'visible' => (Settings::Get('panel.pathedit') == 'Dropdown' ? true : false),
|
'visible' => Settings::Get('panel.pathedit') == 'Dropdown',
|
||||||
'label' => $lng['panel']['urloverridespath'],
|
'label' => $lng['panel']['urloverridespath'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'redirectcode' => array(
|
'redirectcode' => array(
|
||||||
'visible' => (Settings::Get('customredirect.enabled') == '1' ? true : false),
|
'visible' => Settings::Get('customredirect.enabled') == '1',
|
||||||
'label' => $lng['domains']['redirectifpathisurl'],
|
'label' => $lng['domains']['redirectifpathisurl'],
|
||||||
'desc' => $lng['domains']['redirectifpathisurlinfo'],
|
'desc' => $lng['domains']['redirectifpathisurlinfo'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
@@ -74,7 +74,7 @@ return array(
|
|||||||
'select_var' => $openbasedir
|
'select_var' => $openbasedir
|
||||||
),
|
),
|
||||||
'phpsettingid' => array(
|
'phpsettingid' => array(
|
||||||
'visible' => (((int) Settings::Get('system.mod_fcgid') == 1 || (int) Settings::Get('phpfpm.enabled') == 1) && count($phpconfigs) > 0 ? true : false),
|
'visible' => ((int) Settings::Get('system.mod_fcgid') == 1 || (int) Settings::Get('phpfpm.enabled') == 1) && count($phpconfigs) > 0,
|
||||||
'label' => $lng['admin']['phpsettings']['title'],
|
'label' => $lng['admin']['phpsettings']['title'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $phpconfigs,
|
'select_var' => $phpconfigs,
|
||||||
@@ -85,7 +85,7 @@ return array(
|
|||||||
'section_bssl' => array(
|
'section_bssl' => array(
|
||||||
'title' => $lng['admin']['webserversettings_ssl'],
|
'title' => $lng['admin']['webserversettings_ssl'],
|
||||||
'image' => 'icons/domain_add.png',
|
'image' => 'icons/domain_add.png',
|
||||||
'visible' => Settings::Get('system.use_ssl') == '1' ? ($ssl_ipsandports ? true : false) : false,
|
'visible' => Settings::Get('system.use_ssl') == '1' && $ssl_ipsandports,
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'sslenabled' => array(
|
'sslenabled' => array(
|
||||||
'label' => $lng['admin']['domain_sslenabled'],
|
'label' => $lng['admin']['domain_sslenabled'],
|
||||||
@@ -101,7 +101,7 @@ return array(
|
|||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'letsencrypt' => array(
|
'letsencrypt' => array(
|
||||||
'visible' => (Settings::Get('system.leenabled') == '1' ? true : false),
|
'visible' => Settings::Get('system.leenabled') == '1',
|
||||||
'label' => $lng['customer']['letsencrypt']['title'],
|
'label' => $lng['customer']['letsencrypt']['title'],
|
||||||
'desc' => $lng['customer']['letsencrypt']['description'],
|
'desc' => $lng['customer']['letsencrypt']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -109,7 +109,7 @@ return array(
|
|||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'http2' => array(
|
'http2' => array(
|
||||||
'visible' => ($ssl_ipsandports ? true : false) && Settings::Get('system.webserver') != 'lighttpd' && Settings::Get('system.http2_support') == '1',
|
'visible' => $ssl_ipsandports && Settings::Get('system.webserver') != 'lighttpd' && Settings::Get('system.http2_support') == '1',
|
||||||
'label' => $lng['admin']['domain_http2']['title'],
|
'label' => $lng['admin']['domain_http2']['title'],
|
||||||
'desc' => $lng['admin']['domain_http2']['description'],
|
'desc' => $lng['admin']['domain_http2']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ return array(
|
|||||||
'values' => $domainips
|
'values' => $domainips
|
||||||
),
|
),
|
||||||
'alias' => array(
|
'alias' => array(
|
||||||
'visible' => ($alias_check == '0' ? true : false),
|
'visible' => $alias_check == '0',
|
||||||
'label' => $lng['domains']['aliasdomain'],
|
'label' => $lng['domains']['aliasdomain'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $domains,
|
'select_var' => $domains,
|
||||||
@@ -48,13 +48,13 @@ return array(
|
|||||||
'selected' => $pathSelect['value']
|
'selected' => $pathSelect['value']
|
||||||
),
|
),
|
||||||
'url' => array(
|
'url' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('panel.pathedit') == 'Dropdown' ? true : false),
|
'visible' => \Froxlor\Settings::Get('panel.pathedit') == 'Dropdown',
|
||||||
'label' => $lng['panel']['urloverridespath'],
|
'label' => $lng['panel']['urloverridespath'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $urlvalue
|
'value' => $urlvalue
|
||||||
),
|
),
|
||||||
'redirectcode' => array(
|
'redirectcode' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('customredirect.enabled') == '1' ? true : false),
|
'visible' => \Froxlor\Settings::Get('customredirect.enabled') == '1',
|
||||||
'label' => $lng['domains']['redirectifpathisurl'],
|
'label' => $lng['domains']['redirectifpathisurl'],
|
||||||
'desc' => $lng['domains']['redirectifpathisurlinfo'],
|
'desc' => $lng['domains']['redirectifpathisurlinfo'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
@@ -62,7 +62,7 @@ return array(
|
|||||||
'selected' => $def_code
|
'selected' => $def_code
|
||||||
),
|
),
|
||||||
'selectserveralias' => array(
|
'selectserveralias' => array(
|
||||||
'visible' => ((($result['parentdomainid'] == '0' && $userinfo['subdomains'] != '0') || $result['parentdomainid'] != '0') ? true : false),
|
'visible' => ($result['parentdomainid'] == '0' && $userinfo['subdomains'] != '0') || $result['parentdomainid'] != '0',
|
||||||
'label' => $lng['admin']['selectserveralias'],
|
'label' => $lng['admin']['selectserveralias'],
|
||||||
'desc' => $lng['admin']['selectserveralias_desc'],
|
'desc' => $lng['admin']['selectserveralias_desc'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
@@ -70,21 +70,21 @@ return array(
|
|||||||
'selected' => $serveraliasoptions_selected
|
'selected' => $serveraliasoptions_selected
|
||||||
),
|
),
|
||||||
'isemaildomain' => array(
|
'isemaildomain' => array(
|
||||||
'visible' => ((($result['subcanemaildomain'] == '1' || $result['subcanemaildomain'] == '2') && $result['parentdomainid'] != '0') ? true : false),
|
'visible' => ($result['subcanemaildomain'] == '1' || $result['subcanemaildomain'] == '2') && $result['parentdomainid'] != '0',
|
||||||
'label' => 'Emaildomain',
|
'label' => 'Emaildomain',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'value' => '1',
|
'value' => '1',
|
||||||
'checked' => $result['isemaildomain']
|
'checked' => $result['isemaildomain']
|
||||||
),
|
),
|
||||||
'openbasedir_path' => array(
|
'openbasedir_path' => array(
|
||||||
'visible' => ($result['openbasedir'] == '1') ? true : false,
|
'visible' => $result['openbasedir'] == '1',
|
||||||
'label' => $lng['domain']['openbasedirpath'],
|
'label' => $lng['domain']['openbasedirpath'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $openbasedir,
|
'select_var' => $openbasedir,
|
||||||
'selected' => $result['openbasedir_path']
|
'selected' => $result['openbasedir_path']
|
||||||
),
|
),
|
||||||
'phpsettingid' => array(
|
'phpsettingid' => array(
|
||||||
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) && count($phpconfigs) > 0 ? true : false),
|
'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) && count($phpconfigs) > 0,
|
||||||
'label' => $lng['admin']['phpsettings']['title'],
|
'label' => $lng['admin']['phpsettings']['title'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $phpconfigs,
|
'select_var' => $phpconfigs,
|
||||||
@@ -95,7 +95,7 @@ return array(
|
|||||||
'section_bssl' => array(
|
'section_bssl' => array(
|
||||||
'title' => $lng['admin']['webserversettings_ssl'],
|
'title' => $lng['admin']['webserversettings_ssl'],
|
||||||
'image' => 'icons/domain_edit.png',
|
'image' => 'icons/domain_edit.png',
|
||||||
'visible' => \Froxlor\Settings::Get('system.use_ssl') == '1' ? ($ssl_ipsandports ? (\Froxlor\Domain\Domain::domainHasSslIpPort($result['id']) ? true : false) : false) : false,
|
'visible' => \Froxlor\Settings::Get('system.use_ssl') == '1' && $ssl_ipsandports && \Froxlor\Domain\Domain::domainHasSslIpPort($result['id']),
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'sslenabled' => array(
|
'sslenabled' => array(
|
||||||
'label' => $lng['admin']['domain_sslenabled'],
|
'label' => $lng['admin']['domain_sslenabled'],
|
||||||
@@ -111,7 +111,7 @@ return array(
|
|||||||
'checked' => $result['ssl_redirect']
|
'checked' => $result['ssl_redirect']
|
||||||
),
|
),
|
||||||
'letsencrypt' => array(
|
'letsencrypt' => array(
|
||||||
'visible' => \Froxlor\Settings::Get('system.leenabled') == '1' ? true : false,
|
'visible' => \Froxlor\Settings::Get('system.leenabled') == '1',
|
||||||
'label' => $lng['customer']['letsencrypt']['title'],
|
'label' => $lng['customer']['letsencrypt']['title'],
|
||||||
'desc' => $lng['customer']['letsencrypt']['description'],
|
'desc' => $lng['customer']['letsencrypt']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
@@ -119,7 +119,7 @@ return array(
|
|||||||
'checked' => $result['letsencrypt']
|
'checked' => $result['letsencrypt']
|
||||||
),
|
),
|
||||||
'http2' => array(
|
'http2' => array(
|
||||||
'visible' => ($ssl_ipsandports ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' && \Froxlor\Settings::Get('system.http2_support') == '1',
|
'visible' => $ssl_ipsandports && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' && \Froxlor\Settings::Get('system.http2_support') == '1',
|
||||||
'label' => $lng['admin']['domain_http2']['title'],
|
'label' => $lng['admin']['domain_http2']['title'],
|
||||||
'desc' => $lng['admin']['domain_http2']['description'],
|
'desc' => $lng['admin']['domain_http2']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
|
|||||||
@@ -43,14 +43,14 @@ return array(
|
|||||||
]
|
]
|
||||||
),
|
),
|
||||||
'email_quota' => array(
|
'email_quota' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.mail_quota_enabled') == '1' ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.mail_quota_enabled') == '1',
|
||||||
'label' => $lng['emails']['quota'],
|
'label' => $lng['emails']['quota'],
|
||||||
'desc' => "MiB",
|
'desc' => "MiB",
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'value' => $quota
|
'value' => $quota
|
||||||
),
|
),
|
||||||
'alternative_email' => array(
|
'alternative_email' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('panel.sendalternativemail') == '1' ? true : false),
|
'visible' => \Froxlor\Settings::Get('panel.sendalternativemail') == '1',
|
||||||
'label' => $lng['emails']['alternative_emailaddress'],
|
'label' => $lng['emails']['alternative_emailaddress'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ return array(
|
|||||||
'value' => $result['email_full']
|
'value' => $result['email_full']
|
||||||
),
|
),
|
||||||
'account_yes' => array(
|
'account_yes' => array(
|
||||||
'visible' => ((int) $result['popaccountid'] != 0 ? true : false),
|
'visible' => (int) $result['popaccountid'] != 0,
|
||||||
'label' => $lng['emails']['account'],
|
'label' => $lng['emails']['account'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $lng['panel']['yes'],
|
'value' => $lng['panel']['yes'],
|
||||||
@@ -50,7 +50,7 @@ return array(
|
|||||||
]
|
]
|
||||||
),
|
),
|
||||||
'account_no' => array(
|
'account_no' => array(
|
||||||
'visible' => ((int) $result['popaccountid'] == 0 ? true : false),
|
'visible' => (int) $result['popaccountid'] == 0,
|
||||||
'label' => $lng['emails']['account'],
|
'label' => $lng['emails']['account'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $lng['panel']['no'],
|
'value' => $lng['panel']['no'],
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ return array(
|
|||||||
'image' => 'icons/user_add.png',
|
'image' => 'icons/user_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'ftp_username' => array(
|
'ftp_username' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('customer.ftpatdomain') == '1' ? true : false),
|
'visible' => \Froxlor\Settings::Get('customer.ftpatdomain') == '1',
|
||||||
'label' => $lng['login']['username'],
|
'label' => $lng['login']['username'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'next_to' => (\Froxlor\Settings::Get('customer.ftpatdomain') == '1' && count($domainlist) > 0 ? [
|
'next_to' => (\Froxlor\Settings::Get('customer.ftpatdomain') == '1' && count($domainlist) > 0 ? [
|
||||||
@@ -66,7 +66,7 @@ return array(
|
|||||||
'checked' => false
|
'checked' => false
|
||||||
),
|
),
|
||||||
'shell' => array(
|
'shell' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.allow_customer_shell') == '1' ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.allow_customer_shell') == '1',
|
||||||
'label' => $lng['panel']['shell'],
|
'label' => $lng['panel']['shell'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $shells_avail,
|
'select_var' => $shells_avail,
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ return array(
|
|||||||
'value' => \Froxlor\System\Crypt::generatePassword()
|
'value' => \Froxlor\System\Crypt::generatePassword()
|
||||||
),
|
),
|
||||||
'shell' => array(
|
'shell' => array(
|
||||||
'visible' => (\Froxlor\Settings::Get('system.allow_customer_shell') == '1' ? true : false),
|
'visible' => \Froxlor\Settings::Get('system.allow_customer_shell') == '1',
|
||||||
'label' => $lng['panel']['shell'],
|
'label' => $lng['panel']['shell'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $shells_avail,
|
'select_var' => $shells_avail,
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ return array(
|
|||||||
'image' => 'icons/mysql_add.png',
|
'image' => 'icons/mysql_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'custom_suffix' => array(
|
'custom_suffix' => array(
|
||||||
'visible' => (strtoupper(Settings::Get('customer.mysqlprefix')) == 'DBNAME') ? true : false,
|
'visible' => strtoupper(Settings::Get('customer.mysqlprefix')) == 'DBNAME',
|
||||||
'label' => $lng['mysql']['databasename'],
|
'label' => $lng['mysql']['databasename'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
@@ -34,7 +34,7 @@ return array(
|
|||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'mysql_server' => array(
|
'mysql_server' => array(
|
||||||
'visible' => (count($mysql_servers) > 1 ? true : false),
|
'visible' => count($mysql_servers) > 1,
|
||||||
'label' => $lng['mysql']['mysql_server'],
|
'label' => $lng['mysql']['mysql_server'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $mysql_servers
|
'select_var' => $mysql_servers
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ return array(
|
|||||||
'value' => $result['description']
|
'value' => $result['description']
|
||||||
),
|
),
|
||||||
'mysql_server' => array(
|
'mysql_server' => array(
|
||||||
'visible' => ($count_mysql_servers > 1 ? true : false),
|
'visible' => $count_mysql_servers > 1,
|
||||||
'label' => $lng['mysql']['mysql_server'],
|
'label' => $lng['mysql']['mysql_server'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $sql_root['caption']
|
'value' => $sql_root['caption']
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ if ($action == '' || $action == 'view') {
|
|||||||
$result_domain = json_decode($json_result, true)['data'];
|
$result_domain = json_decode($json_result, true)['data'];
|
||||||
|
|
||||||
if (isset($_POST['send']) && $_POST['send'] == 'send') {
|
if (isset($_POST['send']) && $_POST['send'] == 'send') {
|
||||||
$do_insert = isset($_POST['do_insert']) ? (($_POST['do_insert'] == 1) ? true : false) : false;
|
$do_insert = isset($_POST['do_insert']) && ((($_POST['do_insert'] == 1) ? true : false));
|
||||||
try {
|
try {
|
||||||
if ($do_insert) {
|
if ($do_insert) {
|
||||||
Certificates::getLocal($userinfo, $_POST)->add();
|
Certificates::getLocal($userinfo, $_POST)->add();
|
||||||
|
|||||||
Reference in New Issue
Block a user