From 3f22a4d4084530ee707e6c04d74a9fdddf1790da Mon Sep 17 00:00:00 2001 From: vogelor <vogelor@ispconfig3> Date: Sat, 26 Mar 2011 12:27:57 -0400 Subject: [PATCH] First Version of the Server-Config of the new rescue module (module is not implemented yet, only the Config-interface) --- interface/web/admin/templates/server_config_rescue_edit.htm | 42 + interface/web/admin/lib/lang/en_server_config.lng | 158 +++-- interface/web/admin/form/server_config.tform.php | 1419 ++++++++++++++++++++++++++------------------------- 3 files changed, 847 insertions(+), 772 deletions(-) diff --git a/interface/web/admin/form/server_config.tform.php b/interface/web/admin/form/server_config.tform.php index 8be4e51..cc45a56 100644 --- a/interface/web/admin/form/server_config.tform.php +++ b/interface/web/admin/form/server_config.tform.php @@ -1,142 +1,142 @@ <?php /* - Form Definition + Form Definition - Tabledefinition + Tabledefinition - Datatypes: - - INTEGER (Forces the input to Int) - - DOUBLE - - CURRENCY (Formats the values to currency notation) - - VARCHAR (no format check, maxlength: 255) - - TEXT (no format check) - - DATE (Dateformat, automatic conversion to timestamps) + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) - Formtype: - - TEXT (Textfield) - - TEXTAREA (Textarea) - - PASSWORD (Password textfield, input is not shown when edited) - - SELECT (Select option field) - - RADIO - - CHECKBOX - - CHECKBOXARRAY - - FILE + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE - VALUE: - - Wert oder Array + VALUE: + - Wert oder Array - Hint: - The ID field of the database table is not part of the datafield definition. - The ID field must be always auto incement (int or bigint). + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). -*/ + */ -$form["title"] = "Server Config"; -$form["description"] = ""; -$form["name"] = "server_config"; -$form["action"] = "server_config_edit.php"; -$form["db_table"] = "server"; -$form["db_table_idx"] = "server_id"; -$form["db_history"] = "yes"; -$form["tab_default"] = "server"; -$form["list_default"] = "server_config_list.php"; -$form["auth"] = 'yes'; // yes / no +$form["title"] = "Server Config"; +$form["description"] = ""; +$form["name"] = "server_config"; +$form["action"] = "server_config_edit.php"; +$form["db_table"] = "server"; +$form["db_table_idx"] = "server_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "server"; +$form["list_default"] = "server_config_list.php"; +$form["auth"] = 'yes'; // yes / no -$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user $form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user $form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete $form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete -$form["tabs"]['server'] = array ( - 'title' => "Server", - 'width' => 70, - 'template' => "templates/server_config_server_edit.htm", - 'fields' => array ( - ################################## - # Begin Datatable fields - ################################## - 'auto_network_configuration' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'CHECKBOX', - 'default' => 'n', - 'value' => array(0 => 'n',1 => 'y') +$form["tabs"]['server'] = array( + 'title' => "Server", + 'width' => 70, + 'template' => "templates/server_config_server_edit.htm", + 'fields' => array( + ################################## + # Begin Datatable fields + ################################## + 'auto_network_configuration' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(0 => 'n', 1 => 'y') ), - 'ip_address' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '192.168.0.105', - 'validators' => array ( 0 => array ( 'type' => 'ISIPV4', - 'errmsg'=> 'ip_address_error_wrong'), - ), - 'value' => '', - 'width' => '15', - 'maxlength' => '255' + 'ip_address' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '192.168.0.105', + 'validators' => array(0 => array('type' => 'ISIPV4', + 'errmsg' => 'ip_address_error_wrong'), + ), + 'value' => '', + 'width' => '15', + 'maxlength' => '255' ), - 'netmask' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '255.255.255.0', - 'validators' => array ( 0 => array ( 'type' => 'ISIPV4', - 'errmsg'=> 'netmask_error_wrong'), - ), - 'value' => '', - 'width' => '15', - 'maxlength' => '255' + 'netmask' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '255.255.255.0', + 'validators' => array(0 => array('type' => 'ISIPV4', + 'errmsg' => 'netmask_error_wrong'), + ), + 'value' => '', + 'width' => '15', + 'maxlength' => '255' ), - 'gateway' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '192.168.0.1', - 'validators' => array ( 0 => array ( 'type' => 'ISIPV4', - 'errmsg'=> 'gateway_error_wrong'), - ), - 'value' => '', - 'width' => '15', - 'maxlength' => '255' + 'gateway' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '192.168.0.1', + 'validators' => array(0 => array('type' => 'ISIPV4', + 'errmsg' => 'gateway_error_wrong'), + ), + 'value' => '', + 'width' => '15', + 'maxlength' => '255' ), - 'hostname' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => 'server1.domain.tld', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'hostname_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'hostname' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'server1.domain.tld', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'hostname_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'nameservers' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '192.168.0.1,192.168.0.2', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'nameservers_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'nameservers' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '192.168.0.1,192.168.0.2', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'nameservers_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'loglevel' => array ( - 'datatype' => 'INTEGER', - 'formtype' => 'SELECT', - 'default' => '2', - 'value' => array('0' => 'Debug', '1' => 'Warnings', '2' => 'Errors'), - 'width' => '40', - 'maxlength' => '255' + 'loglevel' => array( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '2', + 'value' => array('0' => 'Debug', '1' => 'Warnings', '2' => 'Errors'), + 'width' => '40', + 'maxlength' => '255' ), - 'backup_dir' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '/var/backup', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'backup_dir_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'backup_dir' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '/var/backup', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'backup_dir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), ################################## # ENDE Datatable fields @@ -144,137 +144,137 @@ ) ); -$form["tabs"]['mail'] = array ( - 'title' => "Mail", - 'width' => 60, - 'template' => "templates/server_config_mail_edit.htm", - 'fields' => array ( - ################################## - # Begin Datatable fields - ################################## - 'module' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'SELECT', - 'default' => '', - 'value' => array('postfix_mysql' => 'postfix_mysql') +$form["tabs"]['mail'] = array( + 'title' => "Mail", + 'width' => 60, + 'template' => "templates/server_config_mail_edit.htm", + 'fields' => array( + ################################## + # Begin Datatable fields + ################################## + 'module' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('postfix_mysql' => 'postfix_mysql') ), - 'maildir_path' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '/home/vmail/[domain]/[localpart]/', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'maildir_path_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'maildir_path' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '/home/vmail/[domain]/[localpart]/', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'maildir_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'homedir_path' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '/home/vmail/', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'homedir_path_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'homedir_path' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '/home/vmail/', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'homedir_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'pop3_imap_daemon' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'SELECT', - 'default' => '20', - 'value' => array('courier' => 'Courier', 'dovecot' => 'Dovecot') + 'pop3_imap_daemon' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '20', + 'value' => array('courier' => 'Courier', 'dovecot' => 'Dovecot') ), - 'mail_filter_syntax' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'SELECT', - 'default' => '20', - 'value' => array('maildrop' => 'Maildrop', 'sieve' => 'Sieve') + 'mail_filter_syntax' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '20', + 'value' => array('maildrop' => 'Maildrop', 'sieve' => 'Sieve') ), - 'mailuser_uid' => array ( - 'datatype' => 'INTEGER', - 'formtype' => 'TEXT', - 'default' => '5000', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'mailuser_uid_error_empty'), - ), - 'value' => '', - 'width' => '10', - 'maxlength' => '255' + 'mailuser_uid' => array( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '5000', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'mailuser_uid_error_empty'), + ), + 'value' => '', + 'width' => '10', + 'maxlength' => '255' ), - 'mailuser_gid' => array ( - 'datatype' => 'INTEGER', - 'formtype' => 'TEXT', - 'default' => '5000', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'mailuser_gid_error_empty'), - ), - 'value' => '', - 'width' => '10', - 'maxlength' => '255' + 'mailuser_gid' => array( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '5000', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'mailuser_gid_error_empty'), + ), + 'value' => '', + 'width' => '10', + 'maxlength' => '255' ), - 'mailuser_name' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => 'vmail', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'mailuser_name_error_empty'), - ), - 'value' => '', - 'width' => '10', - 'maxlength' => '255' + 'mailuser_name' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'vmail', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'mailuser_name_error_empty'), + ), + 'value' => '', + 'width' => '10', + 'maxlength' => '255' ), - 'mailuser_group' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => 'vmail', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'mailuser_group_error_empty'), - ), - 'value' => '', - 'width' => '10', - 'maxlength' => '255' + 'mailuser_group' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'vmail', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'mailuser_group_error_empty'), + ), + 'value' => '', + 'width' => '10', + 'maxlength' => '255' ), - 'relayhost' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'relayhost' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'relayhost_user' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'relayhost_user' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'relayhost_password' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'relayhost_password' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'mailbox_size_limit' => array ( - 'datatype' => 'INTEGER', - 'formtype' => 'TEXT', - 'default' => '0', - 'value' => '', - 'width' => '10', - 'maxlength' => '15' + 'mailbox_size_limit' => array( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '15' ), - 'message_size_limit' => array ( - 'datatype' => 'INTEGER', - 'formtype' => 'TEXT', - 'default' => '0', - 'value' => '', - 'width' => '10', - 'maxlength' => '15' + 'message_size_limit' => array( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '15' ), ################################## # ENDE Datatable fields @@ -282,24 +282,24 @@ ) ); -$form["tabs"]['getmail'] = array ( - 'title' => "Getmail", - 'width' => 80, - 'template' => "templates/server_config_getmail_edit.htm", - 'fields' => array ( - ################################## - # Begin Datatable fields - ################################## - 'getmail_config_dir' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'getmail_config_dir_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' +$form["tabs"]['getmail'] = array( + 'title' => "Getmail", + 'width' => 80, + 'template' => "templates/server_config_getmail_edit.htm", + 'fields' => array( + ################################## + # Begin Datatable fields + ################################## + 'getmail_config_dir' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'getmail_config_dir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), ################################## # ENDE Datatable fields @@ -307,208 +307,208 @@ ) ); -$form["tabs"]['web'] = array ( - 'title' => "Web", - 'width' => 60, - 'template' => "templates/server_config_web_edit.htm", - 'fields' => array ( - ################################## - # Begin Datatable fields - ################################## - 'website_basedir' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'website_basedir_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' +$form["tabs"]['web'] = array( + 'title' => "Web", + 'width' => 60, + 'template' => "templates/server_config_web_edit.htm", + 'fields' => array( + ################################## + # Begin Datatable fields + ################################## + 'website_basedir' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'website_basedir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'website_path' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'website_path_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'website_path' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'website_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'website_symlinks' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'website_symlinks_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'website_symlinks' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'website_symlinks_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'vhost_conf_dir' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'vhost_conf_dir_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'vhost_conf_dir' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'vhost_conf_dir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'vhost_conf_enabled_dir' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'vhost_conf_enabled_dir_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'vhost_conf_enabled_dir' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'vhost_conf_enabled_dir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'security_level' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'SELECT', - 'default' => '20', - 'value' => array('10' => 'Medium', '20' => 'High') + 'security_level' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '20', + 'value' => array('10' => 'Medium', '20' => 'High') ), - 'check_apache_config' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'CHECKBOX', - 'default' => 'y', - 'value' => array(0 => 'n',1 => 'y') + 'check_apache_config' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n', 1 => 'y') ), - 'user' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'apache_user_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'user' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'apache_user_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'group' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'apache_group_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'group' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'apache_group_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'php_ini_path_apache' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'php_ini_path_apache_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'php_ini_path_apache' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'php_ini_path_apache_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'php_ini_path_cgi' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'php_ini_path_cgi_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'php_ini_path_cgi' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'php_ini_path_cgi_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'php_open_basedir' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'php_open_basedir_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'php_open_basedir' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'php_open_basedir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'htaccess_allow_override' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'htaccess_allow_override_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'htaccess_allow_override' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'htaccess_allow_override_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'apps_vhost_port' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '8081', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'apps_vhost_port_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'apps_vhost_port' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '8081', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'apps_vhost_port_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'apps_vhost_ip' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '_default_', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'apps_vhost_ip_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'apps_vhost_ip' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '_default_', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'apps_vhost_ip_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'apps_vhost_servername' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'apps_vhost_servername' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'awstats_conf_dir' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'awstats_conf_dir' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'awstats_data_dir' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'awstats_data_dir' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'awstats_pl' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'awstats_pl' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'awstats_buildstaticpages_pl' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'awstats_buildstaticpages_pl' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), ################################## # ENDE Datatable fields @@ -516,68 +516,68 @@ ) ); -$form["tabs"]['dns'] = array ( - 'title' => "DNS", - 'width' => 60, - 'template' => "templates/server_config_dns_edit.htm", - 'fields' => array ( - ################################## - # Begin Datatable fields - ################################## - 'bind_user' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'bind_user_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' +$form["tabs"]['dns'] = array( + 'title' => "DNS", + 'width' => 60, + 'template' => "templates/server_config_dns_edit.htm", + 'fields' => array( + ################################## + # Begin Datatable fields + ################################## + 'bind_user' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'bind_user_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'bind_group' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'bind_group_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'bind_group' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'bind_group_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'bind_zonefiles_dir' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'bind_zonefiles_dir_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'bind_zonefiles_dir' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'bind_zonefiles_dir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'named_conf_path' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'named_conf_path_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'named_conf_path' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'named_conf_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'named_conf_local_path' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'named_conf_local_path_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'named_conf_local_path' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'named_conf_local_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), ################################## # ENDE Datatable fields @@ -585,90 +585,90 @@ ) ); -$form["tabs"]['fastcgi'] = array ( - 'title' => "FastCGI", - 'width' => 80, - 'template' => "templates/server_config_fastcgi_edit.htm", - 'fields' => array ( - ################################## - # Begin Datatable fields - ################################## - 'fastcgi_starter_path' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'fastcgi_starter_path_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' +$form["tabs"]['fastcgi'] = array( + 'title' => "FastCGI", + 'width' => 80, + 'template' => "templates/server_config_fastcgi_edit.htm", + 'fields' => array( + ################################## + # Begin Datatable fields + ################################## + 'fastcgi_starter_path' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'fastcgi_starter_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'fastcgi_starter_script' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'fastcgi_starter_script_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'fastcgi_starter_script' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'fastcgi_starter_script_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'fastcgi_alias' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'fastcgi_alias_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'fastcgi_alias' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'fastcgi_alias_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'fastcgi_phpini_path' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'fastcgi_phpini_path_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'fastcgi_phpini_path' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'fastcgi_phpini_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'fastcgi_children' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'fastcgi_children_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'fastcgi_children' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'fastcgi_children_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'fastcgi_max_requests' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'fastcgi_max_requests_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'fastcgi_max_requests' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'fastcgi_max_requests_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'fastcgi_bin' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'fastcgi_bin_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' + 'fastcgi_bin' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'fastcgi_bin_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), ################################## # ENDE Datatable fields @@ -677,58 +677,58 @@ ); -$form["tabs"]['jailkit'] = array ( - 'title' => "Jailkit", - 'width' => 80, - 'template' => "templates/server_config_jailkit_edit.htm", - 'fields' => array ( - ################################## - # Begin Datatable fields - ################################## - 'jailkit_chroot_home' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'jailkit_chroot_home_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' +$form["tabs"]['jailkit'] = array( + 'title' => "Jailkit", + 'width' => 80, + 'template' => "templates/server_config_jailkit_edit.htm", + 'fields' => array( + ################################## + # Begin Datatable fields + ################################## + 'jailkit_chroot_home' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'jailkit_chroot_home_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' ), - 'jailkit_chroot_app_sections' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'jailkit_chroot_app_sections_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '1000' + 'jailkit_chroot_app_sections' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'jailkit_chroot_app_sections_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '1000' ), - 'jailkit_chroot_app_programs' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'jailkit_chroot_app_programs_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '1000' + 'jailkit_chroot_app_programs' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'jailkit_chroot_app_programs_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '1000' ), - 'jailkit_chroot_cron_programs' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'jailkit_chroot_cron_programs_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '1000' - ), + 'jailkit_chroot_cron_programs' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'jailkit_chroot_cron_programs_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '1000' + ), ################################## # ENDE Datatable fields ################################## @@ -736,86 +736,115 @@ ); -$form["tabs"]['vlogger'] = array ( - 'title' => "vlogger", - 'width' => 80, - 'template' => "templates/server_config_vlogger_edit.htm", - 'fields' => array ( - ################################## - # Begin Datatable fields - ################################## - 'config_dir' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'vlogger_config_dir_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' - ), - ################################## - # ENDE Datatable fields - ################################## - ) +$form["tabs"]['vlogger'] = array( + 'title' => "vlogger", + 'width' => 80, + 'template' => "templates/server_config_vlogger_edit.htm", + 'fields' => array( + ################################## + # Begin Datatable fields + ################################## + 'config_dir' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'vlogger_config_dir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) ); -$form["tabs"]['cron'] = array ( - 'title' => "Cron", - 'width' => 80, - 'template' => "templates/server_config_cron_edit.htm", - 'fields' => array ( - ################################## - # Begin Datatable fields - ################################## - 'init_script' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'cron_init_script_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' - ), - 'crontab_dir' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'crontab_dir_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' - ), - 'wget' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'cron_wget_error_empty'), - ), - 'value' => '', - 'width' => '40', - 'maxlength' => '255' - ), - ################################## - # ENDE Datatable fields - ################################## - ) +$form["tabs"]['cron'] = array( + 'title' => "Cron", + 'width' => 80, + 'template' => "templates/server_config_cron_edit.htm", + 'fields' => array( + ################################## + # Begin Datatable fields + ################################## + 'init_script' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'cron_init_script_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'crontab_dir' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'crontab_dir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'wget' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array(0 => array('type' => 'NOTEMPTY', + 'errmsg' => 'cron_wget_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) ); - - - - - - - - +$form["tabs"]['rescue'] = array( + 'title' => "Rescue", + 'width' => 80, + 'template' => "templates/server_config_rescue_edit.htm", + 'fields' => array( + ################################## + # Begin Datatable fields + ################################## + 'try_rescue' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(0 => 'n', 1 => 'y') + ), + 'do_not_try_rescue_apache' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(0 => 'n', 1 => 'y') + ), + 'do_not_try_rescue_mysql' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(0 => 'n', 1 => 'y') + ), + 'do_not_try_rescue_mail' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(0 => 'n', 1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); ?> \ No newline at end of file diff --git a/interface/web/admin/lib/lang/en_server_config.lng b/interface/web/admin/lib/lang/en_server_config.lng index 7030fba..3d1a8a5 100644 --- a/interface/web/admin/lib/lang/en_server_config.lng +++ b/interface/web/admin/lib/lang/en_server_config.lng @@ -1,78 +1,82 @@ -<?php -$wb["jailkit_chroot_home_txt"] = 'Jailkit chroot home'; -$wb["jailkit_chroot_app_sections_txt"] = 'Jailkit chroot app sections'; -$wb["jailkit_chroot_app_programs_txt"] = 'Jailkit chrooted applications'; -$wb['jailkit_chroot_cron_programs_txt'] = 'Jailkit cron chrooted applications'; -$wb["website_path_txt"] = 'Website path'; -$wb["website_symlinks_txt"] = 'Website symlinks'; -$wb["website_basedir_txt"] = 'Website basedir'; -$wb["vhost_conf_dir_txt"] = 'Vhost config dir'; -$wb["vhost_conf_enabled_dir_txt"] = 'Vhost config enabled dir'; -$wb["getmail_config_dir_txt"] = 'Getmail config dir'; -$wb["fastcgi_starter_path_txt"] = 'FastCGI starter path'; -$wb["fastcgi_starter_script_txt"] = 'FastCGI starter script'; -$wb["fastcgi_alias_txt"] = 'FastCGI Alias'; -$wb["fastcgi_phpini_path_txt"] = 'FastCGI php.ini Path'; -$wb["fastcgi_children_txt"] = 'FastCGI Children'; -$wb["fastcgi_max_requests_txt"] = 'FastCGI max. Requests'; -$wb["fastcgi_bin_txt"] = 'FastCGI Bin'; -$wb["module_txt"] = 'Module'; -$wb["maildir_path_txt"] = 'Maildir Path'; -$wb["homedir_path_txt"] = 'Homedir Path'; -$wb["mailuser_uid_txt"] = 'Mailuser UID'; -$wb["mailuser_gid_txt"] = 'Mailuser GID'; -$wb["mailuser_name_txt"] = 'Mailuser Name'; -$wb["mailuser_group_txt"] = 'Mailuser Group'; -$wb["relayhost_txt"] = 'Relayhost'; -$wb["relayhost_user_txt"] = 'Relayhost User'; -$wb["relayhost_password_txt"] = 'Relayhost Password'; -$wb["mailbox_size_limit_txt"] = 'Mailbox Size Limit'; -$wb["message_size_limit_txt"] = 'Message Size Limit'; -$wb["ip_address_txt"] = 'IP Address'; -$wb["netmask_txt"] = 'Netmask'; -$wb["gateway_txt"] = 'Gateway'; -$wb["hostname_txt"] = 'Hostname'; -$wb["nameservers_txt"] = 'Nameservers'; -$wb["auto_network_configuration_txt"] = 'Network Configuration'; -$wb["ip_address_error_wrong"] = 'Invalid IP address format.'; -$wb["netmask_error_wrong"] = 'Invalid Netmask format.'; -$wb["gateway_error_wrong"] = 'Invalid Gateway format.'; -$wb["hostname_error_empty"] = 'Hostname is empty.'; -$wb["nameservers_error_empty"] = 'Nameserver is empty.'; -$wb["config_dir_txt"] = 'Config directory'; -$wb["init_script_txt"] = 'Cron init script name'; -$wb["crontab_dir_txt"] = 'Path for individual crontabs'; -$wb["wget_txt"] = 'Path to wget program'; -$wb["web_user_txt"] = 'Apache user'; -$wb["web_group_txt"] = 'Apache group'; -$wb["security_level_txt"] = 'Security level'; -$wb["loglevel_txt"] = 'Loglevel'; -$wb["apps_vhost_port_txt"] = 'Apps-vhost port'; -$wb["apps_vhost_ip_txt"] = 'Apps-vhost IP'; -$wb["apps_vhost_servername_txt"] = 'Apps-vhost Domain'; -$wb["bind_user_txt"] = 'BIND User'; -$wb["bind_group_txt"] = 'BIND Group'; -$wb["bind_zonefiles_dir_txt"] = 'BIND zonefiles directory'; -$wb["named_conf_path_txt"] = 'BIND named.conf path'; -$wb["bind_user_error_empty"] = 'BIND user is empty.'; -$wb["bind_group_error_empty"] = 'BIND group is empty.'; -$wb["bind_zonefiles_dir_error_empty"] = 'BIND zonefiles directory is empty.'; -$wb["named_conf_path_error_empty"] = 'BIND named.conf path is empty.'; -$wb["named_conf_local_path_error_empty"] = 'BIND named.conf.local path is empty.'; -$wb["mail_filter_syntax_txt"] = 'Mailfilter Syntax'; -$wb["pop3_imap_daemon_txt"] = 'POP3/IMAP Daemon'; -$wb["php_open_basedir_txt"] = 'PHP open_basedir'; -$wb["php_open_basedir_error_empty"] = 'PHP open_basedir is empty.'; -$wb["htaccess_allow_override_txt"] = '.htaccess AllowOverride'; -$wb["htaccess_allow_override_error_empty"] = '.htaccess AllowOverride is empty.'; -$wb["awstats_conf_dir_txt"] = 'awstats conf folder'; -$wb["awstats_data_dir_txt"] = 'awstats data folder'; -$wb["awstats_pl_txt"] = 'awstats.pl script'; -$wb["awstats_buildstaticpages_pl_txt"] = 'awstats_buildstaticpages.pl script'; -$wb["backup_dir_txt"] = 'Backup directory'; -$wb["named_conf_local_path_txt"] = 'BIND named.conf.local path'; -$wb["php_ini_path_cgi_txt"] = 'CGI php.ini path'; -$wb["php_ini_path_apache_txt"] = 'Apache php.ini path'; -$wb["check_apache_config_txt"] = 'Test apache configuration on restart'; -$wb["network_config_warning_txt"] = 'The network configuration option is only available for Debian and Ubuntu Servers. Do not enable this option if your network interface is not eth0.'; +<?php +$wb["try_rescue_txt"] = 'Activate rescue of all services installed at this server'; +$wb["do_not_try_rescue_apache_txt"] = 'If rescue ist activated, do NOT try to rescue Apache'; +$wb["do_not_try_rescue_mysql_txt"] = 'If rescue ist activated, do NOT try to rescue mysql'; +$wb["do_not_try_rescue_mail_txt"] = 'If rescue ist activated, do NOT try to rescue mail'; +$wb["jailkit_chroot_home_txt"] = 'Jailkit chroot home'; +$wb["jailkit_chroot_app_sections_txt"] = 'Jailkit chroot app sections'; +$wb["jailkit_chroot_app_programs_txt"] = 'Jailkit chrooted applications'; +$wb["jailkit_chroot_cron_programs_txt"] = 'Jailkit cron chrooted applications'; +$wb["website_path_txt"] = 'Website path'; +$wb["website_symlinks_txt"] = 'Website symlinks'; +$wb["website_basedir_txt"] = 'Website basedir'; +$wb["vhost_conf_dir_txt"] = 'Vhost config dir'; +$wb["vhost_conf_enabled_dir_txt"] = 'Vhost config enabled dir'; +$wb["getmail_config_dir_txt"] = 'Getmail config dir'; +$wb["fastcgi_starter_path_txt"] = 'FastCGI starter path'; +$wb["fastcgi_starter_script_txt"] = 'FastCGI starter script'; +$wb["fastcgi_alias_txt"] = 'FastCGI Alias'; +$wb["fastcgi_phpini_path_txt"] = 'FastCGI php.ini Path'; +$wb["fastcgi_children_txt"] = 'FastCGI Children'; +$wb["fastcgi_max_requests_txt"] = 'FastCGI max. Requests'; +$wb["fastcgi_bin_txt"] = 'FastCGI Bin'; +$wb["module_txt"] = 'Module'; +$wb["maildir_path_txt"] = 'Maildir Path'; +$wb["homedir_path_txt"] = 'Homedir Path'; +$wb["mailuser_uid_txt"] = 'Mailuser UID'; +$wb["mailuser_gid_txt"] = 'Mailuser GID'; +$wb["mailuser_name_txt"] = 'Mailuser Name'; +$wb["mailuser_group_txt"] = 'Mailuser Group'; +$wb["relayhost_txt"] = 'Relayhost'; +$wb["relayhost_user_txt"] = 'Relayhost User'; +$wb["relayhost_password_txt"] = 'Relayhost Password'; +$wb["mailbox_size_limit_txt"] = 'Mailbox Size Limit'; +$wb["message_size_limit_txt"] = 'Message Size Limit'; +$wb["ip_address_txt"] = 'IP Address'; +$wb["netmask_txt"] = 'Netmask'; +$wb["gateway_txt"] = 'Gateway'; +$wb["hostname_txt"] = 'Hostname'; +$wb["nameservers_txt"] = 'Nameservers'; +$wb["auto_network_configuration_txt"] = 'Network Configuration'; +$wb["ip_address_error_wrong"] = 'Invalid IP address format.'; +$wb["netmask_error_wrong"] = 'Invalid Netmask format.'; +$wb["gateway_error_wrong"] = 'Invalid Gateway format.'; +$wb["hostname_error_empty"] = 'Hostname is empty.'; +$wb["nameservers_error_empty"] = 'Nameserver is empty.'; +$wb["config_dir_txt"] = 'Config directory'; +$wb["init_script_txt"] = 'Cron init script name'; +$wb["crontab_dir_txt"] = 'Path for individual crontabs'; +$wb["wget_txt"] = 'Path to wget program'; +$wb["web_user_txt"] = 'Apache user'; +$wb["web_group_txt"] = 'Apache group'; +$wb["security_level_txt"] = 'Security level'; +$wb["loglevel_txt"] = 'Loglevel'; +$wb["apps_vhost_port_txt"] = 'Apps-vhost port'; +$wb["apps_vhost_ip_txt"] = 'Apps-vhost IP'; +$wb["apps_vhost_servername_txt"] = 'Apps-vhost Domain'; +$wb["bind_user_txt"] = 'BIND User'; +$wb["bind_group_txt"] = 'BIND Group'; +$wb["bind_zonefiles_dir_txt"] = 'BIND zonefiles directory'; +$wb["named_conf_path_txt"] = 'BIND named.conf path'; +$wb["bind_user_error_empty"] = 'BIND user is empty.'; +$wb["bind_group_error_empty"] = 'BIND group is empty.'; +$wb["bind_zonefiles_dir_error_empty"] = 'BIND zonefiles directory is empty.'; +$wb["named_conf_path_error_empty"] = 'BIND named.conf path is empty.'; +$wb["named_conf_local_path_error_empty"] = 'BIND named.conf.local path is empty.'; +$wb["mail_filter_syntax_txt"] = 'Mailfilter Syntax'; +$wb["pop3_imap_daemon_txt"] = 'POP3/IMAP Daemon'; +$wb["php_open_basedir_txt"] = 'PHP open_basedir'; +$wb["php_open_basedir_error_empty"] = 'PHP open_basedir is empty.'; +$wb["htaccess_allow_override_txt"] = '.htaccess AllowOverride'; +$wb["htaccess_allow_override_error_empty"] = '.htaccess AllowOverride is empty.'; +$wb["awstats_conf_dir_txt"] = 'awstats conf folder'; +$wb["awstats_data_dir_txt"] = 'awstats data folder'; +$wb["awstats_pl_txt"] = 'awstats.pl script'; +$wb["awstats_buildstaticpages_pl_txt"] = 'awstats_buildstaticpages.pl script'; +$wb["backup_dir_txt"] = 'Backup directory'; +$wb["named_conf_local_path_txt"] = 'BIND named.conf.local path'; +$wb["php_ini_path_cgi_txt"] = 'CGI php.ini path'; +$wb["php_ini_path_apache_txt"] = 'Apache php.ini path'; +$wb["check_apache_config_txt"] = 'Test apache configuration on restart'; +$wb["network_config_warning_txt"] = 'The network configuration option is only available for Debian and Ubuntu Servers. Do not enable this option if your network interface is not eth0.'; ?> \ No newline at end of file diff --git a/interface/web/admin/templates/server_config_rescue_edit.htm b/interface/web/admin/templates/server_config_rescue_edit.htm new file mode 100644 index 0000000..1642a12 --- /dev/null +++ b/interface/web/admin/templates/server_config_rescue_edit.htm @@ -0,0 +1,42 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_server_config"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Rescue</legend> + <div class="ctrlHolder"> + <p class="label" style="width:300px">{tmpl_var name='try_rescue_txt'}</p> + <div class="multiField" style="width:100px"> + {tmpl_var name='try_rescue'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label" style="width:300px">{tmpl_var name='do_not_try_rescue_apache_txt'}</p> + <div class="multiField" style="width:100px"> + {tmpl_var name='do_not_try_rescue_apache'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label" style="width:300px">{tmpl_var name='do_not_try_rescue_mysql_txt'}</p> + <div class="multiField" style="width:100px"> + {tmpl_var name='do_not_try_rescue_mysql'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label" style="width:300px">{tmpl_var name='do_not_try_rescue_mail_txt'}</p> + <div class="multiField" style="width:100px"> + {tmpl_var name='do_not_try_rescue_mail'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/server_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/server_config_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> -- Gitblit v1.9.1