Marius Burkard
2016-07-01 49441bdd0f3ff75d5092d5b832b97ea722a66363
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'  => ''
ffedcb 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'
ffedcb 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'  => ''
ffedcb 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'
ffedcb 335         ),*/
a7d804 336         'xmpp_servers' => array (
MF 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')
ffedcb 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'
ffedcb 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         ),
67b0cb 525         'limit_ssl_letsencrypt' => array (
MB 526             'datatype' => 'VARCHAR',
527             'formtype' => 'CHECKBOX',
528             'default' => 'n',
529             'value'  => array(0 => 'n', 1 => 'y')
530         ),
532ae5 531         'limit_web_aliasdomain' => array (
7fe908 532             'datatype' => 'INTEGER',
MC 533             'formtype' => 'TEXT',
534             'validators' => array (  0 => array ( 'type' => 'ISINT',
535                     'errmsg'=> 'limit_web_aliasdomain_error_notint'),
536             ),
537             'default' => '0',
538             'value'  => '',
539             'separator' => '',
540             'width'  => '10',
541             'maxlength' => '10',
542             'rows'  => '',
543             'cols'  => ''
532ae5 544         ),
L 545         'limit_web_subdomain' => array (
7fe908 546             'datatype' => 'INTEGER',
MC 547             'formtype' => 'TEXT',
548             'validators' => array (  0 => array ( 'type' => 'ISINT',
549                     'errmsg'=> 'limit_web_subdomain_error_notint'),
550             ),
551             'default' => '0',
552             'value'  => '',
553             'separator' => '',
554             'width'  => '10',
555             'maxlength' => '10',
556             'rows'  => '',
557             'cols'  => ''
532ae5 558         ),
L 559         'limit_ftp_user' => array (
7fe908 560             'datatype' => 'INTEGER',
MC 561             'formtype' => 'TEXT',
562             'validators' => array (  0 => array ( 'type' => 'ISINT',
563                     'errmsg'=> 'limit_ftp_user_error_notint'),
564             ),
565             'default' => '0',
566             'value'  => '',
567             'separator' => '',
568             'width'  => '10',
569             'maxlength' => '10',
570             'rows'  => '',
571             'cols'  => ''
532ae5 572         ),
L 573         'limit_shell_user' => array (
7fe908 574             'datatype' => 'INTEGER',
MC 575             'formtype' => 'TEXT',
576             'validators' => array (  0 => array ( 'type' => 'ISINT',
577                     'errmsg'=> 'limit_shell_user_error_notint'),
578             ),
579             'default' => '0',
580             'value'  => '',
581             'separator' => '',
582             'width'  => '10',
583             'maxlength' => '10',
584             'rows'  => '',
585             'cols'  => ''
532ae5 586         ),
b2ea52 587         'ssh_chroot' => array (
7fe908 588             'datatype' => 'VARCHAR',
MC 589             'formtype' => 'CHECKBOXARRAY',
590             'validators' => array (
591                 0 => array (
592                     'type'=> 'NOTEMPTY',
593                     'errmsg'=> 'ssh_chroot_notempty'
594                 ),
5c67f7 595             ),
7fe908 596             'default' => '',
b2ea52 597             'separator' => ',',
T 598             'valuelimit' => 'client:ssh_chroot',
7fe908 599             'value'  => array('no' => 'None', 'jailkit' => 'Jailkit')
b2ea52 600         ),
532ae5 601         'limit_webdav_user' => array (
7fe908 602             'datatype' => 'INTEGER',
MC 603             'formtype' => 'TEXT',
604             'validators' => array (  0 => array ( 'type' => 'ISINT',
605                     'errmsg'=> 'limit_webdav_user_error_notint'),
606             ),
607             'default' => '0',
608             'value'  => '',
609             'separator' => '',
610             'width'  => '10',
611             'maxlength' => '10',
612             'rows'  => '',
613             'cols'  => ''
532ae5 614         ),
f40d19 615         'limit_backup' => array (
D 616             'datatype' => 'VARCHAR',
617             'formtype' => 'CHECKBOX',
62c0e9 618             'default' => 'y',
f40d19 619             'value'  => array(0 => 'n', 1 => 'y')
D 620         ),
67b0cb 621         'limit_directive_snippets' => array (
MB 622             'datatype' => 'VARCHAR',
623             'formtype' => 'CHECKBOX',
624             'default' => 'n',
625             'value'  => array(0 => 'n', 1 => 'y')
ffedcb 626         ),/*
a1db68 627         'default_dnsserver' => array (
SC 628             'datatype' => 'INTEGER',
629             'formtype' => 'SELECT',
630             'default' => '0',
631             'datasource' => array (  'type' => 'CUSTOM',
632                 'class'=> 'custom_datasource',
633                 'function'=> 'client_servers'
634             ),
635             'value'  => array(''),
636             'name'  => 'default_dnsserver'
ffedcb 637         ),*/
532ae5 638         'limit_dns_zone' => array (
7fe908 639             'datatype' => 'INTEGER',
MC 640             'formtype' => 'TEXT',
641             'validators' => array (  0 => array ( 'type' => 'ISINT',
642                     'errmsg'=> 'limit_dns_zone_error_notint'),
643             ),
644             'default' => '0',
645             'value'  => '',
646             'separator' => '',
647             'width'  => '10',
648             'maxlength' => '10',
649             'rows'  => '',
650             'cols'  => ''
a1db68 651         ),
SC 652         'default_slave_dnsserver' => array (
653             'datatype' => 'INTEGER',
654             'formtype' => 'SELECT',
655             'default' => '0',
656             'datasource' => array (  'type' => 'CUSTOM',
657                 'class'=> 'custom_datasource',
658                 'function'=> 'client_servers'
659             ),
660             'value'  => array(''),
661             'name'  => 'default_slave_dnsserver'
532ae5 662         ),
7fe908 663         'limit_dns_slave_zone' => array (
MC 664             'datatype'      => 'INTEGER',
665             'formtype'      => 'TEXT',
666             'validators'    => array (      0 => array (    'type'  => 'ISINT',
667                     'errmsg'=> 'limit_dns_slave_zone_error_notint'),
668             ),
669             'default'       => '0',
670             'value'         => '',
671             'separator'     => '',
672             'width'         => '10',
673             'maxlength'     => '10',
674             'rows'          => '',
675             'cols'          => ''
676         ),
532ae5 677         'limit_dns_record' => array (
7fe908 678             'datatype' => 'INTEGER',
MC 679             'formtype' => 'TEXT',
680             'validators' => array (  0 => array ( 'type' => 'ISINT',
681                     'errmsg'=> 'limit_dns_record_error_notint'),
682             ),
683             'default' => '0',
684             'value'  => '',
685             'separator' => '',
686             'width'  => '10',
687             'maxlength' => '10',
688             'rows'  => '',
689             'cols'  => ''
532ae5 690         ),
L 691         /*
692         'limit_client' => array (
693             'datatype'    => 'INTEGER',
694             'formtype'    => 'TEXT',
695             'validators'    => array (     0 => array (    'type'    => 'ISINT',
696                                                         'errmsg'=> 'limit_client_error_notint'),
697                                     ),
698             'default'    => '0',
699             'value'        => '',
700             'separator'    => '',
701             'width'        => '10',
702             'maxlength'    => '10',
703             'rows'        => '',
704             'cols'        => ''
705         ),
706         */
ffedcb 707         /*
a1db68 708         'default_dbserver' => array (
SC 709             'datatype' => 'INTEGER',
710             'formtype' => 'SELECT',
711             'default' => '0',
712             'datasource' => array (  'type' => 'CUSTOM',
713                 'class'=> 'custom_datasource',
714                 'function'=> 'client_servers'
715             ),
716             'value'  => array(''),
717             'name'  => 'default_dbserver'
ffedcb 718         ),*/
532ae5 719         'limit_database' => array (
7fe908 720             'datatype' => 'INTEGER',
MC 721             'formtype' => 'TEXT',
722             'validators' => array (  0 => array ( 'type' => 'ISINT',
723                     'errmsg'=> 'limit_database_error_notint'),
724             ),
725             'default' => '0',
726             'value'  => '',
727             'separator' => '',
728             'width'  => '10',
729             'maxlength' => '10',
730             'rows'  => '',
731             'cols'  => ''
532ae5 732         ),
7e2a3f 733         'limit_database_user' => array (
FS 734             'datatype' => 'INTEGER',
735             'formtype' => 'TEXT',
736             'validators' => array (  0 => array ( 'type' => 'ISINT',
737                     'errmsg'=> 'limit_database_user_error_notint'),
738             ),
739             'default' => '0',
740             'value'  => '',
741             'separator' => '',
742             'width'  => '10',
743             'maxlength' => '10',
744             'rows'  => '',
745             'cols'  => ''
746         ),
0543b2 747         'limit_database_quota' => array (
F 748             'datatype' => 'INTEGER',
749             'formtype' => 'TEXT',
750             'validators' => array (  0 => array ( 'type' => 'ISINT',
751                     'errmsg'=> 'limit_database_quota_error_notint'),
752             ),
753             'default' => '-1',
754             'value'  => '',
755             'separator' => '',
756             'width'  => '10',
757             'maxlength' => '10',
758             'rows'  => '',
759             'cols'  => ''
760         ),
7fe908 761         'limit_cron' => array (
MC 762             'datatype'  => 'INTEGER',
763             'formtype'  => 'TEXT',
764             'validators'    => array (  0 => array (    'type'  => 'ISINT',
765                     'errmsg'=> 'limit_cron_error_notint'),
766             ),
767             'default'   => '0',
768             'value'     => '',
769             'separator' => '',
770             'width'     => '10',
771             'maxlength' => '10',
772             'rows'      => '',
773             'cols'      => ''
774         ),
775         'limit_cron_type' => array (
776             'datatype'  => 'VARCHAR',
777             'formtype'  => 'SELECT',
778             'default'   => '',
779             'value'     => array('full' => 'Full Cron', 'chrooted' => 'Chrooted Cron', 'url' => 'URL Cron')
780         ),
781         'limit_cron_frequency' => array (
782             'datatype'  => 'INTEGER',
783             'formtype'  => 'TEXT',
784             'validators'    => array (  0 => array (    'type'  => 'ISINT',
785                     'errmsg'=> 'limit_cron_error_frequency'),
786             ),
787             'default'   => '-1',
788             'value'     => '',
789             'separator' => '',
790             'width'     => '10',
791             'maxlength' => '10',
792             'rows'      => '',
793             'cols'      => ''
794         ),
532ae5 795         'limit_traffic_quota' => array (
7fe908 796             'datatype' => 'INTEGER',
MC 797             'formtype' => 'TEXT',
798             'validators' => array (  0 => array ( 'type' => 'ISINT',
799                     'errmsg'=> 'limit_traffic_quota_error_notint'),
800             ),
801             'default' => '-1',
802             'value'  => '',
803             'separator' => '',
804             'width'  => '10',
805             'maxlength' => '10',
806             'rows'  => '',
807             'cols'  => ''
532ae5 808         ),
f414ab 809         'limit_openvz_vm' => array (
7fe908 810             'datatype' => 'INTEGER',
MC 811             'formtype' => 'TEXT',
812             'validators' => array (  0 => array ( 'type' => 'ISINT',
813                     'errmsg'=> 'limit_openvz_vm_error_notint'),
814             ),
815             'default' => '0',
816             'value'  => '',
817             'separator' => '',
818             'width'  => '10',
819             'maxlength' => '10',
820             'rows'  => '',
821             'cols'  => ''
f414ab 822         ),
T 823         'limit_openvz_vm_template_id' => array (
7fe908 824             'datatype' => 'INTEGER',
MC 825             'formtype' => 'SELECT',
826             'default' => '',
827             'datasource' => array (  'type' => 'SQL',
828                 'querystring' => 'SELECT template_id,template_name FROM openvz_template WHERE 1 ORDER BY template_name',
829                 'keyfield'=> 'template_id',
830                 'valuefield'=> 'template_name'
831             ),
832             'value'  => array(0 => ' ')
f414ab 833         ),
526b99 834         'limit_aps' => array (
7fe908 835             'datatype' => 'INTEGER',
MC 836             'formtype' => 'TEXT',
837             'validators' => array (  0 => array ( 'type' => 'ISINT',
838                     'errmsg'=> 'limit_aps_error_notint'),
839             ),
840             'default' => '-1',
841             'value'  => '',
842             'separator' => '',
843             'width'  => '10',
844             'maxlength' => '10',
845             'rows'  => '',
846             'cols'  => ''
526b99 847         ),
7fe908 848         //#################################
MC 849         // END Datatable fields
850         //#################################
532ae5 851     )
L 852 );
853
854 ?>