From 66c3bc24f069a2854bdf1eeebb6dcb51f6ef0afb Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Wed, 28 Oct 2009 14:30:28 -0400 Subject: [PATCH] Implemented: FS#757 - Add "custom" option to transports --- interface/web/client/form/client_template.tform.php | 100 +++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 82 insertions(+), 18 deletions(-) diff --git a/interface/web/client/form/client_template.tform.php b/interface/web/client/form/client_template.tform.php index 59be804..6f92450 100644 --- a/interface/web/client/form/client_template.tform.php +++ b/interface/web/client/form/client_template.tform.php @@ -42,7 +42,7 @@ $form["db_history"] = "no"; $form["tab_default"] = "template"; $form["list_default"] = "client_template_list.php"; -$form["auth"] = 'no'; +$form["auth"] = 'yes'; $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 @@ -107,7 +107,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_maildomain_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -121,7 +121,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_mailbox_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -134,6 +134,20 @@ 'formtype' => 'TEXT', 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_mailalias_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailaliasdomain' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailaliasdomain_error_notint'), ), 'default' => '-1', 'value' => '', @@ -149,7 +163,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_mailforward_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -163,7 +177,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_mailcatchall_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -191,7 +205,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_mailfilter_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -205,7 +219,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_mailfetchmail_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -219,7 +233,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_mailquota_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -233,7 +247,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_spamfilter_wblist_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -247,7 +261,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_spamfilter_user_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -261,7 +275,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_spamfilter_policy_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -274,6 +288,20 @@ 'formtype' => 'TEXT', 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_web_domain_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_web_quota' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_web_quota_error_notint'), ), 'default' => '-1', 'value' => '', @@ -289,7 +317,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_web_aliasdomain_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -303,7 +331,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_web_subdomain_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -317,7 +345,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_ftp_user_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -331,7 +359,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_shell_user_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -345,7 +373,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_dns_zone_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -359,7 +387,7 @@ 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_dns_record_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -367,6 +395,7 @@ 'rows' => '', 'cols' => '' ), + /* 'limit_client' => array ( 'datatype' => 'INTEGER', 'formtype' => 'TEXT', @@ -381,13 +410,14 @@ 'rows' => '', 'cols' => '' ), + */ 'limit_database' => array ( 'datatype' => 'INTEGER', 'formtype' => 'TEXT', 'validators' => array ( 0 => array ( 'type' => 'ISINT', 'errmsg'=> 'limit_database_error_notint'), ), - 'default' => '-1', + 'default' => '0', 'value' => '', 'separator' => '', 'width' => '10', @@ -395,6 +425,40 @@ 'rows' => '', 'cols' => '' ), + 'limit_cron' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_cron_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_cron_type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('full' => 'Full Cron','chrooted' => 'Chrooted Cron','url' => 'URL Cron') + ), + 'limit_cron_frequency' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_cron_error_frequency'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), ################################## # END Datatable fields ################################## -- Gitblit v1.9.1