still implementing the new Settings-class, refs #1325
Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
@@ -173,7 +173,7 @@ return array(
|
|||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => 0,
|
'value' => 0,
|
||||||
'maxlength' => 9,
|
'maxlength' => 9,
|
||||||
'visible' => ($settings['system']['mail_quota_enabled'] == '1' ? true : false),
|
'visible' => (Settings::Get('system.mail_quota_enabled') == '1' ? true : false),
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
'ul_field' => $email_quota_ul
|
'ul_field' => $email_quota_ul
|
||||||
),
|
),
|
||||||
@@ -189,7 +189,7 @@ return array(
|
|||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => 0,
|
'value' => 0,
|
||||||
'maxlength' => 9,
|
'maxlength' => 9,
|
||||||
'visible' => ($settings['ticket']['enabled'] == '1' ? true : false),
|
'visible' => (Settings::Get('ticket.enabled') == '1' ? true : false),
|
||||||
'ul_field' => $tickets_ul
|
'ul_field' => $tickets_ul
|
||||||
),
|
),
|
||||||
'tickets_see_all' => array(
|
'tickets_see_all' => array(
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ return array(
|
|||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => $result['email_quota'],
|
'value' => $result['email_quota'],
|
||||||
'maxlength' => 9,
|
'maxlength' => 9,
|
||||||
'visible' => ($settings['system']['mail_quota_enabled'] == '1' ? true : false),
|
'visible' => (Settings::Get('system.mail_quota_enabled') == '1' ? true : false),
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
'ul_field' => $email_quota_ul
|
'ul_field' => $email_quota_ul
|
||||||
),
|
),
|
||||||
@@ -203,7 +203,7 @@ return array(
|
|||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => $result['tickets'],
|
'value' => $result['tickets'],
|
||||||
'maxlength' => 9,
|
'maxlength' => 9,
|
||||||
'visible' => ($settings['ticket']['enabled'] == '1' ? true : false),
|
'visible' => (Settings::Get('ticket.enabled') == '1' ? true : false),
|
||||||
'ul_field' => $tickets_ul
|
'ul_field' => $tickets_ul
|
||||||
),
|
),
|
||||||
'tickets_see_all' => array(
|
'tickets_see_all' => array(
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ return array(
|
|||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => 0,
|
'value' => 0,
|
||||||
'maxlength' => 9,
|
'maxlength' => 9,
|
||||||
'visible' => ($settings['system']['mail_quota_enabled'] == '1' ? true : false),
|
'visible' => (Settings::Get('system.mail_quota_enabled') == '1' ? true : false),
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
'ul_field' => $email_quota_ul
|
'ul_field' => $email_quota_ul
|
||||||
),
|
),
|
||||||
@@ -215,7 +215,7 @@ return array(
|
|||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => 0,
|
'value' => 0,
|
||||||
'maxlength' => 9,
|
'maxlength' => 9,
|
||||||
'visible' => ($settings['ticket']['enabled'] == '1' ? true : false),
|
'visible' => (Settings::Get('ticket.enabled') == '1' ? true : false),
|
||||||
'ul_field' => $tickets_ul
|
'ul_field' => $tickets_ul
|
||||||
),
|
),
|
||||||
'mysqls' => array(
|
'mysqls' => array(
|
||||||
|
|||||||
@@ -38,16 +38,16 @@ return array(
|
|||||||
'label' => $lng['admin']['stdsubdomain_add'].'?',
|
'label' => $lng['admin']['stdsubdomain_add'].'?',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array(($result['standardsubdomain'] != '0') ? '1' : '0')
|
'value' => array(($result['standardsubdomain'] != '0') ? '1' : '0')
|
||||||
),
|
),
|
||||||
'deactivated' => array(
|
'deactivated' => array(
|
||||||
'label' => $lng['admin']['deactivated_user'],
|
'label' => $lng['admin']['deactivated_user'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['deactivated'])
|
'value' => array($result['deactivated'])
|
||||||
),
|
),
|
||||||
'new_customer_password' => array(
|
'new_customer_password' => array(
|
||||||
@@ -189,7 +189,7 @@ return array(
|
|||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => $result['email_quota'],
|
'value' => $result['email_quota'],
|
||||||
'maxlength' => 9,
|
'maxlength' => 9,
|
||||||
'visible' => ($settings['system']['mail_quota_enabled'] == '1' ? true : false),
|
'visible' => (Settings::Get('system.mail_quota_enabled') == '1' ? true : false),
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
'ul_field' => $email_quota_ul
|
'ul_field' => $email_quota_ul
|
||||||
),
|
),
|
||||||
@@ -197,8 +197,8 @@ return array(
|
|||||||
'label' => $lng['customer']['email_imap'],
|
'label' => $lng['customer']['email_imap'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['imap']),
|
'value' => array($result['imap']),
|
||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
@@ -206,8 +206,8 @@ return array(
|
|||||||
'label' => $lng['customer']['email_pop3'],
|
'label' => $lng['customer']['email_pop3'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['pop3']),
|
'value' => array($result['pop3']),
|
||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
@@ -223,7 +223,7 @@ return array(
|
|||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => $result['tickets'],
|
'value' => $result['tickets'],
|
||||||
'maxlength' => 9,
|
'maxlength' => 9,
|
||||||
'visible' => ($settings['ticket']['enabled'] == '1' ? true : false),
|
'visible' => (Settings::Get('ticket.enabled') == '1' ? true : false),
|
||||||
'ul_field' => $tickets_ul
|
'ul_field' => $tickets_ul
|
||||||
),
|
),
|
||||||
'mysqls' => array(
|
'mysqls' => array(
|
||||||
@@ -238,16 +238,16 @@ return array(
|
|||||||
'label' => $lng['admin']['phpenabled'].'?',
|
'label' => $lng['admin']['phpenabled'].'?',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['phpenabled'])
|
'value' => array($result['phpenabled'])
|
||||||
),
|
),
|
||||||
'perlenabled' => array(
|
'perlenabled' => array(
|
||||||
'label' => $lng['admin']['perlenabled'].'?',
|
'label' => $lng['admin']['perlenabled'].'?',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['perlenabled'])
|
'value' => array($result['perlenabled'])
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -58,8 +58,8 @@ return array(
|
|||||||
'desc' => $lng['admin']['domain_editable']['desc'],
|
'desc' => $lng['admin']['domain_editable']['desc'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array('1')
|
'value' => array('1')
|
||||||
),
|
),
|
||||||
'add_date' => array(
|
'add_date' => array(
|
||||||
@@ -91,7 +91,7 @@ return array(
|
|||||||
'desc' => $lng['domains']['ipandport_multi']['description'],
|
'desc' => $lng['domains']['ipandport_multi']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => $ipsandports,
|
'values' => $ipsandports,
|
||||||
'value' => array($settings['system']['defaultip']),
|
'value' => array(Settings::Get('system.defaultip')),
|
||||||
'is_array' => 1,
|
'is_array' => 1,
|
||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
@@ -104,17 +104,17 @@ return array(
|
|||||||
'is_array' => 1
|
'is_array' => 1
|
||||||
),
|
),
|
||||||
'ssl_redirect' => array(
|
'ssl_redirect' => array(
|
||||||
'visible' => ($settings['system']['use_ssl'] == '1' ? ($ssl_ipsandports != '' ? true : false) : false),
|
'visible' => (Settings::Get('system.use_ssl') == '1' ? ($ssl_ipsandports != '' ? true : false) : false),
|
||||||
'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',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array()
|
'value' => array()
|
||||||
),
|
),
|
||||||
'no_ssl_available_info' => array(
|
'no_ssl_available_info' => array(
|
||||||
'visible' => ($settings['system']['use_ssl'] == '1' ? ($ssl_ipsandports == '' ? true : false) : false),
|
'visible' => (Settings::Get('system.use_ssl') == '1' ? ($ssl_ipsandports == '' ? true : false) : false),
|
||||||
'label' => 'SSL',
|
'label' => 'SSL',
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $lng['panel']['nosslipsavailable']
|
'value' => $lng['panel']['nosslipsavailable']
|
||||||
@@ -130,8 +130,8 @@ return array(
|
|||||||
'desc' => $lng['admin']['speciallogfile']['description'],
|
'desc' => $lng['admin']['speciallogfile']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array()
|
'value' => array()
|
||||||
),
|
),
|
||||||
'specialsettings' => array(
|
'specialsettings' => array(
|
||||||
@@ -154,23 +154,23 @@ return array(
|
|||||||
'label' => 'OpenBasedir',
|
'label' => 'OpenBasedir',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array('1')
|
'value' => array('1')
|
||||||
),
|
),
|
||||||
'phpsettingid' => array(
|
'phpsettingid' => array(
|
||||||
'visible' => (((int)$settings['system']['mod_fcgid'] == 1 || (int)$settings['phpfpm']['enabled'] == 1) ? true : false),
|
'visible' => (((int)Settings::Get('system.mod_fcgid') == 1 || (int)Settings::Get('phpfpm.enabled') == 1) ? true : false),
|
||||||
'label' => $lng['admin']['phpsettings']['title'],
|
'label' => $lng['admin']['phpsettings']['title'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $phpconfigs
|
'select_var' => $phpconfigs
|
||||||
),
|
),
|
||||||
'mod_fcgid_starter' => array(
|
'mod_fcgid_starter' => array(
|
||||||
'visible' => ((int)$settings['system']['mod_fcgid'] == 1 ? true : false),
|
'visible' => ((int)Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
||||||
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'mod_fcgid_maxrequests' => array(
|
'mod_fcgid_maxrequests' => array(
|
||||||
'visible' => ((int)$settings['system']['mod_fcgid'] == 1 ? true : false),
|
'visible' => ((int)Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
||||||
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
)
|
)
|
||||||
@@ -179,14 +179,14 @@ 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' => ($settings['system']['bind_enable'] == '1' && $userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => (Settings::Get('system.bind_enable') == '1' && $userinfo['change_serversettings'] == '1' ? true : false),
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'isbinddomain' => array(
|
'isbinddomain' => array(
|
||||||
'label' => 'Nameserver',
|
'label' => 'Nameserver',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array('1')
|
'value' => array('1')
|
||||||
),
|
),
|
||||||
'zonefile' => array(
|
'zonefile' => array(
|
||||||
@@ -204,16 +204,16 @@ return array(
|
|||||||
'label' => $lng['admin']['emaildomain'],
|
'label' => $lng['admin']['emaildomain'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array('1')
|
'value' => array('1')
|
||||||
),
|
),
|
||||||
'email_only' => array(
|
'email_only' => array(
|
||||||
'label' => $lng['admin']['email_only'],
|
'label' => $lng['admin']['email_only'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array()
|
'value' => array()
|
||||||
),
|
),
|
||||||
'subcanemaildomain' => array(
|
'subcanemaildomain' => array(
|
||||||
@@ -222,12 +222,12 @@ return array(
|
|||||||
'select_var' => $subcanemaildomain
|
'select_var' => $subcanemaildomain
|
||||||
),
|
),
|
||||||
'dkim' => array(
|
'dkim' => array(
|
||||||
'visible' => ($settings['dkim']['use_dkim'] == '1' ? true : false),
|
'visible' => (Settings::Get('dkim.use_dkim') == '1' ? true : false),
|
||||||
'label' => 'DomainKeys',
|
'label' => 'DomainKeys',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array('1')
|
'value' => array('1')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ return array(
|
|||||||
),
|
),
|
||||||
'customerid' => array(
|
'customerid' => array(
|
||||||
'label' => $lng['admin']['customer'],
|
'label' => $lng['admin']['customer'],
|
||||||
'type' => ($settings['panel']['allow_domain_change_customer'] == '1' ? 'select' : 'label'),
|
'type' => (Settings::Get('panel.allow_domain_change_customer') == '1' ? 'select' : 'label'),
|
||||||
'select_var' => (isset($customers) ? $customers : null),
|
'select_var' => (isset($customers) ? $customers : null),
|
||||||
'value' => (isset($result['customername']) ? $result['customername'] : null),
|
'value' => (isset($result['customername']) ? $result['customername'] : null),
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
@@ -40,7 +40,7 @@ return array(
|
|||||||
'adminid' => array(
|
'adminid' => array(
|
||||||
'visible' => ($userinfo['customers_see_all'] == '1' ? true : false),
|
'visible' => ($userinfo['customers_see_all'] == '1' ? true : false),
|
||||||
'label' => $lng['admin']['admin'],
|
'label' => $lng['admin']['admin'],
|
||||||
'type' => ($settings['panel']['allow_domain_change_admin'] == '1' ? 'select' : 'label'),
|
'type' => (Settings::Get('panel.allow_domain_change_admin') == '1' ? 'select' : 'label'),
|
||||||
'select_var' => (isset($admins) ? $admins : null),
|
'select_var' => (isset($admins) ? $admins : null),
|
||||||
'value' => (isset($result['adminname']) ? $result['adminname'] : null),
|
'value' => (isset($result['adminname']) ? $result['adminname'] : null),
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
@@ -67,8 +67,8 @@ return array(
|
|||||||
'desc' => $lng['admin']['domain_editable']['desc'],
|
'desc' => $lng['admin']['domain_editable']['desc'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['caneditdomain'])
|
'value' => array($result['caneditdomain'])
|
||||||
),
|
),
|
||||||
'add_date' => array(
|
'add_date' => array(
|
||||||
@@ -115,34 +115,34 @@ return array(
|
|||||||
'is_array' => 1
|
'is_array' => 1
|
||||||
),
|
),
|
||||||
'ssl_redirect' => array(
|
'ssl_redirect' => array(
|
||||||
'visible' => ($settings['system']['use_ssl'] == '1' ? ($ssl_ipsandports != '' ? true : false) : false),
|
'visible' => (Settings::Get('system.use_ssl') == '1' ? ($ssl_ipsandports != '' ? true : false) : false),
|
||||||
'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',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['ssl_redirect'])
|
'value' => array($result['ssl_redirect'])
|
||||||
),
|
),
|
||||||
'no_ssl_available_info' => array(
|
'no_ssl_available_info' => array(
|
||||||
'visible' => ($settings['system']['use_ssl'] == '1' ? ($ssl_ipsandports == '' ? true : false) : false),
|
'visible' => (Settings::Get('system.use_ssl') == '1' ? ($ssl_ipsandports == '' ? true : false) : false),
|
||||||
'label' => 'SSL',
|
'label' => 'SSL',
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $lng['panel']['nosslipsavailable']
|
'value' => $lng['panel']['nosslipsavailable']
|
||||||
),
|
),
|
||||||
'selectserveralias' => array(
|
'selectserveralias' => array(
|
||||||
'label' => $lng['admin']['selectserveralias'],
|
'label' => $lng['admin']['selectserveralias'],
|
||||||
'desc' => $lng['admin']['selectserveralias_desc'],
|
'desc' => $lng['admin']['selectserveralias_desc'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $serveraliasoptions
|
'select_var' => $serveraliasoptions
|
||||||
),
|
),
|
||||||
'speciallogfile' => array(
|
'speciallogfile' => array(
|
||||||
'label' => $lng['admin']['speciallogfile']['title'],
|
'label' => $lng['admin']['speciallogfile']['title'],
|
||||||
'desc' => $lng['admin']['speciallogfile']['description'],
|
'desc' => $lng['admin']['speciallogfile']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['speciallogfile'])
|
'value' => array($result['speciallogfile'])
|
||||||
),
|
),
|
||||||
'specialsettings' => array(
|
'specialsettings' => array(
|
||||||
@@ -161,8 +161,8 @@ return array(
|
|||||||
'desc' => $lng['serversettings']['specialsettingsforsubdomains']['description'],
|
'desc' => $lng['serversettings']['specialsettingsforsubdomains']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array('1')
|
'value' => array('1')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -176,24 +176,24 @@ return array(
|
|||||||
'label' => 'OpenBasedir',
|
'label' => 'OpenBasedir',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['openbasedir'])
|
'value' => array($result['openbasedir'])
|
||||||
),
|
),
|
||||||
'phpsettingid' => array(
|
'phpsettingid' => array(
|
||||||
'visible' => (((int)$settings['system']['mod_fcgid'] == 1 || (int)$settings['phpfpm']['enabled'] == 1) ? true : false),
|
'visible' => (((int)Settings::Get('system.mod_fcgid') == 1 || (int)Settings::Get('phpfpm.enabled') == 1) ? true : false),
|
||||||
'label' => $lng['admin']['phpsettings']['title'],
|
'label' => $lng['admin']['phpsettings']['title'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $phpconfigs
|
'select_var' => $phpconfigs
|
||||||
),
|
),
|
||||||
'mod_fcgid_starter' => array(
|
'mod_fcgid_starter' => array(
|
||||||
'visible' => ((int)$settings['system']['mod_fcgid'] == 1 ? true : false),
|
'visible' => ((int)Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
||||||
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'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)$settings['system']['mod_fcgid'] == 1 ? true : false),
|
'visible' => ((int)Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
||||||
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => ((int)$result['mod_fcgid_maxrequests'] != - 1 ? $result['mod_fcgid_maxrequests'] : '')
|
'value' => ((int)$result['mod_fcgid_maxrequests'] != - 1 ? $result['mod_fcgid_maxrequests'] : '')
|
||||||
@@ -203,14 +203,14 @@ 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' => ($settings['system']['bind_enable'] == '1' && $userinfo['change_serversettings'] == '1' ? true : false),
|
'visible' => (Settings::Get('system.bind_enable') == '1' && $userinfo['change_serversettings'] == '1' ? true : false),
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'isbinddomain' => array(
|
'isbinddomain' => array(
|
||||||
'label' => 'Nameserver',
|
'label' => 'Nameserver',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['isbinddomain'])
|
'value' => array($result['isbinddomain'])
|
||||||
),
|
),
|
||||||
'zonefile' => array(
|
'zonefile' => array(
|
||||||
@@ -229,16 +229,16 @@ return array(
|
|||||||
'label' => $lng['admin']['emaildomain'],
|
'label' => $lng['admin']['emaildomain'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['isemaildomain'])
|
'value' => array($result['isemaildomain'])
|
||||||
),
|
),
|
||||||
'email_only' => array(
|
'email_only' => array(
|
||||||
'label' => $lng['admin']['email_only'],
|
'label' => $lng['admin']['email_only'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['email_only'])
|
'value' => array($result['email_only'])
|
||||||
),
|
),
|
||||||
'subcanemaildomain' => array(
|
'subcanemaildomain' => array(
|
||||||
@@ -247,12 +247,12 @@ return array(
|
|||||||
'select_var' => $subcanemaildomain
|
'select_var' => $subcanemaildomain
|
||||||
),
|
),
|
||||||
'dkim' => array(
|
'dkim' => array(
|
||||||
'visible' => ($settings['dkim']['use_dkim'] == '1' ? true : false),
|
'visible' => (Settings::Get('dkim.use_dkim') == '1' ? true : false),
|
||||||
'label' => 'DomainKeys',
|
'label' => 'DomainKeys',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['dkim'])
|
'value' => array($result['dkim'])
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -43,24 +43,24 @@ return array(
|
|||||||
'label' => $lng['admin']['ipsandports']['create_listen_statement'],
|
'label' => $lng['admin']['ipsandports']['create_listen_statement'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array('1')
|
'value' => array('1')
|
||||||
),
|
),
|
||||||
'namevirtualhost_statement' => array(
|
'namevirtualhost_statement' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['create_namevirtualhost_statement'],
|
'label' => $lng['admin']['ipsandports']['create_namevirtualhost_statement'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array('1')
|
'value' => array('1')
|
||||||
),
|
),
|
||||||
'vhostcontainer' => array(
|
'vhostcontainer' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['create_vhostcontainer'],
|
'label' => $lng['admin']['ipsandports']['create_vhostcontainer'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array('1')
|
'value' => array('1')
|
||||||
),
|
),
|
||||||
'docroot' => array(
|
'docroot' => array(
|
||||||
@@ -80,8 +80,8 @@ return array(
|
|||||||
'label' => $lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'],
|
'label' => $lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array('1')
|
'value' => array('1')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -103,14 +103,14 @@ 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' => ($settings['system']['use_ssl'] == 1 ? true : false),
|
'visible' => (Settings::Get('system.use_ssl') == 1 ? true : false),
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'ssl' => array(
|
'ssl' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['enable_ssl'],
|
'label' => $lng['admin']['ipsandports']['enable_ssl'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array()
|
'value' => array()
|
||||||
),
|
),
|
||||||
'ssl_cert_file' => array(
|
'ssl_cert_file' => array(
|
||||||
|
|||||||
@@ -44,26 +44,26 @@ return array(
|
|||||||
'listen_statement' => array(
|
'listen_statement' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['create_listen_statement'],
|
'label' => $lng['admin']['ipsandports']['create_listen_statement'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['listen_statement'])
|
'value' => array($result['listen_statement'])
|
||||||
),
|
),
|
||||||
'namevirtualhost_statement' => array(
|
'namevirtualhost_statement' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['create_namevirtualhost_statement'],
|
'label' => $lng['admin']['ipsandports']['create_namevirtualhost_statement'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['namevirtualhost_statement'])
|
'value' => array($result['namevirtualhost_statement'])
|
||||||
),
|
),
|
||||||
'vhostcontainer' => array(
|
'vhostcontainer' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['create_vhostcontainer'],
|
'label' => $lng['admin']['ipsandports']['create_vhostcontainer'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['vhostcontainer'])
|
'value' => array($result['vhostcontainer'])
|
||||||
),
|
),
|
||||||
'docroot' => array(
|
'docroot' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['docroot']['title'],
|
'label' => $lng['admin']['ipsandports']['docroot']['title'],
|
||||||
@@ -83,10 +83,10 @@ return array(
|
|||||||
'vhostcontainer_servername_statement' => array(
|
'vhostcontainer_servername_statement' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'],
|
'label' => $lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['vhostcontainer_servername_statement'])
|
'value' => array($result['vhostcontainer_servername_statement'])
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -108,15 +108,15 @@ 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' => ($settings['system']['use_ssl'] == 1 ? true : false),
|
'visible' => (Settings::Get('system.use_ssl') == 1 ? true : false),
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'ssl' => array(
|
'ssl' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['enable_ssl'],
|
'label' => $lng['admin']['ipsandports']['enable_ssl'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['ssl'])
|
'value' => array($result['ssl'])
|
||||||
),
|
),
|
||||||
'ssl_cert_file' => array(
|
'ssl_cert_file' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['ssl_cert_file'],
|
'label' => $lng['admin']['ipsandports']['ssl_cert_file'],
|
||||||
|
|||||||
@@ -30,14 +30,14 @@ return array(
|
|||||||
'maxlength' => 50
|
'maxlength' => 50
|
||||||
),
|
),
|
||||||
'binary' => array(
|
'binary' => array(
|
||||||
'visible' => ($settings['system']['mod_fcgid'] == 1 ? true : false),
|
'visible' => (Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
||||||
'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'
|
||||||
),
|
),
|
||||||
'file_extensions' => array(
|
'file_extensions' => array(
|
||||||
'visible' => ($settings['system']['mod_fcgid'] == 1 ? true : false),
|
'visible' => (Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
||||||
'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',
|
||||||
@@ -45,33 +45,33 @@ return array(
|
|||||||
'value' => 'php'
|
'value' => 'php'
|
||||||
),
|
),
|
||||||
'mod_fcgid_starter' => array(
|
'mod_fcgid_starter' => array(
|
||||||
'visible' => ($settings['system']['mod_fcgid'] == 1 ? true : false),
|
'visible' => (Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
||||||
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'mod_fcgid_maxrequests' => array(
|
'mod_fcgid_maxrequests' => array(
|
||||||
'visible' => ($settings['system']['mod_fcgid'] == 1 ? true : false),
|
'visible' => (Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
||||||
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'phpfpm_enable_slowlog' => array(
|
'phpfpm_enable_slowlog' => array(
|
||||||
'visible' => ($settings['phpfpm']['enabled'] == 1 ? true : false),
|
'visible' => (Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
||||||
'label' => $lng['admin']['phpsettings']['enable_slowlog'],
|
'label' => $lng['admin']['phpsettings']['enable_slowlog'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array()
|
'value' => array()
|
||||||
),
|
),
|
||||||
'phpfpm_reqtermtimeout' => array(
|
'phpfpm_reqtermtimeout' => array(
|
||||||
'visible' => ($settings['phpfpm']['enabled'] == 1 ? true : false),
|
'visible' => (Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
||||||
'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' => ($settings['phpfpm']['enabled'] == 1 ? true : false),
|
'visible' => (Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
||||||
'label' => $lng['admin']['phpsettings']['request_slowlog_timeout'],
|
'label' => $lng['admin']['phpsettings']['request_slowlog_timeout'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'maxlength' => 10,
|
'maxlength' => 10,
|
||||||
|
|||||||
@@ -31,14 +31,14 @@ return array(
|
|||||||
'value' => $result['description']
|
'value' => $result['description']
|
||||||
),
|
),
|
||||||
'binary' => array(
|
'binary' => array(
|
||||||
'visible' => ($settings['system']['mod_fcgid'] == 1 ? true : false),
|
'visible' => (Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
||||||
'label' => $lng['admin']['phpsettings']['binary'],
|
'label' => $lng['admin']['phpsettings']['binary'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'maxlength' => 255,
|
'maxlength' => 255,
|
||||||
'value' => $result['binary']
|
'value' => $result['binary']
|
||||||
),
|
),
|
||||||
'file_extensions' => array(
|
'file_extensions' => array(
|
||||||
'visible' => ($settings['system']['mod_fcgid'] == 1 ? true : false),
|
'visible' => (Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
||||||
'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',
|
||||||
@@ -46,35 +46,35 @@ return array(
|
|||||||
'value' => $result['file_extensions']
|
'value' => $result['file_extensions']
|
||||||
),
|
),
|
||||||
'mod_fcgid_starter' => array(
|
'mod_fcgid_starter' => array(
|
||||||
'visible' => ($settings['system']['mod_fcgid'] == 1 ? true : false),
|
'visible' => (Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
||||||
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
'label' => $lng['admin']['mod_fcgid_starter']['title'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'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' => ($settings['system']['mod_fcgid'] == 1 ? true : false),
|
'visible' => (Settings::Get('system.mod_fcgid') == 1 ? true : false),
|
||||||
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => ((int)$result['mod_fcgid_maxrequests'] != - 1 ? $result['mod_fcgid_maxrequests'] : '')
|
'value' => ((int)$result['mod_fcgid_maxrequests'] != - 1 ? $result['mod_fcgid_maxrequests'] : '')
|
||||||
),
|
),
|
||||||
'phpfpm_enable_slowlog' => array(
|
'phpfpm_enable_slowlog' => array(
|
||||||
'visible' => ($settings['phpfpm']['enabled'] == 1 ? true : false),
|
'visible' => (Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
||||||
'label' => $lng['admin']['phpsettings']['enable_slowlog'],
|
'label' => $lng['admin']['phpsettings']['enable_slowlog'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||||
),
|
),
|
||||||
'value' => array($result['fpm_slowlog'])
|
'value' => array($result['fpm_slowlog'])
|
||||||
),
|
),
|
||||||
'phpfpm_reqtermtimeout' => array(
|
'phpfpm_reqtermtimeout' => array(
|
||||||
'visible' => ($settings['phpfpm']['enabled'] == 1 ? true : false),
|
'visible' => (Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
||||||
'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' => ($settings['phpfpm']['enabled'] == 1 ? true : false),
|
'visible' => (Settings::Get('phpfpm.enabled') == 1 ? true : false),
|
||||||
'label' => $lng['admin']['phpsettings']['request_slowlog_timeout'],
|
'label' => $lng['admin']['phpsettings']['request_slowlog_timeout'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'maxlength' => 10,
|
'maxlength' => 10,
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ return array(
|
|||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
'cols' => 60,
|
'cols' => 60,
|
||||||
'rows' => 12
|
'rows' => 12
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ return array(
|
|||||||
'cols' => 60,
|
'cols' => 60,
|
||||||
'rows' => 12,
|
'rows' => 12,
|
||||||
'value' => $row['value']
|
'value' => $row['value']
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ return array(
|
|||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
'cols' => 60,
|
'cols' => 60,
|
||||||
'rows' => 12
|
'rows' => 12
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ return array(
|
|||||||
'cols' => 60,
|
'cols' => 60,
|
||||||
'rows' => 12,
|
'rows' => 12,
|
||||||
'value' => $mailbody
|
'value' => $mailbody
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -43,25 +43,25 @@ return array(
|
|||||||
),
|
),
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => $lng['panel']['path'],
|
||||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescriptionSubdomain'] : null).(isset($pathSelect['note']) ? $pathSelect['note'].'<br />'.$pathSelect['value'] : ''),
|
'desc' => (Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescriptionSubdomain'] : null).(isset($pathSelect['note']) ? $pathSelect['note'].'<br />'.$pathSelect['value'] : ''),
|
||||||
'type' => $pathSelect['type'],
|
'type' => $pathSelect['type'],
|
||||||
'select_var' => $pathSelect['value'],
|
'select_var' => $pathSelect['value'],
|
||||||
'value' => $pathSelect['value']
|
'value' => $pathSelect['value']
|
||||||
),
|
),
|
||||||
'url' => array(
|
'url' => array(
|
||||||
'visible' => ($settings['panel']['pathedit'] == 'Dropdown' ? true : false),
|
'visible' => (Settings::Get('panel.pathedit') == 'Dropdown' ? true : false),
|
||||||
'label' => $lng['panel']['urloverridespath'],
|
'label' => $lng['panel']['urloverridespath'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'redirectcode' => array(
|
'redirectcode' => array(
|
||||||
'visible' => (($settings['system']['webserver'] == 'apache2' && $settings['customredirect']['enabled'] == '1') ? true : false),
|
'visible' => ((Settings::Get('system.webserver') == 'apache2' && Settings::Get('customredirect.enabled') == '1') ? true : false),
|
||||||
'label' => $lng['domains']['redirectifpathisurl'],
|
'label' => $lng['domains']['redirectifpathisurl'],
|
||||||
'desc' => $lng['domains']['redirectifpathisurlinfo'],
|
'desc' => $lng['domains']['redirectifpathisurlinfo'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => isset($redirectcode) ? $redirectcode : null
|
'select_var' => isset($redirectcode) ? $redirectcode : null
|
||||||
),
|
),
|
||||||
'ssl_redirect' => array(
|
'ssl_redirect' => array(
|
||||||
'visible' => ($settings['system']['use_ssl'] == '1' ? ($ssl_ipsandports != '' ? true : false) : false),
|
'visible' => (Settings::Get('system.use_ssl') == '1' ? ($ssl_ipsandports != '' ? true : false) : false),
|
||||||
'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',
|
||||||
|
|||||||
@@ -42,19 +42,19 @@ return array(
|
|||||||
),
|
),
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => $lng['panel']['path'],
|
||||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescriptionSubdomain'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
'desc' => (Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescriptionSubdomain'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
||||||
'type' => $pathSelect['type'],
|
'type' => $pathSelect['type'],
|
||||||
'select_var' => $pathSelect['value'],
|
'select_var' => $pathSelect['value'],
|
||||||
'value' => $pathSelect['value']
|
'value' => $pathSelect['value']
|
||||||
),
|
),
|
||||||
'url' => array(
|
'url' => array(
|
||||||
'visible' => ($settings['panel']['pathedit'] == 'Dropdown' ? true : false),
|
'visible' => (Settings::Get('panel.pathedit') == 'Dropdown' ? true : false),
|
||||||
'label' => $lng['panel']['urloverridespath'],
|
'label' => $lng['panel']['urloverridespath'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $urlvalue
|
'value' => $urlvalue
|
||||||
),
|
),
|
||||||
'redirectcode' => array(
|
'redirectcode' => array(
|
||||||
'visible' => (($settings['system']['webserver'] == 'apache2' && $settings['customredirect']['enabled'] == '1') ? true : false),
|
'visible' => ((Settings::Get('system.webserver') == 'apache2' && Settings::Get('customredirect.enabled') == '1') ? true : false),
|
||||||
'label' => $lng['domains']['redirectifpathisurl'],
|
'label' => $lng['domains']['redirectifpathisurl'],
|
||||||
'desc' => $lng['domains']['redirectifpathisurlinfo'],
|
'desc' => $lng['domains']['redirectifpathisurlinfo'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
@@ -77,7 +77,7 @@ return array(
|
|||||||
'value' => array($result['isemaildomain'])
|
'value' => array($result['isemaildomain'])
|
||||||
),
|
),
|
||||||
'ssl_redirect' => array(
|
'ssl_redirect' => array(
|
||||||
'visible' => ($settings['system']['use_ssl'] == '1' ? ($ssl_ipsandports != '' ? (domainHasSslIpPort($result['id']) ? true : false) : false) : false),
|
'visible' => (Settings::Get('system.use_ssl') == '1' ? ($ssl_ipsandports != '' ? (domainHasSslIpPort($result['id']) ? true : false) : false) : false),
|
||||||
'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',
|
||||||
|
|||||||
@@ -40,14 +40,14 @@ return array(
|
|||||||
'value' => generatePassword(),
|
'value' => generatePassword(),
|
||||||
),
|
),
|
||||||
'email_quota' => array(
|
'email_quota' => array(
|
||||||
'visible' => ($settings['system']['mail_quota_enabled'] == '1' ? true : false),
|
'visible' => (Settings::Get('system.mail_quota_enabled') == '1' ? true : false),
|
||||||
'label' => $lng['emails']['quota'],
|
'label' => $lng['emails']['quota'],
|
||||||
'desc' => $lng['panel']['megabyte'],
|
'desc' => $lng['panel']['megabyte'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $quota
|
'value' => $quota
|
||||||
),
|
),
|
||||||
'alternative_email' => array(
|
'alternative_email' => array(
|
||||||
'visible' => ($settings['panel']['sendalternativemail'] == '1' ? true : false),
|
'visible' => (Settings::Get('panel.sendalternativemail') == '1' ? true : false),
|
||||||
'label' => $lng['emails']['alternative_emailaddress'],
|
'label' => $lng['emails']['alternative_emailaddress'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ return array(
|
|||||||
'value' => $lng['panel']['no'].' [<a href="'.$filename.'?page=accounts&action=add&id='.$result['id'].'&s='.$s.'">'.$lng['emails']['account_add'].'</a>]'
|
'value' => $lng['panel']['no'].' [<a href="'.$filename.'?page=accounts&action=add&id='.$result['id'].'&s='.$s.'">'.$lng['emails']['account_add'].'</a>]'
|
||||||
),
|
),
|
||||||
'mail_quota' => array(
|
'mail_quota' => array(
|
||||||
'visible' => ($result['popaccountid'] != 0 && $settings['system']['mail_quota_enabled']),
|
'visible' => ($result['popaccountid'] != 0 && Settings::Get('system.mail_quota_enabled')),
|
||||||
'label' => $lng['customer']['email_quota'],
|
'label' => $lng['customer']['email_quota'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $result['quota'].' '.$lng['panel']['megabyte'].' [<a href="'.$filename.'?page=accounts&action=changequota&id='.$result['id'].'&s='.$s.'">'.$lng['emails']['quota_edit'].'</a>]'
|
'value' => $result['quota'].' '.$lng['panel']['megabyte'].' [<a href="'.$filename.'?page=accounts&action=changequota&id='.$result['id'].'&s='.$s.'">'.$lng['emails']['quota_edit'].'</a>]'
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ return array(
|
|||||||
'fields' => array(
|
'fields' => array(
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => $lng['panel']['path'],
|
||||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
'desc' => (Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
||||||
'type' => $pathSelect['type'],
|
'type' => $pathSelect['type'],
|
||||||
'select_var' => $pathSelect['value'],
|
'select_var' => $pathSelect['value'],
|
||||||
'value' => $pathSelect['value']
|
'value' => $pathSelect['value']
|
||||||
@@ -45,13 +45,13 @@ return array(
|
|||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'error403path' => array(
|
'error403path' => array(
|
||||||
'visible' => ($settings['system']['webserver'] == 'apache2'),
|
'visible' => (Settings::Get('system.webserver') == 'apache2'),
|
||||||
'label' => $lng['extras']['errordocument403path'],
|
'label' => $lng['extras']['errordocument403path'],
|
||||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
'desc' => $lng['panel']['descriptionerrordocument'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'error500path' => array(
|
'error500path' => array(
|
||||||
'visible' => ($settings['system']['webserver'] == 'apache2'),
|
'visible' => (Settings::Get('system.webserver') == 'apache2'),
|
||||||
'label' => $lng['extras']['errordocument500path'],
|
'label' => $lng['extras']['errordocument500path'],
|
||||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
'desc' => $lng['panel']['descriptionerrordocument'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
|
|||||||
@@ -44,14 +44,14 @@ return array(
|
|||||||
'value' => $result['error404path']
|
'value' => $result['error404path']
|
||||||
),
|
),
|
||||||
'error403path' => array(
|
'error403path' => array(
|
||||||
'visible' => ($settings['system']['webserver'] == 'apache2'),
|
'visible' => (Settings::Get('system.webserver') == 'apache2'),
|
||||||
'label' => $lng['extras']['errordocument403path'],
|
'label' => $lng['extras']['errordocument403path'],
|
||||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
'desc' => $lng['panel']['descriptionerrordocument'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $result['error403path']
|
'value' => $result['error403path']
|
||||||
),
|
),
|
||||||
'error500path' => array(
|
'error500path' => array(
|
||||||
'visible' => ($settings['system']['webserver'] == 'apache2'),
|
'visible' => (Settings::Get('system.webserver') == 'apache2'),
|
||||||
'label' => $lng['extras']['errordocument500path'],
|
'label' => $lng['extras']['errordocument500path'],
|
||||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
'desc' => $lng['panel']['descriptionerrordocument'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ return array(
|
|||||||
'fields' => array(
|
'fields' => array(
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => $lng['panel']['path'],
|
||||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
'desc' => (Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
||||||
'type' => $pathSelect['type'],
|
'type' => $pathSelect['type'],
|
||||||
'select_var' => $pathSelect['value'],
|
'select_var' => $pathSelect['value'],
|
||||||
'value' => $pathSelect['value']
|
'value' => $pathSelect['value']
|
||||||
|
|||||||
@@ -24,19 +24,19 @@ return array(
|
|||||||
'image' => 'icons/user_add.png',
|
'image' => 'icons/user_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'ftp_username' => array(
|
'ftp_username' => array(
|
||||||
'visible' => ($settings['customer']['ftpatdomain'] == '1' ? true : false),
|
'visible' => (Settings::Get('customer.ftpatdomain') == '1' ? true : false),
|
||||||
'label' => $lng['login']['username'],
|
'label' => $lng['login']['username'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'ftp_domain' => array(
|
'ftp_domain' => array(
|
||||||
'visible' => ($settings['customer']['ftpatdomain'] == '1' ? true : false),
|
'visible' => (Settings::Get('customer.ftpatdomain') == '1' ? true : false),
|
||||||
'label' => $lng['domains']['domainname'],
|
'label' => $lng['domains']['domainname'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => (isset($domains) ? $domains : ""),
|
'select_var' => (isset($domains) ? $domains : ""),
|
||||||
),
|
),
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => $lng['panel']['path'],
|
||||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
'desc' => (Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
||||||
'type' => $pathSelect['type'],
|
'type' => $pathSelect['type'],
|
||||||
'select_var' => $pathSelect['value'],
|
'select_var' => $pathSelect['value'],
|
||||||
'value' => $pathSelect['value']
|
'value' => $pathSelect['value']
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ return array(
|
|||||||
),
|
),
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => $lng['panel']['path'],
|
||||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
'desc' => (Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
||||||
'type' => $pathSelect['type'],
|
'type' => $pathSelect['type'],
|
||||||
'select_var' => $pathSelect['value'],
|
'select_var' => $pathSelect['value'],
|
||||||
'value' => $pathSelect['value']
|
'value' => $pathSelect['value']
|
||||||
|
|||||||
Reference in New Issue
Block a user