diff --git a/lib/formfields/admin/admin/formfield.admin_add.php b/lib/formfields/admin/admin/formfield.admin_add.php new file mode 100644 index 00000000..70ca9851 --- /dev/null +++ b/lib/formfields/admin/admin/formfield.admin_add.php @@ -0,0 +1,211 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.admin_add.php 104 2010-12-08 07:23:22Z d00p $ + */ + +return array( + 'admin_add' => array( + 'title' => $lng['admin']['admin_add'], + 'image' => 'icons/add_user.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['admin']['accountdata'], + 'image' => 'icons/add_user.png', + 'fields' => array( + 'loginname' => array( + 'label' => $lng['login']['username'], + 'type' => 'text', + 'mandatory' => true + ), + 'admin_password' => array( + 'label' => $lng['login']['password'], + 'type' => 'password', + 'mandatory' => true + ), + 'def_language' => array( + 'label' => $lng['login']['language'], + 'type' => 'select', + 'select_var' => $language_options + ) + ) + ), + 'section_b' => array( + 'title' => $lng['admin']['contactdata'], + 'image' => 'icons/add_user.png', + 'fields' => array( + 'name' => array( + 'label' => $lng['customer']['name'], + 'type' => 'text', + 'mandatory' => true + ), + 'email' => array( + 'label' => $lng['customer']['email'], + 'type' => 'text', + 'mandatory' => true + ) + ) + ), + 'section_c' => array( + 'title' => $lng['admin']['servicedata'], + 'image' => 'icons/add_user.png', + 'fields' => array( + 'ipaddress' => array( + 'label' => $lng['serversettings']['ipaddress']['title'], + 'type' => 'select', + 'select_var' => $ipaddress + ), + 'change_serversettings' => array( + 'label' => $lng['admin']['change_serversettings'], + 'type' => 'yesno', + 'yesno_var' => $change_serversettings, + ), + 'customers' => array( + 'label' => $lng['admin']['customers'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $customers_ul + ), + 'customers_see_all' => array( + 'label' => $lng['admin']['customers_see_all'], + 'type' => 'yesno', + 'yesno_var' => $customers_see_all, + ), + 'domains' => array( + 'label' => $lng['admin']['domains'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $domains_ul + ), + 'domains_see_all' => array( + 'label' => $lng['admin']['domains_see_all'], + 'type' => 'yesno', + 'yesno_var' => $domains_see_all, + ), + 'caneditphpsettings' => array( + 'label' => $lng['admin']['caneditphpsettings'], + 'type' => 'yesno', + 'yesno_var' => $caneditphpsettings, + ), + 'diskspace' => array( + 'label' => $lng['customer']['diskspace'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 6, + 'mandatory' => true, + 'ul_field' => $diskspace_ul + ), + 'traffic' => array( + 'label' => $lng['customer']['traffic'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 4, + 'mandatory' => true, + 'ul_field' => $traffic_ul + ), + 'subdomains' => array( + 'label' => $lng['customer']['subdomains'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $subdomains_ul + ), + 'emails' => array( + 'label' => $lng['customer']['emails'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $emails_ul + ), + 'email_accounts' => array( + 'label' => $lng['customer']['accounts'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $email_accounts_ul + ), + 'email_forwarders' => array( + 'label' => $lng['customer']['forwarders'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $email_forwarders_ul + ), + 'email_quota' => array( + 'label' => $lng['customer']['email_quota'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'visible' => $settings['system']['mail_quota_enabled'], + 'mandatory' => true, + 'ul_field' => $email_quota_ul + ), + 'email_autoresponder' => array( + 'label' => $lng['customer']['autoresponder'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'visible' => $settings['autoresponder']['autoresponder_active'], + 'ul_field' => $email_autoresponder_ul + ), + 'ftps' => array( + 'label' => $lng['customer']['ftps'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'ul_field' => $ftps_ul + ), + 'tickets' => array( + 'label' => $lng['customer']['tickets'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'visible' => $settings['ticket']['enabled'], + 'ul_field' => $tickets_ul + ), + 'mysqls' => array( + 'label' => $lng['customer']['mysqls'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $mysqls_ul + ), + 'can_manage_aps_packages' => array( + 'label' => $lng['aps']['canmanagepackages'], + 'type' => 'yesno', + 'yesno_var' => $can_manage_aps_packages, + 'visible' => $settings['aps']['aps_active'] + ), + 'number_of_aps_packages' => array( + 'label' => $lng['aps']['numberofapspackages'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'visible' => $settings['aps']['aps_active'], + 'ul_field' => $number_of_aps_packages_ul + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/admin/formfield.admin_edit.php b/lib/formfields/admin/admin/formfield.admin_edit.php new file mode 100644 index 00000000..012077d1 --- /dev/null +++ b/lib/formfields/admin/admin/formfield.admin_edit.php @@ -0,0 +1,221 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.admin_edit.php 104 2010-12-08 07:23:22Z d00p $ + */ + +return array( + 'admin_edit' => array( + 'title' => $lng['admin']['admin_edit'], + 'image' => 'icons/user_edit.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['admin']['accountdata'], + 'image' => 'icons/user_edit.png', + 'fields' => array( + 'loginname' => array( + 'label' => $lng['login']['username'], + 'type' => 'label', + 'value' => $result['loginname'] + ), + 'deactivated' => array( + 'label' => $lng['admin']['deactivated_user'], + 'type' => 'yesno', + 'yesno_var' => $deactivated, + 'visible' => ($result['adminid'] == $userinfo['userid'] ? false : true) + ), + 'admin_password' => array( + 'label' => $lng['login']['password'].' ('.$lng['panel']['emptyfornochanges'].')', + 'type' => 'password', + 'visible' => ($result['adminid'] == $userinfo['userid'] ? false : true) + ), + 'def_language' => array( + 'label' => $lng['login']['language'], + 'type' => 'select', + 'select_var' => $language_options, + 'visible' => ($result['adminid'] == $userinfo['userid'] ? false : true) + ) + ) + ), + 'section_b' => array( + 'title' => $lng['admin']['contactdata'], + 'image' => 'icons/user_edit.png', + 'fields' => array( + 'name' => array( + 'label' => $lng['customer']['name'], + 'type' => 'text', + 'mandatory' => true, + 'value' => $result['name'] + ), + 'email' => array( + 'label' => $lng['customer']['email'], + 'type' => 'text', + 'mandatory' => true, + 'value' => $result['email'] + ) + ) + ), + 'section_c' => array( + 'title' => $lng['admin']['servicedata'], + 'image' => 'icons/add_user.png', + 'visible' => ($result['adminid'] != $userinfo['userid'] ? true : false), + 'fields' => array( + 'ipaddress' => array( + 'label' => $lng['serversettings']['ipaddress']['title'], + 'type' => 'select', + 'select_var' => $ipaddress + ), + 'change_serversettings' => array( + 'label' => $lng['admin']['change_serversettings'], + 'type' => 'yesno', + 'yesno_var' => $change_serversettings, + ), + 'customers' => array( + 'label' => $lng['admin']['customers'], + 'type' => 'textul', + 'value' => $result['customers'], + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $customers_ul + ), + 'customers_see_all' => array( + 'label' => $lng['admin']['customers_see_all'], + 'type' => 'yesno', + 'yesno_var' => $customers_see_all, + ), + 'domains' => array( + 'label' => $lng['admin']['domains'], + 'type' => 'textul', + 'value' => $result['domains'], + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $domains_ul + ), + 'domains_see_all' => array( + 'label' => $lng['admin']['domains_see_all'], + 'type' => 'yesno', + 'yesno_var' => $domains_see_all, + ), + 'caneditphpsettings' => array( + 'label' => $lng['admin']['caneditphpsettings'], + 'type' => 'yesno', + 'yesno_var' => $caneditphpsettings, + ), + 'diskspace' => array( + 'label' => $lng['customer']['diskspace'], + 'type' => 'textul', + 'value' => $result['diskspace'], + 'maxlength' => 6, + 'mandatory' => true, + 'ul_field' => $diskspace_ul + ), + 'traffic' => array( + 'label' => $lng['customer']['traffic'], + 'type' => 'textul', + 'value' => $result['traffic'], + 'maxlength' => 4, + 'mandatory' => true, + 'ul_field' => $traffic_ul + ), + 'subdomains' => array( + 'label' => $lng['customer']['subdomains'], + 'type' => 'textul', + 'value' => $result['subdomains'], + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $subdomains_ul + ), + 'emails' => array( + 'label' => $lng['customer']['emails'], + 'type' => 'textul', + 'value' => $result['emails'], + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $emails_ul + ), + 'email_accounts' => array( + 'label' => $lng['customer']['accounts'], + 'type' => 'textul', + 'value' => $result['email_accounts'], + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $email_accounts_ul + ), + 'email_forwarders' => array( + 'label' => $lng['customer']['forwarders'], + 'type' => 'textul', + 'value' => $result['email_forwarders'], + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $email_forwarders_ul + ), + 'email_quota' => array( + 'label' => $lng['customer']['email_quota'], + 'type' => 'textul', + 'value' => $result['email_quota'], + 'maxlength' => 9, + 'visible' => $settings['system']['mail_quota_enabled'], + 'mandatory' => true, + 'ul_field' => $email_quota_ul + ), + 'email_autoresponder' => array( + 'label' => $lng['customer']['autoresponder'], + 'type' => 'textul', + 'value' => $result['email_autoresponder'], + 'maxlength' => 9, + 'visible' => $settings['autoresponder']['autoresponder_active'], + 'ul_field' => $email_autoresponder_ul + ), + 'ftps' => array( + 'label' => $lng['customer']['ftps'], + 'type' => 'textul', + 'value' => $result['ftps'], + 'maxlength' => 9, + 'ul_field' => $ftps_ul + ), + 'tickets' => array( + 'label' => $lng['customer']['tickets'], + 'type' => 'textul', + 'value' => $result['tickets'], + 'maxlength' => 9, + 'visible' => $settings['ticket']['enabled'], + 'ul_field' => $tickets_ul + ), + 'mysqls' => array( + 'label' => $lng['customer']['mysqls'], + 'type' => 'textul', + 'value' => $result['mysqls'], + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $mysqls_ul + ), + 'can_manage_aps_packages' => array( + 'label' => $lng['aps']['canmanagepackages'], + 'type' => 'yesno', + 'yesno_var' => $can_manage_aps_packages, + 'visible' => $settings['aps']['aps_active'] + ), + 'number_of_aps_packages' => array( + 'label' => $lng['aps']['numberofapspackages'], + 'type' => 'textul', + 'value' => $result['aps_packages'], + 'maxlength' => 9, + 'visible' => $settings['aps']['aps_active'], + 'ul_field' => $number_of_aps_packages_ul + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/cronjobs/formfield.cronjobs_edit.php b/lib/formfields/admin/cronjobs/formfield.cronjobs_edit.php new file mode 100644 index 00000000..c121e55a --- /dev/null +++ b/lib/formfields/admin/cronjobs/formfield.cronjobs_edit.php @@ -0,0 +1,51 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.cronjobs_edit.php 105 2010-12-09 08:02:33Z d00p $ + */ + +return array( + 'cronjobs_edit' => array( + 'title' => $lng['admin']['cronjob_edit'], + 'image' => 'icons/clock_edit.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['cronjob']['cronjobsettings'], + 'image' => 'icons/clock_edit.png', + 'fields' => array( + 'cronfile' => array( + 'label' => 'Cronjob', + 'type' => ($change_cronfile == 1 ? 'text' : 'label'), + 'value' => $result['cronfile'] + ), + 'isactive' => array( + 'label' => $lng['admin']['activated'], + 'type' => 'yesno', + 'yesno_var' => $isactive + ), + 'interval_value' => array( + 'label' => $lng['cronjob']['cronjobintervalv'], + 'type' => 'text', + 'value' => $interval_value + ), + 'interval_interval' => array( + 'label' => $lng['cronjob']['cronjobinterval'], + 'type' => 'select', + 'select_var' => $interval_interval + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/customer/formfield.customer_add.php b/lib/formfields/admin/customer/formfield.customer_add.php new file mode 100644 index 00000000..5b326fa5 --- /dev/null +++ b/lib/formfields/admin/customer/formfield.customer_add.php @@ -0,0 +1,233 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.customer_add.php 96 2010-12-07 11:53:52Z d00p $ + */ + +return array( + 'customer_add' => array( + 'title' => $lng['admin']['customer_add'], + 'image' => 'icons/add_user.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['admin']['accountdata'], + 'image' => 'icons/add_user.png', + 'fields' => array( + 'new_loginname' => array( + 'label' => $lng['login']['username'], + 'type' => 'text' + ), + 'createstdsubdomain' => array( + 'label' => $lng['admin']['stdsubdomain_add'].'?', + 'type' => 'yesno', + 'yesno_var' => $createstdsubdomain + ), + 'store_defaultindex' => array( + 'label' => $lng['admin']['store_defaultindex'].'?', + 'type' => 'yesno', + 'yesno_var' => $store_defaultindex + ), + 'new_customer_password' => array( + 'label' => $lng['login']['password'], + 'type' => 'password' + ), + 'sendpassword' => array( + 'label' => $lng['admin']['sendpassword'], + 'type' => 'yesno', + 'yesno_var' => $sendpassword + ), + 'def_language' => array( + 'label' => $lng['login']['language'], + 'type' => 'select', + 'select_var' => $language_options + ) + ) + ), + 'section_b' => array( + 'title' => $lng['admin']['contactdata'], + 'image' => 'icons/add_user.png', + 'fields' => array( + 'name' => array( + 'label' => $lng['customer']['name'], + 'type' => 'text', + 'mandatory_ex' => true + ), + 'firstname' => array( + 'label' => $lng['customer']['firstname'], + 'type' => 'text', + 'mandatory_ex' => true + ), + 'company' => array( + 'label' => $lng['customer']['company'], + 'type' => 'text', + 'mandatory_ex' => true + ), + 'street' => array( + 'label' => $lng['customer']['street'], + 'type' => 'text' + ), + 'zipcode' => array( + 'label' => $lng['customer']['zipcode'], + 'type' => 'text' + ), + 'city' => array( + 'label' => $lng['customer']['city'], + 'type' => 'text' + ), + 'phone' => array( + 'label' => $lng['customer']['phone'], + 'type' => 'text' + ), + 'fax' => array( + 'label' => $lng['customer']['fax'], + 'type' => 'text' + ), + 'email' => array( + 'label' => $lng['customer']['email'], + 'type' => 'text', + 'mandatory' => true + ), + 'customernumber' => array( + 'label' => $lng['customer']['customernumber'], + 'type' => 'text' + ) + ) + ), + 'section_c' => array( + 'title' => $lng['admin']['servicedata'], + 'image' => 'icons/add_user.png', + 'fields' => array( + 'diskspace' => array( + 'label' => $lng['customer']['diskspace'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 6, + 'mandatory' => true, + 'ul_field' => $diskspace_ul + ), + 'traffic' => array( + 'label' => $lng['customer']['traffic'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 4, + 'mandatory' => true, + 'ul_field' => $traffic_ul + ), + 'subdomains' => array( + 'label' => $lng['customer']['subdomains'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $subdomains_ul + ), + 'emails' => array( + 'label' => $lng['customer']['emails'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $emails_ul + ), + 'email_accounts' => array( + 'label' => $lng['customer']['accounts'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $email_accounts_ul + ), + 'email_forwarders' => array( + 'label' => $lng['customer']['forwarders'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $email_forwarders_ul + ), + 'email_quota' => array( + 'label' => $lng['customer']['email_quota'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'visible' => $settings['system']['mail_quota_enabled'], + 'mandatory' => true, + 'ul_field' => $email_quota_ul + ), + 'email_autoresponder' => array( + 'label' => $lng['customer']['autoresponder'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'visible' => $settings['autoresponder']['autoresponder_active'], + 'ul_field' => $email_autoresponder_ul + ), + 'email_imap' => array( + 'label' => $lng['customer']['email_imap'], + 'type' => 'yesno', + 'yesno_var' => $email_imap, + 'mandatory' => true + ), + 'email_pop3' => array( + 'label' => $lng['customer']['email_pop3'], + 'type' => 'yesno', + 'yesno_var' => $email_pop3, + 'mandatory' => true + ), + 'ftps' => array( + 'label' => $lng['customer']['ftps'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'ul_field' => $ftps_ul + ), + 'tickets' => array( + 'label' => $lng['customer']['tickets'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'visible' => $settings['ticket']['enabled'], + 'ul_field' => $tickets_ul + ), + 'mysqls' => array( + 'label' => $lng['customer']['mysqls'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $mysqls_ul + ), + 'phpenabled' => array( + 'label' => $lng['admin']['phpenabled'].'?', + 'type' => 'yesno', + 'yesno_var' => $phpenabled + ), + 'perlenabled' => array( + 'label' => $lng['admin']['perlenabled'].'?', + 'type' => 'yesno', + 'yesno_var' => $perlenabled + ), + 'number_of_aps_packages' => array( + 'label' => $lng['aps']['numberofapspackages'], + 'type' => 'textul', + 'value' => 0, + 'maxlength' => 9, + 'visible' => $settings['aps']['aps_active'], + 'ul_field' => $number_of_aps_packages_ul + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/customer/formfield.customer_edit.php b/lib/formfields/admin/customer/formfield.customer_edit.php new file mode 100644 index 00000000..9d23da52 --- /dev/null +++ b/lib/formfields/admin/customer/formfield.customer_edit.php @@ -0,0 +1,244 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.customer_edit.php 100 2010-12-07 12:20:17Z d00p $ + */ + +return array( + 'customer_edit' => array( + 'title' => $lng['admin']['customer_edit'], + 'image' => 'icons/user_edit.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['admin']['accountdata'], + 'image' => 'icons/user_edit.png', + 'fields' => array( + 'loginname' => array( + 'label' => $lng['login']['username'], + 'type' => 'label', + 'value' => $result['loginname'] + ), + 'documentroot' => array( + 'label' => $lng['customer']['documentroot'], + 'type' => 'label', + 'value' => $result['documentroot'] + ), + 'createstdsubdomain' => array( + 'label' => $lng['admin']['stdsubdomain_add'].'?', + 'type' => 'yesno', + 'yesno_var' => $createstdsubdomain + ), + 'deactivated' => array( + 'label' => $lng['admin']['deactivated_user'], + 'type' => 'yesno', + 'yesno_var' => $deactivated + ), + 'new_customer_password' => array( + 'label' => $lng['login']['password'].' ('.$lng['panel']['emptyfornochanges'].')', + 'type' => 'password' + ), + 'def_language' => array( + 'label' => $lng['login']['language'], + 'type' => 'select', + 'select_var' => $language_options + ) + ) + ), + 'section_b' => array( + 'title' => $lng['admin']['contactdata'], + 'image' => 'icons/user_edit.png', + 'fields' => array( + 'name' => array( + 'label' => $lng['customer']['name'], + 'type' => 'text', + 'mandatory_ex' => true, + 'value' => $result['name'] + ), + 'firstname' => array( + 'label' => $lng['customer']['firstname'], + 'type' => 'text', + 'mandatory_ex' => true, + 'value' => $result['firstname'] + ), + 'company' => array( + 'label' => $lng['customer']['company'], + 'type' => 'text', + 'mandatory_ex' => true, + 'value' => $result['company'] + ), + 'street' => array( + 'label' => $lng['customer']['street'], + 'type' => 'text', + 'value' => $result['street'] + ), + 'zipcode' => array( + 'label' => $lng['customer']['zipcode'], + 'type' => 'text', + 'value' => $result['zipcode'] + ), + 'city' => array( + 'label' => $lng['customer']['city'], + 'type' => 'text', + 'value' => $result['city'] + ), + 'phone' => array( + 'label' => $lng['customer']['phone'], + 'type' => 'text', + 'value' => $result['phone'] + ), + 'fax' => array( + 'label' => $lng['customer']['fax'], + 'type' => 'text', + 'value' => $result['fax'] + ), + 'email' => array( + 'label' => $lng['customer']['email'], + 'type' => 'text', + 'mandatory' => true, + 'value' => $result['email'] + ), + 'customernumber' => array( + 'label' => $lng['customer']['customernumber'], + 'type' => 'text', + 'value' => $result['customernumber'] + ) + ) + ), + 'section_c' => array( + 'title' => $lng['admin']['servicedata'], + 'image' => 'icons/user_edit.png', + 'fields' => array( + 'diskspace' => array( + 'label' => $lng['customer']['diskspace'], + 'type' => 'textul', + 'value' => $result['diskspace'], + 'maxlength' => 6, + 'mandatory' => true, + 'ul_field' => $diskspace_ul + ), + 'traffic' => array( + 'label' => $lng['customer']['traffic'], + 'type' => 'textul', + 'value' => $result['traffic'], + 'maxlength' => 4, + 'mandatory' => true, + 'ul_field' => $traffic_ul + ), + 'subdomains' => array( + 'label' => $lng['customer']['subdomains'], + 'type' => 'textul', + 'value' => $result['subdomains'], + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $subdomains_ul + ), + 'emails' => array( + 'label' => $lng['customer']['emails'], + 'type' => 'textul', + 'value' => $result['emails'], + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $emails_ul + ), + 'email_accounts' => array( + 'label' => $lng['customer']['accounts'], + 'type' => 'textul', + 'value' => $result['email_accounts'], + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $email_accounts_ul + ), + 'email_forwarders' => array( + 'label' => $lng['customer']['forwarders'], + 'type' => 'textul', + 'value' => $result['email_forwarders'], + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $email_forwarders_ul + ), + 'email_quota' => array( + 'label' => $lng['customer']['email_quota'], + 'type' => 'textul', + 'value' => $result['email_quota'], + 'maxlength' => 9, + 'visible' => $settings['system']['mail_quota_enabled'], + 'mandatory' => true, + 'ul_field' => $email_quota_ul + ), + 'email_autoresponder' => array( + 'label' => $lng['customer']['autoresponder'], + 'type' => 'textul', + 'value' => $result['email_autoresponder'], + 'maxlength' => 9, + 'visible' => $settings['autoresponder']['autoresponder_active'], + 'ul_field' => $email_autoresponder_ul + ), + 'email_imap' => array( + 'label' => $lng['customer']['email_imap'], + 'type' => 'yesno', + 'yesno_var' => $email_imap, + 'mandatory' => true + ), + 'email_pop3' => array( + 'label' => $lng['customer']['email_pop3'], + 'type' => 'yesno', + 'yesno_var' => $email_pop3, + 'mandatory' => true + ), + 'ftps' => array( + 'label' => $lng['customer']['ftps'], + 'type' => 'textul', + 'value' => $result['ftps'], + 'maxlength' => 9, + 'ul_field' => $ftps_ul + ), + 'tickets' => array( + 'label' => $lng['customer']['tickets'], + 'type' => 'textul', + 'value' => $result['tickets'], + 'maxlength' => 9, + 'visible' => $settings['ticket']['enabled'], + 'ul_field' => $tickets_ul + ), + 'mysqls' => array( + 'label' => $lng['customer']['mysqls'], + 'type' => 'textul', + 'value' => $result['mysqls'], + 'maxlength' => 9, + 'mandatory' => true, + 'ul_field' => $mysqls_ul + ), + 'phpenabled' => array( + 'label' => $lng['admin']['phpenabled'].'?', + 'type' => 'yesno', + 'yesno_var' => $phpenabled + ), + 'perlenabled' => array( + 'label' => $lng['admin']['perlenabled'].'?', + 'type' => 'yesno', + 'yesno_var' => $perlenabled + ), + 'number_of_aps_packages' => array( + 'label' => $lng['aps']['numberofapspackages'], + 'type' => 'textul', + 'value' => $result['aps_packages'], + 'maxlength' => 9, + 'visible' => $settings['aps']['aps_active'], + 'ul_field' => $number_of_aps_packages_ul + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/domains/formfield.domains_add.php b/lib/formfields/admin/domains/formfield.domains_add.php new file mode 100644 index 00000000..22ce7863 --- /dev/null +++ b/lib/formfields/admin/domains/formfield.domains_add.php @@ -0,0 +1,211 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.domains_add.php 112 2010-12-14 12:11:20Z d00p $ + */ + +return array( + 'domain_add' => array( + 'title' => $lng['admin']['domain_add'], + 'image' => 'icons/add_domain.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['domains']['domainsettings'], + 'image' => 'icons/add_domain.png', + 'fields' => array( + 'domain' => array( + 'label' => 'Domain', + 'type' => 'text' + ), + 'customerid' => array( + 'label' => $lng['admin']['customer'], + 'type' => 'select', + 'select_var' => $customers + ), + 'adminid' => array( + 'visible' => ($userinfo['customers_see_all'] == '1' ? true : false), + 'label' => $lng['admin']['admin'], + 'type' => 'select', + 'select_var' => $admins + ), + 'alias' => array( + 'label' => $lng['domains']['aliasdomain'], + 'type' => 'select', + 'select_var' => $domains + ), + 'issubof' => array( + 'label' => $lng['domains']['issubof'], + 'desc' => $lng['domains']['issubofinfo'], + 'type' => 'select', + 'select_var' => $subtodomains + ), + 'caneditdomain' => array( + 'label' => $lng['admin']['domain_edit'], + 'type' => 'yesno', + 'yesno_var' => $caneditdomain + ), + 'add_date' => array( + 'label' => $lng['domains']['add_date'], + 'desc' => $lng['panel']['dateformat'], + 'type' => 'label', + 'value' => $add_date + ), + 'registration_date' => array( + 'label' => $lng['domains']['registration_date'], + 'desc' => $lng['panel']['dateformat'], + 'type' => 'text', + 'size' => 10 + ) + ) + ), + 'section_b' => array( + 'title' => $lng['admin']['webserversettings'], + 'image' => 'icons/add_domain.png', + 'fields' => array( + 'documentroot' => array( + 'visible' => ($userinfo['change_serversettings'] == '1' ? true : false), + 'label' => 'DocumentRoot', + 'desc' => $lng['panel']['emptyfordefault'], + 'type' => 'text' + ), + 'ipandport' => array( + 'label' => 'IP/Port', + 'type' => 'select', + 'select_var' => $ipsandports, + ), + 'ssl' => array( + 'visible' => ($settings['system']['use_ssl'] == '1' ? ($ssl_ipsandports != '' ? true : false) : false), + 'label' => 'SSL', + 'type' => 'yesno', + 'yesno_var' => $ssl + ), + 'ssl_redirect' => array( + 'visible' => ($settings['system']['use_ssl'] == '1' ? ($ssl_ipsandports != '' ? true : false) : false), + 'label' => 'SSL Redirect', + 'type' => 'yesno', + 'yesno_var' => $ssl_redirect + ), + 'ssl_ipandport' => array( + 'visible' => ($settings['system']['use_ssl'] == '1' ? ($ssl_ipsandports != '' ? true : false) : false), + 'label' => 'SSL IP/Port', + 'type' => 'select', + 'select_var' => $ssl_ipsandports + ), + 'no_ssl_available_info' => array( + 'visible' => ($settings['system']['use_ssl'] == '1' ? ($ssl_ipsandports == '' ? true : false) : false), + 'label' => 'SSL', + 'type' => 'label', + 'value' => $lng['panel']['nosslipsavailable'] + ), + 'wwwserveralias' => array( + 'label' => $lng['admin']['wwwserveralias'], + 'type' => 'yesno', + 'yesno_var' => $wwwserveralias + ), + 'speciallogfile' => array( + 'label' => 'Speciallogfile', + 'type' => 'yesno', + 'yesno_var' => $speciallogfile + ), + 'specialsettings' => array( + 'visible' => ($userinfo['change_serversettings'] == '1' ? true : false), + 'style' => 'vertical-align:top;', + 'label' => $lng['admin']['ownvhostsettings'], + 'desc' => $lng['serversettings']['default_vhostconf']['description'], + 'type' => 'textarea', + 'cols' => 60, + 'rows' => 12 + ) + ) + ), + 'section_c' => array( + 'title' => $lng['admin']['phpserversettings'], + 'image' => 'icons/add_domain.png', + 'visible' => (($userinfo['change_serversettings'] == '1' || $userinfo['caneditphpsettings'] == '1') ? true : false), + 'fields' => array( + 'openbasedir' => array( + 'label' => 'OpenBasedir', + 'type' => 'yesno', + 'yesno_var' => $openbasedir + ), + 'safemode' => array( + 'label' => 'Safemode', + 'type' => 'yesno', + 'yesno_var' => $safemode + ), + 'phpsettingid' => array( + 'visible' => ((int)$settings['system']['mod_fcgid'] == 1 ? true : false), + 'label' => $lng['admin']['phpsettings']['title'], + 'type' => 'select', + 'select_var' => $phpconfigs + ), + 'mod_fcgid_starter' => array( + 'visible' => ((int)$settings['system']['mod_fcgid'] == 1 ? true : false), + 'label' => $lng['admin']['mod_fcgid_starter']['title'], + 'type' => 'text' + ), + 'mod_fcgid_maxrequests' => array( + 'visible' => ((int)$settings['system']['mod_fcgid'] == 1 ? true : false), + 'label' => $lng['admin']['mod_fcgid_maxrequests']['title'], + 'type' => 'text' + ) + ) + ), + 'section_d' => array( + 'title' => $lng['admin']['nameserversettings'], + 'image' => 'icons/add_domain.png', + 'visible' => ($userinfo['change_serversettings'] == '1' ? true : false), + 'fields' => array( + 'isbinddomain' => array( + 'label' => 'Nameserver', + 'type' => 'yesno', + 'yesno_var' => $isbinddomain + ), + 'zonefile' => array( + 'label' => 'Zonefile', + 'desc' => $lng['panel']['emptyfordefault'], + 'type' => 'text' + ) + ) + ), + 'section_e' => array( + 'title' => $lng['admin']['mailserversettings'], + 'image' => 'icons/add_domain.png', + 'fields' => array( + 'isemaildomain' => array( + 'label' => $lng['admin']['emaildomain'], + 'type' => 'yesno', + 'yesno_var' => $isemaildomain + ), + 'email_only' => array( + 'label' => $lng['admin']['email_only'], + 'type' => 'yesno', + 'yesno_var' => $email_only + ), + 'subcanemaildomain' => array( + 'label' => $lng['admin']['subdomainforemail'], + 'type' => 'select', + 'select_var' => $subcanemaildomain + ), + 'dkim' => array( + 'visible' => ($settings['dkim']['use_dkim'] == '1' ? true : false), + 'label' => 'DomainKeys', + 'type' => 'yesno', + 'yesno_var' => $dkim + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/domains/formfield.domains_edit.php b/lib/formfields/admin/domains/formfield.domains_edit.php new file mode 100644 index 00000000..91209dfe --- /dev/null +++ b/lib/formfields/admin/domains/formfield.domains_edit.php @@ -0,0 +1,233 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.domains_edit.php 130 2010-12-22 00:54:11Z d00p $ + */ + +return array( + 'domain_edit' => array( + 'title' => $lng['admin']['domain_edit'], + 'image' => 'icons/domain_edit.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['domains']['domainsettings'], + 'image' => 'icons/domain_edit.png', + 'fields' => array( + 'domain' => array( + 'label' => 'Domain', + 'type' => 'label', + 'value' => $result['domain'] + ), + 'customerid' => array( + 'label' => $lng['admin']['customer'], + 'type' => ($settings['panel']['allow_domain_change_customer'] == '1' ? 'select' : 'label'), + 'select_var' => (isset($customers) ? $customers : null), + 'value' => (isset($result['customername']) ? $result['customername'] : null) + ), + 'adminid' => array( + 'visible' => ($userinfo['customers_see_all'] == '1' ? true : false), + 'label' => $lng['admin']['admin'], + 'type' => ($settings['panel']['allow_domain_change_admin'] == '1' ? 'select' : 'label'), + 'select_var' => (isset($admins) ? $admins : null), + 'value' => (isset($result['adminname']) ? $result['adminname'] : null) + ), + 'alias' => array( + 'visible' => ($alias_check == '0' ? true : false), + 'label' => $lng['domains']['aliasdomain'], + 'type' => 'select', + 'select_var' => $domains + ), + 'issubof' => array( + 'label' => $lng['domains']['issubof'], + 'desc' => $lng['domains']['issubofinfo'], + 'type' => 'select', + 'select_var' => $subtodomains + ), + 'associated_info' => array( + 'label' => $lng['domains']['associated_with_domain'], + 'type' => 'label', + 'value' => $subdomains.' '.$lng['customer']['subdomains'].', '.$alias_check.' '.$lng['domains']['aliasdomains'].', '.$emails.' '.$lng['customer']['emails'].', '.$email_accounts.' '.$lng['customer']['accounts'].', '.$email_forwarders.' '.$lng['customer']['forwarders'] + ), + 'caneditdomain' => array( + 'label' => $lng['admin']['domain_edit'], + 'type' => 'yesno', + 'yesno_var' => $caneditdomain + ), + 'add_date' => array( + 'label' => $lng['domains']['add_date'], + 'desc' => $lng['panel']['dateformat'], + 'type' => 'label', + 'value' => $result['add_date'] + ), + 'registration_date' => array( + 'label' => $lng['domains']['registration_date'], + 'desc' => $lng['panel']['dateformat'], + 'type' => 'text', + 'value' => $result['registration_date'], + 'size' => 10 + ) + ) + ), + 'section_b' => array( + 'title' => $lng['admin']['webserversettings'], + 'image' => 'icons/domain_edit.png', + 'fields' => array( + 'documentroot' => array( + 'visible' => ($userinfo['change_serversettings'] == '1' ? true : false), + 'label' => 'DocumentRoot', + 'desc' => $lng['panel']['emptyfordefault'], + 'type' => 'text', + 'value' => $result['documentroot'] + ), + 'ipandport' => array( + 'label' => 'IP/Port', + 'type' => 'select', + 'select_var' => $ipsandports, + ), + 'ssl' => array( + 'visible' => ($settings['system']['use_ssl'] == '1' ? ($ssl_ipsandports != '' ? true : false) : false), + 'label' => 'SSL', + 'type' => 'yesno', + 'yesno_var' => $ssl + ), + 'ssl_redirect' => array( + 'visible' => ($settings['system']['use_ssl'] == '1' ? ($ssl_ipsandports != '' ? true : false) : false), + 'label' => 'SSL Redirect', + 'type' => 'yesno', + 'yesno_var' => $ssl_redirect + ), + 'ssl_ipandport' => array( + 'visible' => ($settings['system']['use_ssl'] == '1' ? ($ssl_ipsandports != '' ? true : false) : false), + 'label' => 'SSL IP/Port', + 'type' => 'select', + 'select_var' => $ssl_ipsandports + ), + 'no_ssl_available_info' => array( + 'visible' => ($settings['system']['use_ssl'] == '1' ? ($ssl_ipsandports == '' ? true : false) : false), + 'label' => 'SSL', + 'type' => 'label', + 'value' => $lng['panel']['nosslipsavailable'] + ), + 'wwwserveralias' => array( + 'label' => $lng['admin']['wwwserveralias'], + 'type' => 'yesno', + 'yesno_var' => $wwwserveralias + ), + 'speciallogfile' => array( + 'label' => 'Speciallogfile', + 'type' => 'label', + 'value' => $speciallogfile + ), + 'specialsettings' => array( + 'visible' => ($userinfo['change_serversettings'] == '1' ? true : false), + 'style' => 'vertical-align:top;', + 'label' => $lng['admin']['ownvhostsettings'], + 'desc' => $lng['serversettings']['default_vhostconf']['description'], + 'type' => 'textarea', + 'value' => $result['specialsettings'], + 'cols' => 60, + 'rows' => 12 + ), + 'specialsettingsforsubdomains' => array( + 'visible' => ($userinfo['change_serversettings'] == '1' ? true : false), + 'label' => $lng['admin']['specialsettingsforsubdomains'], + 'desc' => $lng['serversettings']['specialsettingsforsubdomains']['description'], + 'type' => 'yesno', + 'yesno_var' => $specialsettingsforsubdomains + ) + ) + ), + 'section_c' => array( + 'title' => $lng['admin']['phpserversettings'], + 'image' => 'icons/domain_edit.png', + 'visible' => (($userinfo['change_serversettings'] == '1' || $userinfo['caneditphpsettings'] == '1') ? true : false), + 'fields' => array( + 'openbasedir' => array( + 'label' => 'OpenBasedir', + 'type' => 'yesno', + 'yesno_var' => $openbasedir + ), + 'safemode' => array( + 'label' => 'Safemode', + 'type' => 'yesno', + 'yesno_var' => $safemode + ), + 'phpsettingid' => array( + 'visible' => ((int)$settings['system']['mod_fcgid'] == 1 ? true : false), + 'label' => $lng['admin']['phpsettings']['title'], + 'type' => 'select', + 'select_var' => $phpconfigs + ), + 'mod_fcgid_starter' => array( + 'visible' => ((int)$settings['system']['mod_fcgid'] == 1 ? true : false), + 'label' => $lng['admin']['mod_fcgid_starter']['title'], + 'type' => 'text', + 'value' => ((int)$result['mod_fcgid_starter'] != - 1 ? $result['mod_fcgid_starter'] : '') + ), + 'mod_fcgid_maxrequests' => array( + 'visible' => ((int)$settings['system']['mod_fcgid'] == 1 ? true : false), + 'label' => $lng['admin']['mod_fcgid_maxrequests']['title'], + 'type' => 'text', + 'value' => ((int)$result['mod_fcgid_maxrequests'] != - 1 ? $result['mod_fcgid_maxrequests'] : '') + ) + ) + ), + 'section_d' => array( + 'title' => $lng['admin']['nameserversettings'], + 'image' => 'icons/domain_edit.png', + 'visible' => ($userinfo['change_serversettings'] == '1' ? true : false), + 'fields' => array( + 'isbinddomain' => array( + 'label' => 'Nameserver', + 'type' => 'yesno', + 'yesno_var' => $isbinddomain + ), + 'zonefile' => array( + 'label' => 'Zonefile', + 'desc' => $lng['panel']['emptyfordefault'], + 'type' => 'text', + 'value' => $result['zonefile'] + ) + ) + ), + 'section_e' => array( + 'title' => $lng['admin']['mailserversettings'], + 'image' => 'icons/domain_edit.png', + 'fields' => array( + 'isemaildomain' => array( + 'label' => $lng['admin']['emaildomain'], + 'type' => 'yesno', + 'yesno_var' => $isemaildomain + ), + 'email_only' => array( + 'label' => $lng['admin']['email_only'], + 'type' => 'yesno', + 'yesno_var' => $email_only + ), + 'subcanemaildomain' => array( + 'label' => $lng['admin']['subdomainforemail'], + 'type' => 'select', + 'select_var' => $subcanemaildomain + ), + 'dkim' => array( + 'visible' => ($settings['dkim']['use_dkim'] == '1' ? true : false), + 'label' => 'DomainKeys', + 'type' => 'yesno', + 'yesno_var' => $dkim + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/ipsandports/formfield.ipsandports_add.php b/lib/formfields/admin/ipsandports/formfield.ipsandports_add.php new file mode 100644 index 00000000..1af03726 --- /dev/null +++ b/lib/formfields/admin/ipsandports/formfield.ipsandports_add.php @@ -0,0 +1,121 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.ipsandports_add.php 111 2010-12-14 07:48:33Z d00p $ + */ + +return array( + 'ipsandports_add' => array( + 'title' => $lng['admin']['ipsandports']['add'], + 'image' => 'icons/ipsports_add.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['admin']['ipsandports']['ipandport'], + 'image' => 'icons/ipsports_add.png', + 'fields' => array( + 'ip' => array( + 'label' => $lng['admin']['ipsandports']['ip'], + 'type' => 'text' + ), + 'port' => array( + 'label' => $lng['admin']['ipsandports']['port'], + 'type' => 'text', + 'size' => 5 + ) + ) + ), + 'section_b' => array( + 'title' => $lng['admin']['ipsandports']['webserverdefaultconfig'], + 'image' => 'icons/ipsports_add.png', + 'fields' => array( + 'listen_statement' => array( + 'label' => $lng['admin']['ipsandports']['create_listen_statement'], + 'type' => 'yesno', + 'yesno_var' => $listen_statement + ), + 'namevirtualhost_statement' => array( + 'label' => $lng['admin']['ipsandports']['create_namevirtualhost_statement'], + 'type' => 'yesno', + 'yesno_var' => $namevirtualhost_statement, + ), + 'vhostcontainer' => array( + 'label' => $lng['admin']['ipsandports']['create_vhostcontainer'], + 'type' => 'yesno', + 'yesno_var' => $vhostcontainer + ), + 'docroot' => array( + 'label' => $lng['admin']['ipsandports']['docroot']['title'], + 'desc' => $lng['admin']['ipsandports']['docroot']['description'], + 'type' => 'text' + ), + 'specialsettings' => array( + 'style' => 'vertical-align:top;', + 'label' => $lng['admin']['ownvhostsettings'], + 'desc' => $lng['serversettings']['default_vhostconf']['description'], + 'type' => 'textarea', + 'cols' => 60, + 'rows' => 12 + ), + 'vhostcontainer_servername_statement' => array( + 'label' => $lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'], + 'type' => 'yesno', + 'yesno_var' => $vhostcontainer_servername_statement + ) + ) + ), + 'section_c' => array( + 'title' => $lng['admin']['ipsandports']['webserverdomainconfig'], + 'image' => 'icons/ipsports_add.png', + 'fields' => array( + 'default_vhostconf_domain' => array( + 'style' => 'vertical-align:top;', + 'label' => $lng['admin']['ipsandports']['default_vhostconf_domain'], + 'desc' => $lng['serversettings']['default_vhostconf']['description'], + 'type' => 'textarea', + 'cols' => 60, + 'rows' => 12 + ) + ) + ), + 'section_d' => array( + 'title' => $lng['admin']['ipsandports']['webserverssldomainconfig'], + 'image' => 'icons/ipsports_add.png', + 'visible' => ($settings['system']['use_ssl'] == 1 ? true : false), + 'fields' => array( + 'ssl' => array( + 'label' => $lng['admin']['ipsandports']['enable_ssl'], + 'type' => 'yesno', + 'yesno_var' => $enable_ssl + ), + 'ssl_cert_file' => array( + 'label' => $lng['admin']['ipsandports']['ssl_cert_file'], + 'type' => 'text' + ), + 'ssl_key_file' => array( + 'label' => $lng['admin']['ipsandports']['ssl_key_file'], + 'type' => 'text' + ), + 'ssl_ca_file' => array( + 'label' => $lng['admin']['ipsandports']['ssl_ca_file'], + 'type' => 'text' + ), + 'ssl_cert_chainfile' => array( + 'label' => $lng['admin']['ipsandports']['ssl_cert_chainfile'], + 'type' => 'text' + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/ipsandports/formfield.ipsandports_edit.php b/lib/formfields/admin/ipsandports/formfield.ipsandports_edit.php new file mode 100644 index 00000000..dcee8aa7 --- /dev/null +++ b/lib/formfields/admin/ipsandports/formfield.ipsandports_edit.php @@ -0,0 +1,130 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.ipsandports_edit.php 111 2010-12-14 07:48:33Z d00p $ + */ + +return array( + 'ipsandports_edit' => array( + 'title' => $lng['admin']['ipsandports']['edit'], + 'image' => 'icons/ipsports_edit.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['admin']['ipsandports']['ipandport'], + 'image' => 'icons/ipsports_add.png', + 'fields' => array( + 'ip' => array( + 'label' => $lng['admin']['ipsandports']['ip'], + 'type' => 'text', + 'value' => $result['ip'] + ), + 'port' => array( + 'label' => $lng['admin']['ipsandports']['port'], + 'type' => 'text', + 'value' => $result['port'], + 'size' => 5 + ) + ) + ), + 'section_b' => array( + 'title' => $lng['admin']['ipsandports']['webserverdefaultconfig'], + 'image' => 'icons/ipsports_edit.png', + 'fields' => array( + 'listen_statement' => array( + 'label' => $lng['admin']['ipsandports']['create_listen_statement'], + 'type' => 'yesno', + 'yesno_var' => $listen_statement + ), + 'namevirtualhost_statement' => array( + 'label' => $lng['admin']['ipsandports']['create_namevirtualhost_statement'], + 'type' => 'yesno', + 'yesno_var' => $namevirtualhost_statement, + ), + 'vhostcontainer' => array( + 'label' => $lng['admin']['ipsandports']['create_vhostcontainer'], + 'type' => 'yesno', + 'yesno_var' => $vhostcontainer + ), + 'docroot' => array( + 'label' => $lng['admin']['ipsandports']['docroot']['title'], + 'desc' => $lng['admin']['ipsandports']['docroot']['description'], + 'type' => 'text', + 'value' => $result['docroot'] + ), + 'specialsettings' => array( + 'style' => 'vertical-align:top;', + 'label' => $lng['admin']['ownvhostsettings'], + 'desc' => $lng['serversettings']['default_vhostconf']['description'], + 'type' => 'textarea', + 'cols' => 60, + 'rows' => 12 + ), + 'vhostcontainer_servername_statement' => array( + 'label' => $lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'], + 'type' => 'yesno', + 'yesno_var' => $vhostcontainer_servername_statement, + 'value' => $result['specialsettings'] + ) + ) + ), + 'section_c' => array( + 'title' => $lng['admin']['ipsandports']['webserverdomainconfig'], + 'image' => 'icons/ipsports_edit.png', + 'fields' => array( + 'default_vhostconf_domain' => array( + 'style' => 'vertical-align:top;', + 'label' => $lng['admin']['ipsandports']['default_vhostconf_domain'], + 'desc' => $lng['serversettings']['default_vhostconf']['description'], + 'type' => 'textarea', + 'cols' => 60, + 'rows' => 12, + 'value' => $result['default_vhostconf_domain'] + ) + ) + ), + 'section_d' => array( + 'title' => $lng['admin']['ipsandports']['webserverssldomainconfig'], + 'image' => 'icons/ipsports_edit.png', + 'visible' => ($settings['system']['use_ssl'] == 1 ? true : false), + 'fields' => array( + 'ssl' => array( + 'label' => $lng['admin']['ipsandports']['enable_ssl'], + 'type' => 'yesno', + 'yesno_var' => $enable_ssl + ), + 'ssl_cert_file' => array( + 'label' => $lng['admin']['ipsandports']['ssl_cert_file'], + 'type' => 'text', + 'value' => $result['ssl_cert_file'] + ), + 'ssl_key_file' => array( + 'label' => $lng['admin']['ipsandports']['ssl_key_file'], + 'type' => 'text', + 'value' => $result['ssl_key_file'] + ), + 'ssl_ca_file' => array( + 'label' => $lng['admin']['ipsandports']['ssl_ca_file'], + 'type' => 'text', + 'value' => $result['ssl_ca_file'] + ), + 'ssl_cert_chainfile' => array( + 'label' => $lng['admin']['ipsandports']['ssl_cert_chainfile'], + 'type' => 'text', + 'value' => $result['ssl_cert_chainfile'] + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/phpconfig/formfield.phpconfig_add.php b/lib/formfields/admin/phpconfig/formfield.phpconfig_add.php new file mode 100644 index 00000000..fc3dfcec --- /dev/null +++ b/lib/formfields/admin/phpconfig/formfield.phpconfig_add.php @@ -0,0 +1,65 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.phpconfig_add.php 114 2010-12-21 07:02:45Z d00p $ + */ + +return array( + 'phpconfig_add' => array( + 'title' => $lng['admin']['phpsettings']['addsettings'], + 'image' => 'icons/phpsettings_add.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['admin']['phpsettings']['addsettings'], + 'image' => 'icons/phpsettings_add.png', + 'fields' => array( + 'description' => array( + 'label' => $lng['admin']['phpsettings']['description'], + 'type' => 'text', + 'maxlength' => 50 + ), + 'binary' => array( + 'label' => $lng['admin']['phpsettings']['binary'], + 'type' => 'text', + 'maxlength' => 255, + 'value' => '/usr/bin/php-cgi' + ), + 'file_extensions' => array( + 'label' => $lng['admin']['phpsettings']['file_extensions'], + 'desc' => $lng['admin']['phpsettings']['file_extensions_note'], + 'type' => 'text', + 'maxlength' => 255, + 'value' => 'php' + ), + 'mod_fcgid_starter' => array( + 'label' => $lng['admin']['mod_fcgid_starter']['title'], + 'type' => 'text' + ), + 'mod_fcgid_maxrequests' => array( + 'label' => $lng['admin']['mod_fcgid_maxrequests']['title'], + 'type' => 'text' + ), + 'phpsettings' => array( + 'style' => 'vertical-align:top;', + 'label' => $lng['admin']['phpsettings']['phpinisettings'], + 'type' => 'textarea', + 'cols' => 80, + 'rows' => 20, + 'value' => $result['phpsettings'] + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/phpconfig/formfield.phpconfig_edit.php b/lib/formfields/admin/phpconfig/formfield.phpconfig_edit.php new file mode 100644 index 00000000..a9005d29 --- /dev/null +++ b/lib/formfields/admin/phpconfig/formfield.phpconfig_edit.php @@ -0,0 +1,68 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.phpconfig_edit.php 115 2010-12-21 07:09:28Z d00p $ + */ + +return array( + 'phpconfig_edit' => array( + 'title' => $lng['admin']['phpsettings']['editsettings'], + 'image' => 'icons/phpsettings_edit.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['admin']['phpsettings']['editsettings'], + 'image' => 'icons/phpsettings_edit.png', + 'fields' => array( + 'description' => array( + 'label' => $lng['admin']['phpsettings']['description'], + 'type' => 'text', + 'maxlength' => 50, + 'value' => $result['description'] + ), + 'binary' => array( + 'label' => $lng['admin']['phpsettings']['binary'], + 'type' => 'text', + 'maxlength' => 255, + 'value' => $result['binary'] + ), + 'file_extensions' => array( + 'label' => $lng['admin']['phpsettings']['file_extensions'], + 'desc' => $lng['admin']['phpsettings']['file_extensions_note'], + 'type' => 'text', + 'maxlength' => 255, + 'value' => $result['file_extensions'] + ), + 'mod_fcgid_starter' => array( + 'label' => $lng['admin']['mod_fcgid_starter']['title'], + 'type' => 'text', + 'value' => ((int)$result['mod_fcgid_starter'] != - 1 ? $result['mod_fcgid_starter'] : '') + ), + 'mod_fcgid_maxrequests' => array( + 'label' => $lng['admin']['mod_fcgid_maxrequests']['title'], + 'type' => 'text', + 'value' => ((int)$result['mod_fcgid_maxrequests'] != - 1 ? $result['mod_fcgid_maxrequests'] : '') + ), + 'phpsettings' => array( + 'style' => 'vertical-align:top;', + 'label' => $lng['admin']['phpsettings']['phpinisettings'], + 'type' => 'textarea', + 'cols' => 80, + 'rows' => 20, + 'value' => $result['phpsettings'] + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/templates/formfield.filetemplate_add.php b/lib/formfields/admin/templates/formfield.filetemplate_add.php new file mode 100644 index 00000000..2b9ca7ee --- /dev/null +++ b/lib/formfields/admin/templates/formfield.filetemplate_add.php @@ -0,0 +1,42 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.filetemplate_add.php 130 2010-12-22 00:54:11Z d00p $ + */ + +return array( + 'filetemplate_add' => array( + 'title' => $lng['admin']['templates']['template_add'], + 'image' => 'icons/templates_add.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['admin']['templates']['template_add'], + 'image' => 'icons/templates_add.png', + 'fields' => array( + 'template' => array( + 'label' => $lng['admin']['templates']['action'], + 'type' => 'select', + 'select_var' => $free_templates + ), + 'filecontent' => array( + 'label' => $lng['admin']['templates']['filecontent'], + 'type' => 'textarea', + 'cols' => 60, + 'rows' => 12 + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/templates/formfield.filetemplate_edit.php b/lib/formfields/admin/templates/formfield.filetemplate_edit.php new file mode 100644 index 00000000..18dadee0 --- /dev/null +++ b/lib/formfields/admin/templates/formfield.filetemplate_edit.php @@ -0,0 +1,44 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.filetemplate_edit.php 130 2010-12-22 00:54:11Z d00p $ + */ + +return array( + 'filetemplate_edit' => array( + 'title' => $lng['admin']['templates']['template_edit'], + 'image' => 'icons/templates_edit.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['admin']['templates']['template_edit'], + 'image' => 'icons/templates_edit.png', + 'fields' => array( + 'template' => array( + 'label' => $lng['admin']['templates']['action'], + 'type' => 'hidden', + 'value' => $lng['admin']['templates'][$row['varname']], + 'display' => $lng['admin']['templates'][$row['varname']] + ), + 'filecontent' => array( + 'label' => $lng['admin']['templates']['filecontent'], + 'type' => 'textarea', + 'cols' => 60, + 'rows' => 12, + 'value' => $row['value'] + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/templates/formfield.template_add.php b/lib/formfields/admin/templates/formfield.template_add.php new file mode 100644 index 00000000..9f1c259c --- /dev/null +++ b/lib/formfields/admin/templates/formfield.template_add.php @@ -0,0 +1,52 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.template_add.php 130 2010-12-22 00:54:11Z d00p $ + */ + +return array( + 'template_add' => array( + 'title' => $lng['admin']['templates']['template_add'], + 'image' => 'icons/templates_add.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['admin']['templates']['template_add'], + 'image' => 'icons/templates_add.png', + 'fields' => array( + 'language' => array( + 'label' => $lng['login']['language'], + 'type' => 'hidden', + 'value' => $language, + 'display' => $language + ), + 'template' => array( + 'label' => $lng['admin']['templates']['action'], + 'type' => 'select', + 'select_var' => $template_options + ), + 'subject' => array( + 'label' => $lng['admin']['templates']['subject'], + 'type' => 'text' + ), + 'mailbody' => array( + 'label' => $lng['admin']['templates']['mailbody'], + 'type' => 'textarea', + 'cols' => 60, + 'rows' => 12 + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/templates/formfield.template_edit.php b/lib/formfields/admin/templates/formfield.template_edit.php new file mode 100644 index 00000000..280a3d13 --- /dev/null +++ b/lib/formfields/admin/templates/formfield.template_edit.php @@ -0,0 +1,55 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.template_edit.php 130 2010-12-22 00:54:11Z d00p $ + */ + +return array( + 'template_edit' => array( + 'title' => $lng['admin']['templates']['template_edit'], + 'image' => 'icons/templates_edit.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['admin']['templates']['template_edit'], + 'image' => 'icons/templates_edit.png', + 'fields' => array( + 'language' => array( + 'label' => $lng['login']['language'], + 'type' => 'hidden', + 'value' => $language, + 'display' => $language + ), + 'template' => array( + 'label' => $lng['admin']['templates']['action'], + 'type' => 'hidden', + 'value' => $template, + 'display' => $template + ), + 'subject' => array( + 'label' => $lng['admin']['templates']['subject'], + 'type' => 'text', + 'value' => $subject + ), + 'mailbody' => array( + 'label' => $lng['admin']['templates']['mailbody'], + 'type' => 'textarea', + 'cols' => 60, + 'rows' => 12, + 'value' => $mailbody + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/ticket/formfield.category_edit.php b/lib/formfields/admin/ticket/formfield.category_edit.php new file mode 100644 index 00000000..ea7f65e5 --- /dev/null +++ b/lib/formfields/admin/ticket/formfield.category_edit.php @@ -0,0 +1,44 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.category_edit.php 128 2010-12-21 08:45:13Z d00p $ + */ + +return array( + 'category_edit' => array( + 'title' => $lng['ticket']['ticket_editcateory'], + 'image' => 'icons/category_edit.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['ticket']['ticket_editcateory'], + 'image' => 'icons/category_edit.png', + 'fields' => array( + 'category' => array( + 'label' => $lng['ticket']['category'], + 'type' => 'text', + 'maxlength' => 50, + 'value' => $row['name'] + ), + 'logicalorder' => array( + 'label' => $lng['ticket']['logicalorder'], + 'desc' => $lng['ticket']['orderdesc'], + 'type' => 'text', + 'maxlength' => 3, + 'value' => $row['logicalorder'] + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/ticket/formfield.category_new.php b/lib/formfields/admin/ticket/formfield.category_new.php new file mode 100644 index 00000000..3e6d774d --- /dev/null +++ b/lib/formfields/admin/ticket/formfield.category_new.php @@ -0,0 +1,43 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.category_new.php 127 2010-12-21 08:41:31Z d00p $ + */ + +return array( + 'category_new' => array( + 'title' => $lng['ticket']['ticket_newcateory'], + 'image' => 'icons/category_new.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['ticket']['ticket_newcateory'], + 'image' => 'icons/category_new.png', + 'fields' => array( + 'category' => array( + 'label' => $lng['ticket']['category'], + 'type' => 'text', + 'maxlength' => 50 + ), + 'logicalorder' => array( + 'label' => $lng['ticket']['logicalorder'], + 'desc' => $lng['ticket']['orderdesc'], + 'type' => 'text', + 'maxlength' => 3, + 'value' => $order + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/ticket/formfield.ticket_new.php b/lib/formfields/admin/ticket/formfield.ticket_new.php new file mode 100644 index 00000000..8d26dab6 --- /dev/null +++ b/lib/formfields/admin/ticket/formfield.ticket_new.php @@ -0,0 +1,58 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.ticket_new.php 116 2010-12-21 07:16:35Z d00p $ + */ + +return array( + 'ticket_new' => array( + 'title' => $lng['ticket']['ticket_new'], + 'image' => 'icons/ticket_new.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['ticket']['ticket_new'], + 'image' => 'icons/ticket_new.png', + 'fields' => array( + 'customer' => array( + 'label' => $lng['ticket']['customer'], + 'type' => 'select', + 'select_var' => $customers + ), + 'subject' => array( + 'label' => $lng['ticket']['subject'], + 'type' => 'text', + 'maxlength' => 70 + ), + 'priority' => array( + 'label' => $lng['ticket']['priority'], + 'type' => 'select', + 'select_var' => $priorities + ), + 'category' => array( + 'label' => $lng['ticket']['category'], + 'type' => 'select', + 'select_var' => $categories + ), + 'message' => array( + 'style' => 'vertical-align:top;', + 'label' => $lng['ticket']['message'], + 'type' => 'textarea', + 'cols' => 60, + 'rows' => 12 + ) + ) + ) + ) + ) +); diff --git a/lib/formfields/admin/ticket/formfield.ticket_reply.php b/lib/formfields/admin/ticket/formfield.ticket_reply.php new file mode 100644 index 00000000..423afc51 --- /dev/null +++ b/lib/formfields/admin/ticket/formfield.ticket_reply.php @@ -0,0 +1,54 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + * @version $Id: formfield.ticket_reply.php 117 2010-12-21 07:26:58Z d00p $ + */ + +return array( + 'ticket_reply' => array( + 'title' => $lng['ticket']['ticket_reply'], + 'image' => 'icons/ticket_reply.png', + 'sections' => array( + 'section_a' => array( + 'visible' => ($isclosed == 0 ? true : false), + 'title' => $lng['ticket']['ticket_reply'], + 'image' => 'icons/ticket_reply.png', + 'fields' => array( + 'subject' => array( + 'label' => $lng['ticket']['subject'], + 'type' => 'text', + 'value' => 'Re: '.$subject + ), + 'priority' => array( + 'label' => $lng['ticket']['priority'], + 'type' => 'select', + 'select_var' => $priorities + ), + 'category' => array( + 'label' => $lng['ticket']['category'], + 'type' => 'label', + 'value' => $row['name'] + ), + 'message' => array( + 'style' => 'vertical-align:top;', + 'label' => $lng['ticket']['message'], + 'type' => 'textarea', + 'cols' => 60, + 'rows' => 12 + ) + ) + ) + ) + ) +);