Marius Cramer
2015-08-06 37b29231e47a0c4458dc1c15d98588f16f07e1e2
commit | author | age
532ae5 1 <?php
L 2
3 /*
4     Form Definition
5
6     Tabledefinition
7
8     Datatypes:
9     - INTEGER (Forces the input to Int)
10     - DOUBLE
11     - CURRENCY (Formats the values to currency notation)
12     - VARCHAR (no format check, maxlength: 255)
13     - TEXT (no format check)
14     - DATE (Dateformat, automatic conversion to timestamps)
15
16     Formtype:
17     - TEXT (Textfield)
18     - TEXTAREA (Textarea)
19     - PASSWORD (Password textfield, input is not shown when edited)
20     - SELECT (Select option field)
21     - RADIO
22     - CHECKBOX
23     - CHECKBOXARRAY
24     - FILE
25
26     VALUE:
27     - Wert oder Array
28
29     Hint:
30     The ID field of the database table is not part of the datafield definition.
31     The ID field must be always auto incement (int or bigint).
32
33
34 */
35
7fe908 36 $form["title"]    = "Client-Templates";
MC 37 $form["description"]  = "";
38 $form["name"]    = "client_template";
39 $form["action"]   = "client_template_edit.php";
40 $form["db_table"]  = "client_template";
41 $form["db_table_idx"] = "template_id";
42 $form["db_history"]  = "no";
43 $form["tab_default"] = "template";
44 $form["list_default"] = "client_template_list.php";
45 $form["auth"]   = 'yes';
532ae5 46
L 47 $form["auth_preset"]["userid"]  = 0; // 0 = id of the user, > 0 id must match with id of current user
48 $form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
49 $form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
50 $form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
51 $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
52
53 //* Languages
54 $language_list = array();
55 $handle = @opendir(ISPC_ROOT_PATH.'/lib/lang');
7fe908 56 while ($file = @readdir($handle)) {
MC 57     if ($file != '.' && $file != '..') {
58         if(@is_file(ISPC_ROOT_PATH.'/lib/lang/'.$file) and substr($file, -4, 4) == '.lng') {
532ae5 59             $tmp = substr($file, 0, 2);
L 60             $language_list[$tmp] = $tmp;
7fe908 61         }
532ae5 62     }
L 63 }
64
65 $form["tabs"]['template'] = array (
7fe908 66     'title'  => "Template",
MC 67     'width'  => 80,
68     'template'  => "templates/client_template_edit_template.htm",
69     'fields'  => array (
70         //#################################
71         // Begin Datatable fields
72         //#################################
532ae5 73         'template_type' => array (
7fe908 74             'datatype' => 'VARCHAR',
MC 75             'formtype' => 'SELECT',
76             'default' => 'm',
77             'value'  => array('m' => "Main Template", 'a' => "Additional Template"),
532ae5 78         ),
L 79         'template_name' => array (
7fe908 80             'datatype' => 'VARCHAR',
MC 81             'formtype' => 'TEXT',
82             'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
83                     'errmsg'=> 'error_template_name_empty'),
84             ),
85             'default' => '',
86             'value'  => '',
87             'width'  => '30',
88             'maxlength' => '255'
532ae5 89         ),
7fe908 90         //#################################
MC 91         // END Datatable fields
92         //#################################
532ae5 93     )
L 94 );
95
96 $form["tabs"]['limits'] = array (
7fe908 97     'title'  => "Limits",
MC 98     'width'  => 80,
99     'template'  => "templates/client_template_edit_limits.htm",
100     'fields'  => array (
101         //#################################
102         // Begin Datatable fields
103         //#################################
94c961 104         'limit_client' => array (
TB 105             'datatype' => 'INTEGER',
106             'formtype' => 'TEXT',
107             'validators' => array (  0 => array ( 'type' => 'ISINT',
108                     'errmsg'=> 'limit_client_error_notint'),
109             ),
110             'default' => '1',
111             'value'  => '',
112             'separator' => '',
113             'width'  => '10',
114             'maxlength' => '10',
115             'rows'  => '',
116             'cols'  => ''
117         ),
a1db68 118         'default_mailserver' => array (
SC 119             'datatype' => 'INTEGER',
120             'formtype' => 'SELECT',
121             'default' => '0',
122             'datasource' => array (  'type' => 'CUSTOM',
123                 'class'=> 'custom_datasource',
124                 'function'=> 'client_servers'
125             ),
126             'value'  => array(''),
127             'name'  => 'default_mailserver'
128         ),
532ae5 129         'limit_maildomain' => array (
7fe908 130             'datatype' => 'INTEGER',
MC 131             'formtype' => 'TEXT',
132             'validators' => array (  0 => array ( 'type' => 'ISINT',
133                     'errmsg'=> 'limit_maildomain_error_notint'),
134             ),
135             'default' => '0',
136             'value'  => '',
137             'separator' => '',
138             'width'  => '10',
139             'maxlength' => '10',
140             'rows'  => '',
141             'cols'  => ''
532ae5 142         ),
L 143         'limit_mailbox' => array (
7fe908 144             'datatype' => 'INTEGER',
MC 145             'formtype' => 'TEXT',
146             'validators' => array (  0 => array ( 'type' => 'ISINT',
147                     'errmsg'=> 'limit_mailbox_error_notint'),
148             ),
149             'default' => '0',
150             'value'  => '',
151             'separator' => '',
152             'width'  => '10',
153             'maxlength' => '10',
154             'rows'  => '',
155             'cols'  => ''
532ae5 156         ),
L 157         'limit_mailalias' => array (
7fe908 158             'datatype' => 'INTEGER',
MC 159             'formtype' => 'TEXT',
160             'validators' => array (  0 => array ( 'type' => 'ISINT',
161                     'errmsg'=> 'limit_mailalias_error_notint'),
162             ),
163             'default' => '0',
164             'value'  => '',
165             'separator' => '',
166             'width'  => '10',
167             'maxlength' => '10',
168             'rows'  => '',
169             'cols'  => ''
532ae5 170         ),
L 171         'limit_mailaliasdomain' => array (
7fe908 172             'datatype' => 'INTEGER',
MC 173             'formtype' => 'TEXT',
174             'validators' => array (  0 => array ( 'type' => 'ISINT',
175                     'errmsg'=> 'limit_mailaliasdomain_error_notint'),
176             ),
177             'default' => '-1',
178             'value'  => '',
179             'separator' => '',
180             'width'  => '10',
181             'maxlength' => '10',
182             'rows'  => '',
183             'cols'  => ''
532ae5 184         ),
L 185         'limit_mailmailinglist' => array (
7fe908 186             'datatype' => 'INTEGER',
MC 187             'formtype' => 'TEXT',
188             'validators' => array (  0 => array ( 'type' => 'ISINT',
189                     'errmsg'=> 'limit_mailmailinglist_error_notint'),
190             ),
191             'default' => '-1',
192             'value'  => '',
193             'separator' => '',
194             'width'  => '10',
195             'maxlength' => '10',
196             'rows'  => '',
197             'cols'  => ''
532ae5 198         ),
L 199         'limit_mailforward' => array (
7fe908 200             'datatype' => 'INTEGER',
MC 201             'formtype' => 'TEXT',
202             'validators' => array (  0 => array ( 'type' => 'ISINT',
203                     'errmsg'=> 'limit_mailforward_error_notint'),
204             ),
205             'default' => '0',
206             'value'  => '',
207             'separator' => '',
208             'width'  => '10',
209             'maxlength' => '10',
210             'rows'  => '',
211             'cols'  => ''
532ae5 212         ),
L 213         'limit_mailcatchall' => array (
7fe908 214             'datatype' => 'INTEGER',
MC 215             'formtype' => 'TEXT',
216             'validators' => array (  0 => array ( 'type' => 'ISINT',
217                     'errmsg'=> 'limit_mailcatchall_error_notint'),
218             ),
219             'default' => '0',
220             'value'  => '',
221             'separator' => '',
222             'width'  => '10',
223             'maxlength' => '10',
224             'rows'  => '',
225             'cols'  => ''
532ae5 226         ),
L 227         'limit_mailrouting' => array (
7fe908 228             'datatype' => 'INTEGER',
MC 229             'formtype' => 'TEXT',
230             'validators' => array (  0 => array ( 'type' => 'ISINT',
231                     'errmsg'=> 'limit_mailrouting_error_notint'),
232             ),
233             'default' => '0',
234             'value'  => '',
235             'separator' => '',
236             'width'  => '10',
237             'maxlength' => '10',
238             'rows'  => '',
239             'cols'  => ''
532ae5 240         ),
L 241         'limit_mailfilter' => array (
7fe908 242             'datatype' => 'INTEGER',
MC 243             'formtype' => 'TEXT',
244             'validators' => array (  0 => array ( 'type' => 'ISINT',
245                     'errmsg'=> 'limit_mailfilter_error_notint'),
246             ),
247             'default' => '0',
248             'value'  => '',
249             'separator' => '',
250             'width'  => '10',
251             'maxlength' => '10',
252             'rows'  => '',
253             'cols'  => ''
532ae5 254         ),
L 255         'limit_fetchmail' => array (
7fe908 256             'datatype' => 'INTEGER',
MC 257             'formtype' => 'TEXT',
258             'validators' => array (  0 => array ( 'type' => 'ISINT',
259                     'errmsg'=> 'limit_mailfetchmail_error_notint'),
260             ),
261             'default' => '0',
262             'value'  => '',
263             'separator' => '',
264             'width'  => '10',
265             'maxlength' => '10',
266             'rows'  => '',
267             'cols'  => ''
532ae5 268         ),
L 269         'limit_mailquota' => array (
7fe908 270             'datatype' => 'INTEGER',
MC 271             'formtype' => 'TEXT',
272             'validators' => array (  0 => array ( 'type' => 'ISINT',
273                     'errmsg'=> 'limit_mailquota_error_notint'),
274             ),
275             'default' => '0',
276             'value'  => '',
277             'separator' => '',
278             'width'  => '10',
279             'maxlength' => '10',
280             'rows'  => '',
281             'cols'  => ''
532ae5 282         ),
L 283         'limit_spamfilter_wblist' => array (
7fe908 284             'datatype' => 'INTEGER',
MC 285             'formtype' => 'TEXT',
286             'validators' => array (  0 => array ( 'type' => 'ISINT',
287                     'errmsg'=> 'limit_spamfilter_wblist_error_notint'),
288             ),
289             'default' => '0',
290             'value'  => '',
291             'separator' => '',
292             'width'  => '10',
293             'maxlength' => '10',
294             'rows'  => '',
295             'cols'  => ''
532ae5 296         ),
L 297         'limit_spamfilter_user' => array (
7fe908 298             'datatype' => 'INTEGER',
MC 299             'formtype' => 'TEXT',
300             'validators' => array (  0 => array ( 'type' => 'ISINT',
301                     'errmsg'=> 'limit_spamfilter_user_error_notint'),
302             ),
303             'default' => '0',
304             'value'  => '',
305             'separator' => '',
306             'width'  => '10',
307             'maxlength' => '10',
308             'rows'  => '',
309             'cols'  => ''
532ae5 310         ),
L 311         'limit_spamfilter_policy' => array (
7fe908 312             'datatype' => 'INTEGER',
MC 313             'formtype' => 'TEXT',
314             'validators' => array (  0 => array ( 'type' => 'ISINT',
315                     'errmsg'=> 'limit_spamfilter_policy_error_notint'),
316             ),
317             'default' => '0',
318             'value'  => '',
319             'separator' => '',
320             'width'  => '10',
321             'maxlength' => '10',
322             'rows'  => '',
323             'cols'  => ''
532ae5 324         ),
a7d804 325         'default_xmppserver' => array (
MF 326             'datatype' => 'INTEGER',
327             'formtype' => 'SELECT',
328             'default' => '1',
329             'datasource' => array (  'type' => 'CUSTOM',
330                 'class'=> 'custom_datasource',
331                 'function'=> 'client_servers'
332             ),
333             'value'  => '',
334             'name'  => 'default_xmppserver'
335         ),
336         'xmpp_servers' => array (
337             'datatype' => 'VARCHAR',
338             'formtype' => 'MULTIPLE',
339             'separator' => ',',
340             'default' => '1',
341             'datasource' => array (  'type' => 'CUSTOM',
342                 'class'=> 'custom_datasource',
343                 'function'=> 'client_servers'
344             ),
345             'validators'    => array (
346                 0 => array ( 'type' => 'CUSTOM',
347                     'class' => 'validate_client',
348                     'function' => 'check_used_servers',
349                     'errmsg'=> 'xmpp_servers_used'),
350             ),
351             'value'  => '',
352             'name'  => 'xmpp_servers'
353         ),
354         'limit_xmpp_domain' => array(
355             'datatype' => 'INTEGER',
356             'formtype' => 'TEXT',
357             'validators' => array (  0 => array ( 'type' => 'ISINT',
358                 'errmsg'=> 'limit_xmpp_domain_error_notint'),
359             ),
360             'default' => '-1',
361             'value'  => '',
362             'separator' => '',
363             'width'  => '10',
364             'maxlength' => '10',
365             'rows'  => '',
366             'cols'  => ''
367         ),
368         'limit_xmpp_user' => array(
369             'datatype' => 'INTEGER',
370             'formtype' => 'TEXT',
371             'validators' => array (  0 => array ( 'type' => 'ISINT',
372                 'errmsg'=> 'limit_xmpp_user_error_notint'),
373             ),
374             'default' => '-1',
375             'value'  => '',
376             'separator' => '',
377             'width'  => '10',
378             'maxlength' => '10',
379             'rows'  => '',
380             'cols'  => ''
381         ),
382         'limit_xmpp_muc' => array(
383             'datatype' => 'VARCHAR',
384             'formtype' => 'CHECKBOX',
385             'default' => 'n',
386             'value'  => array(0 => 'n', 1 => 'y')
387         ),
388         'limit_xmpp_anon' => array(
389             'datatype' => 'VARCHAR',
390             'formtype' => 'CHECKBOX',
391             'default' => 'n',
392             'value'  => array(0 => 'n', 1 => 'y')
393         ),
394         'limit_xmpp_vjud' => array(
395             'datatype' => 'VARCHAR',
396             'formtype' => 'CHECKBOX',
397             'default' => 'n',
398             'value'  => array(0 => 'n', 1 => 'y')
399         ),
400         'limit_xmpp_proxy' => array(
401             'datatype' => 'VARCHAR',
402             'formtype' => 'CHECKBOX',
403             'default' => 'n',
404             'value'  => array(0 => 'n', 1 => 'y')
405         ),
406         'limit_xmpp_status' => array(
407             'datatype' => 'VARCHAR',
408             'formtype' => 'CHECKBOX',
409             'default' => 'n',
410             'value'  => array(0 => 'n', 1 => 'y')
411         ),
412         'limit_xmpp_pastebin' => array(
413             'datatype' => 'VARCHAR',
414             'formtype' => 'CHECKBOX',
415             'default' => 'n',
416             'value'  => array(0 => 'n', 1 => 'y')
417         ),
418         'limit_xmpp_httparchive' => array(
419             'datatype' => 'VARCHAR',
420             'formtype' => 'CHECKBOX',
421             'default' => 'n',
422             'value'  => array(0 => 'n', 1 => 'y')
423         ),
a1db68 424         'default_webserver' => array (
SC 425             'datatype' => 'INTEGER',
426             'formtype' => 'SELECT',
427             'default' => '0',
428             'datasource' => array (  'type' => 'CUSTOM',
429                 'class'=> 'custom_datasource',
430                 'function'=> 'client_servers'
431             ),
432             'value'  => array(''),
433             'name'  => 'default_webserver'
434         ),
532ae5 435         'limit_web_domain' => array (
7fe908 436             'datatype' => 'INTEGER',
MC 437             'formtype' => 'TEXT',
438             'validators' => array (  0 => array ( 'type' => 'ISINT',
439                     'errmsg'=> 'limit_web_domain_error_notint'),
440             ),
441             'default' => '0',
442             'value'  => '',
443             'separator' => '',
444             'width'  => '10',
445             'maxlength' => '10',
446             'rows'  => '',
447             'cols'  => ''
532ae5 448         ),
L 449         'limit_web_quota' => array (
7fe908 450             'datatype' => 'INTEGER',
MC 451             'formtype' => 'TEXT',
452             'validators' => array (  0 => array ( 'type' => 'ISINT',
453                     'errmsg'=> 'limit_web_quota_error_notint'),
454             ),
455             'default' => '-1',
456             'value'  => '',
457             'separator' => '',
458             'width'  => '10',
459             'maxlength' => '10',
460             'rows'  => '',
461             'cols'  => ''
532ae5 462         ),
b2ea52 463         'web_php_options' => array (
7fe908 464             'datatype' => 'VARCHAR',
MC 465             'formtype' => 'CHECKBOXARRAY',
466             'default' => '',
b2ea52 467             'separator' => ',',
T 468             'valuelimit' => 'client:web_php_options',
1c6da3 469             'value'  => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM', 'hhvm' => 'HHVM')
b2ea52 470         ),
ac099e 471         'limit_cgi' => array (
7fe908 472             'datatype' => 'VARCHAR',
MC 473             'formtype' => 'CHECKBOX',
474             'default' => 'n',
475             'value'  => array(0 => 'n', 1 => 'y')
ac099e 476         ),
M 477         'limit_ssi' => array (
7fe908 478             'datatype' => 'VARCHAR',
MC 479             'formtype' => 'CHECKBOX',
480             'default' => 'n',
481             'value'  => array(0 => 'n', 1 => 'y')
ac099e 482         ),
M 483         'limit_perl' => array (
7fe908 484             'datatype' => 'VARCHAR',
MC 485             'formtype' => 'CHECKBOX',
486             'default' => 'n',
487             'value'  => array(0 => 'n', 1 => 'y')
ac099e 488         ),
M 489         'limit_ruby' => array (
7fe908 490             'datatype' => 'VARCHAR',
MC 491             'formtype' => 'CHECKBOX',
492             'default' => 'n',
493             'value'  => array(0 => 'n', 1 => 'y')
ac099e 494         ),
M 495         'limit_python' => array (
7fe908 496             'datatype' => 'VARCHAR',
MC 497             'formtype' => 'CHECKBOX',
498             'default' => 'n',
499             'value'  => array(0 => 'n', 1 => 'y')
ac099e 500         ),
M 501         'force_suexec' => array (
7fe908 502             'datatype' => 'VARCHAR',
MC 503             'formtype' => 'CHECKBOX',
504             'default' => 'y',
505             'value'  => array(0 => 'n', 1 => 'y')
ac099e 506         ),
M 507         'limit_hterror' => array (
7fe908 508             'datatype' => 'VARCHAR',
MC 509             'formtype' => 'CHECKBOX',
510             'default' => 'n',
511             'value'  => array(0 => 'n', 1 => 'y')
ac099e 512         ),
M 513         'limit_wildcard' => array (
7fe908 514             'datatype' => 'VARCHAR',
MC 515             'formtype' => 'CHECKBOX',
516             'default' => 'n',
517             'value'  => array(0 => 'n', 1 => 'y')
ac099e 518         ),
M 519         'limit_ssl' => array (
7fe908 520             'datatype' => 'VARCHAR',
MC 521             'formtype' => 'CHECKBOX',
522             'default' => 'n',
523             'value'  => array(0 => 'n', 1 => 'y')
ac099e 524         ),
532ae5 525         'limit_web_aliasdomain' => array (
7fe908 526             'datatype' => 'INTEGER',
MC 527             'formtype' => 'TEXT',
528             'validators' => array (  0 => array ( 'type' => 'ISINT',
529                     'errmsg'=> 'limit_web_aliasdomain_error_notint'),
530             ),
531             'default' => '0',
532             'value'  => '',
533             'separator' => '',
534             'width'  => '10',
535             'maxlength' => '10',
536             'rows'  => '',
537             'cols'  => ''
532ae5 538         ),
L 539         'limit_web_subdomain' => array (
7fe908 540             'datatype' => 'INTEGER',
MC 541             'formtype' => 'TEXT',
542             'validators' => array (  0 => array ( 'type' => 'ISINT',
543                     'errmsg'=> 'limit_web_subdomain_error_notint'),
544             ),
545             'default' => '0',
546             'value'  => '',
547             'separator' => '',
548             'width'  => '10',
549             'maxlength' => '10',
550             'rows'  => '',
551             'cols'  => ''
532ae5 552         ),
L 553         'limit_ftp_user' => array (
7fe908 554             'datatype' => 'INTEGER',
MC 555             'formtype' => 'TEXT',
556             'validators' => array (  0 => array ( 'type' => 'ISINT',
557                     'errmsg'=> 'limit_ftp_user_error_notint'),
558             ),
559             'default' => '0',
560             'value'  => '',
561             'separator' => '',
562             'width'  => '10',
563             'maxlength' => '10',
564             'rows'  => '',
565             'cols'  => ''
532ae5 566         ),
L 567         'limit_shell_user' => array (
7fe908 568             'datatype' => 'INTEGER',
MC 569             'formtype' => 'TEXT',
570             'validators' => array (  0 => array ( 'type' => 'ISINT',
571                     'errmsg'=> 'limit_shell_user_error_notint'),
572             ),
573             'default' => '0',
574             'value'  => '',
575             'separator' => '',
576             'width'  => '10',
577             'maxlength' => '10',
578             'rows'  => '',
579             'cols'  => ''
532ae5 580         ),
b2ea52 581         'ssh_chroot' => array (
7fe908 582             'datatype' => 'VARCHAR',
MC 583             'formtype' => 'CHECKBOXARRAY',
584             'validators' => array (
585                 0 => array (
586                     'type'=> 'NOTEMPTY',
587                     'errmsg'=> 'ssh_chroot_notempty'
588                 ),
5c67f7 589             ),
7fe908 590             'default' => '',
b2ea52 591             'separator' => ',',
T 592             'valuelimit' => 'client:ssh_chroot',
7fe908 593             'value'  => array('no' => 'None', 'jailkit' => 'Jailkit')
b2ea52 594         ),
532ae5 595         'limit_webdav_user' => array (
7fe908 596             'datatype' => 'INTEGER',
MC 597             'formtype' => 'TEXT',
598             'validators' => array (  0 => array ( 'type' => 'ISINT',
599                     'errmsg'=> 'limit_webdav_user_error_notint'),
600             ),
601             'default' => '0',
602             'value'  => '',
603             'separator' => '',
604             'width'  => '10',
605             'maxlength' => '10',
606             'rows'  => '',
607             'cols'  => ''
532ae5 608         ),
f40d19 609         'limit_backup' => array (
D 610             'datatype' => 'VARCHAR',
611             'formtype' => 'CHECKBOX',
62c0e9 612             'default' => 'y',
f40d19 613             'value'  => array(0 => 'n', 1 => 'y')
D 614         ),
a1db68 615         'default_dnsserver' => array (
SC 616             'datatype' => 'INTEGER',
617             'formtype' => 'SELECT',
618             'default' => '0',
619             'datasource' => array (  'type' => 'CUSTOM',
620                 'class'=> 'custom_datasource',
621                 'function'=> 'client_servers'
622             ),
623             'value'  => array(''),
624             'name'  => 'default_dnsserver'
625         ),
532ae5 626         'limit_dns_zone' => array (
7fe908 627             'datatype' => 'INTEGER',
MC 628             'formtype' => 'TEXT',
629             'validators' => array (  0 => array ( 'type' => 'ISINT',
630                     'errmsg'=> 'limit_dns_zone_error_notint'),
631             ),
632             'default' => '0',
633             'value'  => '',
634             'separator' => '',
635             'width'  => '10',
636             'maxlength' => '10',
637             'rows'  => '',
638             'cols'  => ''
a1db68 639         ),
SC 640         'default_slave_dnsserver' => array (
641             'datatype' => 'INTEGER',
642             'formtype' => 'SELECT',
643             'default' => '0',
644             'datasource' => array (  'type' => 'CUSTOM',
645                 'class'=> 'custom_datasource',
646                 'function'=> 'client_servers'
647             ),
648             'value'  => array(''),
649             'name'  => 'default_slave_dnsserver'
532ae5 650         ),
7fe908 651         'limit_dns_slave_zone' => array (
MC 652             'datatype'      => 'INTEGER',
653             'formtype'      => 'TEXT',
654             'validators'    => array (      0 => array (    'type'  => 'ISINT',
655                     'errmsg'=> 'limit_dns_slave_zone_error_notint'),
656             ),
657             'default'       => '0',
658             'value'         => '',
659             'separator'     => '',
660             'width'         => '10',
661             'maxlength'     => '10',
662             'rows'          => '',
663             'cols'          => ''
664         ),
532ae5 665         'limit_dns_record' => array (
7fe908 666             'datatype' => 'INTEGER',
MC 667             'formtype' => 'TEXT',
668             'validators' => array (  0 => array ( 'type' => 'ISINT',
669                     'errmsg'=> 'limit_dns_record_error_notint'),
670             ),
671             'default' => '0',
672             'value'  => '',
673             'separator' => '',
674             'width'  => '10',
675             'maxlength' => '10',
676             'rows'  => '',
677             'cols'  => ''
532ae5 678         ),
L 679         /*
680         'limit_client' => array (
681             'datatype'    => 'INTEGER',
682             'formtype'    => 'TEXT',
683             'validators'    => array (     0 => array (    'type'    => 'ISINT',
684                                                         'errmsg'=> 'limit_client_error_notint'),
685                                     ),
686             'default'    => '0',
687             'value'        => '',
688             'separator'    => '',
689             'width'        => '10',
690             'maxlength'    => '10',
691             'rows'        => '',
692             'cols'        => ''
693         ),
694         */
a1db68 695         'default_dbserver' => array (
SC 696             'datatype' => 'INTEGER',
697             'formtype' => 'SELECT',
698             'default' => '0',
699             'datasource' => array (  'type' => 'CUSTOM',
700                 'class'=> 'custom_datasource',
701                 'function'=> 'client_servers'
702             ),
703             'value'  => array(''),
704             'name'  => 'default_dbserver'
705         ),
532ae5 706         'limit_database' => array (
7fe908 707             'datatype' => 'INTEGER',
MC 708             'formtype' => 'TEXT',
709             'validators' => array (  0 => array ( 'type' => 'ISINT',
710                     'errmsg'=> 'limit_database_error_notint'),
711             ),
712             'default' => '0',
713             'value'  => '',
714             'separator' => '',
715             'width'  => '10',
716             'maxlength' => '10',
717             'rows'  => '',
718             'cols'  => ''
532ae5 719         ),
0543b2 720         'limit_database_quota' => array (
F 721             'datatype' => 'INTEGER',
722             'formtype' => 'TEXT',
723             'validators' => array (  0 => array ( 'type' => 'ISINT',
724                     'errmsg'=> 'limit_database_quota_error_notint'),
725             ),
726             'default' => '-1',
727             'value'  => '',
728             'separator' => '',
729             'width'  => '10',
730             'maxlength' => '10',
731             'rows'  => '',
732             'cols'  => ''
733         ),
7fe908 734         'limit_cron' => array (
MC 735             'datatype'  => 'INTEGER',
736             'formtype'  => 'TEXT',
737             'validators'    => array (  0 => array (    'type'  => 'ISINT',
738                     'errmsg'=> 'limit_cron_error_notint'),
739             ),
740             'default'   => '0',
741             'value'     => '',
742             'separator' => '',
743             'width'     => '10',
744             'maxlength' => '10',
745             'rows'      => '',
746             'cols'      => ''
747         ),
748         'limit_cron_type' => array (
749             'datatype'  => 'VARCHAR',
750             'formtype'  => 'SELECT',
751             'default'   => '',
752             'value'     => array('full' => 'Full Cron', 'chrooted' => 'Chrooted Cron', 'url' => 'URL Cron')
753         ),
754         'limit_cron_frequency' => array (
755             'datatype'  => 'INTEGER',
756             'formtype'  => 'TEXT',
757             'validators'    => array (  0 => array (    'type'  => 'ISINT',
758                     'errmsg'=> 'limit_cron_error_frequency'),
759             ),
760             'default'   => '-1',
761             'value'     => '',
762             'separator' => '',
763             'width'     => '10',
764             'maxlength' => '10',
765             'rows'      => '',
766             'cols'      => ''
767         ),
532ae5 768         'limit_traffic_quota' => array (
7fe908 769             'datatype' => 'INTEGER',
MC 770             'formtype' => 'TEXT',
771             'validators' => array (  0 => array ( 'type' => 'ISINT',
772                     'errmsg'=> 'limit_traffic_quota_error_notint'),
773             ),
774             'default' => '-1',
775             'value'  => '',
776             'separator' => '',
777             'width'  => '10',
778             'maxlength' => '10',
779             'rows'  => '',
780             'cols'  => ''
532ae5 781         ),
f414ab 782         'limit_openvz_vm' => array (
7fe908 783             'datatype' => 'INTEGER',
MC 784             'formtype' => 'TEXT',
785             'validators' => array (  0 => array ( 'type' => 'ISINT',
786                     'errmsg'=> 'limit_openvz_vm_error_notint'),
787             ),
788             'default' => '0',
789             'value'  => '',
790             'separator' => '',
791             'width'  => '10',
792             'maxlength' => '10',
793             'rows'  => '',
794             'cols'  => ''
f414ab 795         ),
T 796         'limit_openvz_vm_template_id' => array (
7fe908 797             'datatype' => 'INTEGER',
MC 798             'formtype' => 'SELECT',
799             'default' => '',
800             'datasource' => array (  'type' => 'SQL',
801                 'querystring' => 'SELECT template_id,template_name FROM openvz_template WHERE 1 ORDER BY template_name',
802                 'keyfield'=> 'template_id',
803                 'valuefield'=> 'template_name'
804             ),
805             'value'  => array(0 => ' ')
f414ab 806         ),
526b99 807         'limit_aps' => array (
7fe908 808             'datatype' => 'INTEGER',
MC 809             'formtype' => 'TEXT',
810             'validators' => array (  0 => array ( 'type' => 'ISINT',
811                     'errmsg'=> 'limit_aps_error_notint'),
812             ),
813             'default' => '-1',
814             'value'  => '',
815             'separator' => '',
816             'width'  => '10',
817             'maxlength' => '10',
818             'rows'  => '',
819             'cols'  => ''
526b99 820         ),
7fe908 821         //#################################
MC 822         // END Datatable fields
823         //#################################
532ae5 824     )
L 825 );
826
827 ?>