refactor global array
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -16,25 +16,25 @@
|
||||
*/
|
||||
return array(
|
||||
'emails_accountchangepasswd' => array(
|
||||
'title' => $lng['menue']['main']['changepassword'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['menue']['main']['changepassword'],
|
||||
'image' => 'icons/email_edit.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['menue']['main']['changepassword'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['menue']['main']['changepassword'],
|
||||
'image' => 'icons/email_edit.png',
|
||||
'fields' => array(
|
||||
'email_full' => array(
|
||||
'label' => $lng['emails']['emailaddress'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
|
||||
'type' => 'label',
|
||||
'value' => $result['email_full']
|
||||
),
|
||||
'email_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'email_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
|
||||
'type' => 'text',
|
||||
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
|
||||
'value' => \Froxlor\System\Crypt::generatePassword()
|
||||
|
||||
@@ -16,20 +16,20 @@
|
||||
*/
|
||||
return array(
|
||||
'emails_accountchangequota' => array(
|
||||
'title' => $lng['emails']['quota_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['quota_edit'],
|
||||
'image' => 'icons/email_edit.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['emails']['quota_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['quota_edit'],
|
||||
'image' => 'icons/email_edit.png',
|
||||
'fields' => array(
|
||||
'email_full' => array(
|
||||
'label' => $lng['emails']['emailaddress'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
|
||||
'type' => 'label',
|
||||
'value' => $result['email_full']
|
||||
),
|
||||
'email_quota' => array(
|
||||
'label' => $lng['emails']['quota'] . ' (MiB)',
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['quota'] . ' (MiB)',
|
||||
'type' => 'text',
|
||||
'value' => $result['quota']
|
||||
)
|
||||
|
||||
@@ -16,15 +16,15 @@
|
||||
*/
|
||||
return array(
|
||||
'emails_add' => array(
|
||||
'title' => $lng['emails']['emails_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['emails_add'],
|
||||
'image' => 'icons/email_add.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['emails']['emails_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['emails_add'],
|
||||
'image' => 'icons/email_add.png',
|
||||
'fields' => array(
|
||||
'email_part' => array(
|
||||
'label' => $lng['emails']['emailaddress'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
|
||||
'type' => 'textul',
|
||||
'ul_field' => '',
|
||||
'has_nextto' => true
|
||||
@@ -36,11 +36,11 @@ return array(
|
||||
'select_var' => $domains
|
||||
),
|
||||
'iscatchall' => array(
|
||||
'label' => $lng['emails']['iscatchall'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['iscatchall'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
|
||||
@@ -16,39 +16,39 @@
|
||||
*/
|
||||
return array(
|
||||
'emails_addaccount' => array(
|
||||
'title' => $lng['emails']['account_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['account_add'],
|
||||
'image' => 'icons/email_add.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['emails']['account_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['account_add'],
|
||||
'image' => 'icons/email_add.png',
|
||||
'fields' => array(
|
||||
'email_full' => array(
|
||||
'label' => $lng['emails']['emailaddress'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
|
||||
'type' => 'label',
|
||||
'value' => $result['email_full']
|
||||
),
|
||||
'email_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'email_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
|
||||
'type' => 'text',
|
||||
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
|
||||
'value' => \Froxlor\System\Crypt::generatePassword()
|
||||
),
|
||||
'email_quota' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('system.mail_quota_enabled') == '1' ? true : false),
|
||||
'label' => $lng['emails']['quota'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['quota'],
|
||||
'desc' => "MiB",
|
||||
'type' => 'text',
|
||||
'value' => $quota
|
||||
),
|
||||
'alternative_email' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('panel.sendalternativemail') == '1' ? true : false),
|
||||
'label' => $lng['emails']['alternative_emailaddress'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['alternative_emailaddress'],
|
||||
'type' => 'text'
|
||||
)
|
||||
)
|
||||
|
||||
@@ -16,20 +16,20 @@
|
||||
*/
|
||||
return array(
|
||||
'emails_addforwarder' => array(
|
||||
'title' => $lng['emails']['forwarder_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['forwarder_add'],
|
||||
'image' => 'icons/autoresponder_add.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['emails']['forwarder_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['forwarder_add'],
|
||||
'image' => 'icons/autoresponder_add.png',
|
||||
'fields' => array(
|
||||
'email_full' => array(
|
||||
'label' => $lng['emails']['from'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['from'],
|
||||
'type' => 'label',
|
||||
'value' => $result['email_full']
|
||||
),
|
||||
'destination' => array(
|
||||
'label' => $lng['emails']['to'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['to'],
|
||||
'type' => 'text'
|
||||
)
|
||||
)
|
||||
|
||||
@@ -16,46 +16,46 @@
|
||||
*/
|
||||
return array(
|
||||
'emails_edit' => array(
|
||||
'title' => $lng['emails']['emails_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['emails_edit'],
|
||||
'image' => 'icons/email_edit.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['emails']['emails_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['emails_edit'],
|
||||
'image' => 'icons/email_edit.png',
|
||||
'nobuttons' => true,
|
||||
'fields' => array(
|
||||
'email_full' => array(
|
||||
'label' => $lng['emails']['emailaddress'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
|
||||
'type' => 'label',
|
||||
'value' => $result['email_full']
|
||||
),
|
||||
'account_yes' => array(
|
||||
'visible' => ($result['popaccountid'] != 0 ? true : false),
|
||||
'label' => $lng['emails']['account'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['account'],
|
||||
'type' => 'label',
|
||||
'value' => $lng['panel']['yes'] . ' [<a href="' . $filename . '?page=accounts&action=changepw&id=' . $result['id'] . '&s=' . $s . '">' . $lng['menue']['main']['changepassword'] . '</a>] [<a href="' . $filename . '?page=accounts&action=delete&id=' . $result['id'] . '&s=' . $s . '">' . $lng['emails']['account_delete'] . '</a>]'
|
||||
'value' => \Froxlor\I18N\Lang::getAll()['panel']['yes'] . ' [<a href="' . $filename . '?page=accounts&action=changepw&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['menue']['main']['changepassword'] . '</a>] [<a href="' . $filename . '?page=accounts&action=delete&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['account_delete'] . '</a>]'
|
||||
),
|
||||
'account_no' => array(
|
||||
'visible' => ($result['popaccountid'] == 0 ? true : false),
|
||||
'label' => $lng['emails']['account'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['account'],
|
||||
'type' => 'label',
|
||||
'value' => $lng['panel']['no'] . ' [<a href="' . $filename . '?page=accounts&action=add&id=' . $result['id'] . '&s=' . $s . '">' . $lng['emails']['account_add'] . '</a>]'
|
||||
'value' => \Froxlor\I18N\Lang::getAll()['panel']['no'] . ' [<a href="' . $filename . '?page=accounts&action=add&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['account_add'] . '</a>]'
|
||||
),
|
||||
'mail_quota' => array(
|
||||
'visible' => ($result['popaccountid'] != 0 && \Froxlor\Settings::Get('system.mail_quota_enabled')),
|
||||
'label' => $lng['customer']['email_quota'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_quota'],
|
||||
'type' => 'label',
|
||||
'value' => $result['quota'] . ' MiB [<a href="' . $filename . '?page=accounts&action=changequota&id=' . $result['id'] . '&s=' . $s . '">' . $lng['emails']['quota_edit'] . '</a>]'
|
||||
'value' => $result['quota'] . ' MiB [<a href="' . $filename . '?page=accounts&action=changequota&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['quota_edit'] . '</a>]'
|
||||
),
|
||||
'mail_catchall' => array(
|
||||
'label' => $lng['emails']['catchall'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['catchall'],
|
||||
'type' => 'label',
|
||||
'value' => ($result['iscatchall'] == 0 ? $lng['panel']['no'] : $lng['panel']['yes']) . ' [<a href="' . $filename . '?page=' . $page . '&action=togglecatchall&id=' . $result['id'] . '&s=' . $s . '">' . $lng['panel']['toggle'] . '</a>]'
|
||||
'value' => ($result['iscatchall'] == 0 ? \Froxlor\I18N\Lang::getAll()['panel']['no'] : \Froxlor\I18N\Lang::getAll()['panel']['yes']) . ' [<a href="' . $filename . '?page=' . $page . '&action=togglecatchall&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['panel']['toggle'] . '</a>]'
|
||||
),
|
||||
'mail_fwds' => array(
|
||||
'label' => $lng['emails']['forwarders'] . ' (' . $forwarders_count . ')',
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['forwarders'] . ' (' . $forwarders_count . ')',
|
||||
'type' => 'label',
|
||||
'value' => $forwarders . ' <a href="' . $filename . '?page=forwarders&action=add&id=' . $result['id'] . '&s=' . $s . '">' . $lng['emails']['forwarder_add'] . '</a>'
|
||||
'value' => $forwarders . ' <a href="' . $filename . '?page=forwarders&action=add&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['forwarder_add'] . '</a>'
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user