Marius Cramer
2015-08-03 6360fdf4712c3786526a74db3c02852ff3f21d53
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).
b1a6a5 32
4c28d9 33     Search:
F 34     - searchable = 1 or searchable = 2 include the field in the search
35     - searchable = 1: this field will be the title of the search result
36     - searchable = 2: this field will be included in the description of the search result
532ae5 37
L 38
39 */
40
b1a6a5 41 $form["title"]   = "Client";
222ea2 42 $form["description"]    = "";
b1a6a5 43 $form["name"]   = "client";
MC 44 $form["action"]  = "client_edit.php";
45 $form["db_table"] = "client";
46 $form["db_table_idx"] = "client_id";
47 $form["db_history"] = "yes";
48 $form["tab_default"] = "address";
49 $form["list_default"] = "client_list.php";
50 $form["auth"]  = 'yes';
532ae5 51
L 52 $form["auth_preset"]["userid"]  = 0; // 0 = id of the user, > 0 id must match with id of current user
53 $form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
54 $form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
55 $form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
56 $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
57
58 //* Languages
59 $language_list = array();
60 $handle = @opendir(ISPC_ROOT_PATH.'/lib/lang');
b1a6a5 61 while ($file = @readdir($handle)) {
MC 62     if ($file != '.' && $file != '..') {
63         if(@is_file(ISPC_ROOT_PATH.'/lib/lang/'.$file) and substr($file, -4, 4) == '.lng') {
532ae5 64             $tmp = substr($file, 0, 2);
L 65             $language_list[$tmp] = $tmp;
b1a6a5 66         }
532ae5 67     }
L 68 }
69
70 //* Load themes
71 $themes_list = array();
b1a6a5 72 $handle = @opendir(ISPC_THEMES_PATH);
MC 73 while ($file = @readdir($handle)) {
74     if (substr($file, 0, 1) != '.') {
75         if(@is_dir(ISPC_THEMES_PATH."/$file")) {
4bd960 76             if(!file_exists(ISPC_THEMES_PATH."/$file/ispconfig_version") || (@file_exists(ISPC_THEMES_PATH."/$file/ispconfig_version") && trim(@file_get_contents(ISPC_THEMES_PATH."/$file/ispconfig_version")) == ISPC_APP_VERSION)) {
b1a6a5 77                 $themes_list[$file] = $file;
MC 78             }
79         }
532ae5 80     }
L 81 }
82
83 $form["tabs"]['address'] = array (
b1a6a5 84     'title'  => "Address",
MC 85     'width'  => 100,
86     'template'  => "templates/client_edit_address.htm",
87     'fields'  => array (
88         //#################################
89         // Begin Datatable fields
90         //#################################
532ae5 91         'company_name' => array (
b1a6a5 92             'datatype' => 'VARCHAR',
MC 93             'formtype' => 'TEXT',
94             'default' => '',
95             'value'  => '',
96             'separator' => '',
97             'width'  => '30',
98             'maxlength' => '255',
99             'rows'  => '',
100             'cols'  => '',
4c28d9 101             'searchable' => 2
532ae5 102         ),
7b47c0 103         'gender' => array (
b1a6a5 104             'datatype' => 'VARCHAR',
MC 105             'formtype' => 'SELECT',
106             'default' => '',
107             'value'  => array('' => '', 'm' => 'gender_m_txt', 'f' => 'gender_f_txt')
7b47c0 108         ),
e3133e 109         'contact_firstname' => array (
TB 110             'datatype' => 'VARCHAR',
111             'formtype' => 'TEXT',
112             'default' => '',
113             'value'  => '',
114             'separator' => '',
115             'width'  => '30',
116             'maxlength' => '255',
117             'rows'  => '',
118             'cols'  => '',
61f1f5 119             'searchable' => 1,
MC 120             'filters'   => array( 0 => array( 'event' => 'SAVE',
121                                                 'type' => 'TRIM'),
122             ),
e3133e 123         ),
532ae5 124         'contact_name' => array (
b1a6a5 125             'datatype' => 'VARCHAR',
MC 126             'formtype' => 'TEXT',
127             'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
128                     'errmsg'=> 'contact_error_empty'),
129             ),
130             'default' => '',
131             'value'  => '',
132             'separator' => '',
133             'width'  => '30',
134             'maxlength' => '255',
135             'rows'  => '',
136             'cols'  => '',
61f1f5 137             'searchable' => 1,
MC 138             'filters'   => array( 0 => array( 'event' => 'SAVE',
139                                                 'type' => 'TRIM'),
140             ),
532ae5 141         ),
L 142         'customer_no' => array (
b1a6a5 143             'datatype' => 'VARCHAR',
MC 144             'formtype' => 'TEXT',
145             'validators' => array (  0 => array ( 'type' => 'UNIQUE',
146                     'errmsg'=> 'customer_no_error_unique',
147                     'allowempty' => 'y'),
148             ),
149             'default' => '',
150             'value'  => '',
151             'separator' => '',
152             'width'  => '30',
153             'maxlength' => '255',
154             'rows'  => '',
155             'cols'  => '',
4c28d9 156             'searchable' => 2
532ae5 157         ),
L 158         'username' => array (
b1a6a5 159             'datatype' => 'VARCHAR',
MC 160             'formtype' => 'TEXT',
161             'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
162                     'errmsg'=> 'username_error_empty'),
163                 1 => array ( 'type' => 'CUSTOM',
164                     'class' => 'validate_client',
165                     'function' => 'username_unique',
166                     'errmsg'=> 'username_error_unique'),
167                 2 => array ( 'type' => 'CUSTOM',
168                     'class' => 'validate_client',
169                     'function' => 'username_collision',
170                     'errmsg'=> 'username_error_collision'),
171                 3 => array ( 'type' => 'REGEX',
172                     'regex' => '/^[\w\.\-\_]{0,64}$/',
173                     'errmsg'=> 'username_error_regex'),
174             ),
175             'default' => '',
176             'value'  => '',
177             'separator' => '',
178             'width'  => '30',
179             'maxlength' => '255',
180             'rows'  => '',
181             'cols'  => '',
4c28d9 182             'searchable' => 2
532ae5 183         ),
L 184         'password' => array (
b1a6a5 185             'datatype' => 'VARCHAR',
MC 186             'formtype' => 'PASSWORD',
7b9388 187             'validators' => array(
MC 188                 0 => array(
189                     'type' => 'CUSTOM',
190                     'class' => 'validate_password',
191                     'function' => 'password_check',
192                     'errmsg' => 'weak_password_txt'
193                 )
194             ),
532ae5 195             'encryption'=> 'CRYPT',
b1a6a5 196             'default' => '',
MC 197             'value'  => '',
198             'separator' => '',
199             'width'  => '30',
200             'maxlength' => '255',
201             'rows'  => '',
202             'cols'  => ''
532ae5 203         ),
L 204         'language' => array (
b1a6a5 205             'datatype' => 'VARCHAR',
MC 206             'formtype' => 'SELECT',
207             'default' => $conf["language"],
208             'value'  => $language_list,
209             'separator' => '',
210             'width'  => '30',
211             'maxlength' => '255',
212             'rows'  => '',
213             'cols'  => ''
532ae5 214         ),
L 215         'usertheme' => array (
b1a6a5 216             'datatype' => 'VARCHAR',
MC 217             'formtype' => 'SELECT',
218             'default' => $conf["theme"],
219             'value'  => $themes_list,
220             'separator' => '',
221             'width'  => '30',
222             'maxlength' => '255',
223             'rows'  => '',
224             'cols'  => ''
532ae5 225         ),
L 226         'street' => array (
b1a6a5 227             'datatype' => 'VARCHAR',
MC 228             'formtype' => 'TEXT',
229             'default' => '',
230             'value'  => '',
231             'separator' => '',
232             'width'  => '30',
233             'maxlength' => '255',
234             'rows'  => '',
235             'cols'  => '',
4c28d9 236             'searchable' => 2
532ae5 237         ),
L 238         'zip' => array (
b1a6a5 239             'datatype' => 'VARCHAR',
MC 240             'formtype' => 'TEXT',
241             'default' => '',
242             'value'  => '',
243             'separator' => '',
244             'width'  => '10',
245             'maxlength' => '255',
246             'rows'  => '',
247             'cols'  => '',
4c28d9 248             'searchable' => 2
532ae5 249         ),
L 250         'city' => array (
b1a6a5 251             'datatype' => 'VARCHAR',
MC 252             'formtype' => 'TEXT',
253             'default' => '',
254             'value'  => '',
255             'separator' => '',
256             'width'  => '30',
257             'maxlength' => '255',
258             'rows'  => '',
259             'cols'  => '',
4c28d9 260             'searchable' => 2
532ae5 261         ),
L 262         'state' => array (
b1a6a5 263             'datatype' => 'VARCHAR',
MC 264             'formtype' => 'TEXT',
265             'default' => '',
266             'value'  => '',
267             'separator' => '',
268             'width'  => '30',
269             'maxlength' => '255',
270             'rows'  => '',
271             'cols'  => '',
4c28d9 272             'searchable' => 2
532ae5 273         ),
L 274         'country' => array (
b1a6a5 275             'datatype' => 'VARCHAR',
MC 276             'formtype' => 'SELECT',
277             'default' => (isset($conf['language']) ? strtoupper($conf['language']) : ''),
278             'datasource' => array (  'type'          => 'SQL',
fddd90 279                 'querystring'   => 'SELECT iso,printable_name FROM country ORDER BY printable_name ASC',
b1a6a5 280                 'keyfield'      => 'iso',
MC 281                 'valuefield'    => 'printable_name'
282             ),
283             'value'  => ''
532ae5 284         ),
L 285         'telephone' => array (
b1a6a5 286             'datatype' => 'VARCHAR',
MC 287             'formtype' => 'TEXT',
288             'default' => '',
289             'value'  => '',
290             'separator' => '',
291             'width'  => '30',
292             'maxlength' => '255',
293             'rows'  => '',
294             'cols'  => '',
4c28d9 295             'searchable' => 2
532ae5 296         ),
L 297         'mobile' => array (
b1a6a5 298             'datatype' => 'VARCHAR',
MC 299             'formtype' => 'TEXT',
300             'default' => '',
301             'value'  => '',
302             'separator' => '',
303             'width'  => '30',
304             'maxlength' => '255',
305             'rows'  => '',
306             'cols'  => '',
4c28d9 307             'searchable' => 2
532ae5 308         ),
L 309         'fax' => array (
b1a6a5 310             'datatype' => 'VARCHAR',
MC 311             'formtype' => 'TEXT',
312             'default' => '',
313             'value'  => '',
314             'separator' => '',
315             'width'  => '30',
316             'maxlength' => '255',
317             'rows'  => '',
318             'cols'  => '',
4c28d9 319             'searchable' => 2
532ae5 320         ),
L 321         'email' => array (
b1a6a5 322             'datatype' => 'VARCHAR',
MC 323             'formtype' => 'TEXT',
324             'filters'   => array( 0 => array( 'event' => 'SAVE',
325                     'type' => 'IDNTOASCII'),
326                 1 => array( 'event' => 'SHOW',
327                     'type' => 'IDNTOUTF8'),
328                 2 => array( 'event' => 'SAVE',
329                     'type' => 'TOLOWER')
330             ),
4039c8 331             'validators' => array (  
FS 332                 0 => array ( 'type' => 'REGEX',
b1a6a5 333                     'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}$/i',
MC 334                     'errmsg'=> 'email_error_isemail'),
4039c8 335                 1 => array ( 'type' => 'NOTEMPTY',
FS 336                     'errmsg'=> 'email_error_empty'),
b1a6a5 337             ),
MC 338             'default' => '',
339             'value'  => '',
340             'separator' => '',
341             'width'  => '30',
342             'maxlength' => '255',
343             'rows'  => '',
344             'cols'  => '',
4c28d9 345             'searchable' => 2
532ae5 346         ),
L 347         'internet' => array (
b1a6a5 348             'datatype' => 'VARCHAR',
MC 349             'formtype' => 'TEXT',
350             'default' => 'http://',
351             'value'  => '',
352             'separator' => '',
353             'width'  => '30',
354             'maxlength' => '255',
355             'rows'  => '',
356             'cols'  => '',
4c28d9 357             'searchable' => 2
532ae5 358         ),
L 359         'icq' => array (
b1a6a5 360             'datatype' => 'VARCHAR',
MC 361             'formtype' => 'TEXT',
362             'default' => '',
363             'value'  => '',
364             'separator' => '',
365             'width'  => '30',
366             'maxlength' => '255',
367             'rows'  => '',
368             'cols'  => ''
532ae5 369         ),
L 370         'vat_id' => array (
b1a6a5 371             'datatype' => 'VARCHAR',
MC 372             'formtype' => 'TEXT',
373             'default' => '',
374             'value'  => '',
375             'separator' => '',
376             'width'  => '30',
377             'maxlength' => '255',
378             'rows'  => '',
12e147 379             'cols'  => '',
FT 380             'validators' => array (  0 => array ( 'type' => 'CUSTOM',
381                     'class' => 'validate_client',
382                     'function' => 'check_vat_id',
383                     'errmsg'=> 'invalid_vat_id'),
6360fd 384             ),
MC 385             'filters'   => array( 0 => array(     'event' => 'SAVE',
386                                                 'type' => 'TRIM'),
387                                 1 => array(     'event' => 'SAVE',
388                                                 'type' => 'TOUPPER')
389             ),
532ae5 390         ),
L 391         'company_id' => array (
b1a6a5 392             'datatype' => 'VARCHAR',
MC 393             'formtype' => 'TEXT',
394             'default' => '',
395             'value'  => '',
396             'separator' => '',
397             'width'  => '30',
398             'maxlength' => '255',
399             'rows'  => '',
400             'cols'  => ''
532ae5 401         ),
8d0c35 402         'bank_account_owner' => array (
b1a6a5 403             'datatype' => 'VARCHAR',
MC 404             'formtype' => 'TEXT',
405             'default' => '',
406             'value'  => '',
407             'separator' => '',
408             'width'  => '30',
409             'maxlength' => '255',
410             'rows'  => '',
411             'cols'  => ''
8d0c35 412         ),
7ad91f 413         'bank_account_number' => array (
b1a6a5 414             'datatype' => 'VARCHAR',
MC 415             'formtype' => 'TEXT',
416             'default' => '',
417             'value'  => '',
418             'separator' => '',
419             'width'  => '30',
420             'maxlength' => '255',
421             'rows'  => '',
422             'cols'  => ''
7ad91f 423         ),
F 424         'bank_code' => array (
b1a6a5 425             'datatype' => 'VARCHAR',
MC 426             'formtype' => 'TEXT',
427             'default' => '',
428             'value'  => '',
429             'separator' => '',
430             'width'  => '30',
431             'maxlength' => '255',
432             'rows'  => '',
433             'cols'  => ''
7ad91f 434         ),
F 435         'bank_name' => array (
b1a6a5 436             'datatype' => 'VARCHAR',
MC 437             'formtype' => 'TEXT',
438             'default' => '',
439             'value'  => '',
440             'separator' => '',
441             'width'  => '30',
442             'maxlength' => '255',
443             'rows'  => '',
444             'cols'  => ''
7ad91f 445         ),
F 446         'bank_account_iban' => array (
b1a6a5 447             'datatype' => 'VARCHAR',
MC 448             'formtype' => 'TEXT',
449             'default' => '',
450             'value'  => '',
451             'separator' => '',
452             'width'  => '30',
453             'maxlength' => '255',
454             'rows'  => '',
6360fd 455             'cols'  => '',
MC 456             'filters'   => array( 0 => array(     'event' => 'SAVE',
457                                                 'type' => 'TRIM'),
458                                 1 => array(     'event' => 'SAVE',
459                                                 'type' => 'TOUPPER')
460             ),
7ad91f 461         ),
F 462         'bank_account_swift' => array (
b1a6a5 463             'datatype' => 'VARCHAR',
MC 464             'formtype' => 'TEXT',
465             'default' => '',
466             'value'  => '',
467             'separator' => '',
468             'width'  => '30',
469             'maxlength' => '255',
470             'rows'  => '',
6360fd 471             'cols'  => '',
MC 472             'filters'   => array( 0 => array(     'event' => 'SAVE',
473                                                 'type' => 'TRIM'),
474                                 1 => array(     'event' => 'SAVE',
475                                                 'type' => 'TOUPPER')
476             ),
7ad91f 477         ),
532ae5 478         'notes' => array (
b1a6a5 479             'datatype' => 'TEXT',
MC 480             'formtype' => 'TEXTAREA',
481             'default' => '',
482             'value'  => '',
483             'separator' => '',
484             'width'  => '',
485             'maxlength' => '',
486             'rows'  => '10',
487             'cols'  => '30'
532ae5 488         ),
bfcdef 489         'paypal_email' => array (
b1a6a5 490             'datatype' => 'VARCHAR',
MC 491             'formtype' => 'TEXT',
492             'filters'   => array( 0 => array( 'event' => 'SAVE',
493                     'type' => 'IDNTOASCII'),
494                 1 => array( 'event' => 'SHOW',
495                     'type' => 'IDNTOUTF8'),
496                 2 => array( 'event' => 'SAVE',
497                     'type' => 'TOLOWER')
498             ),
499             'validators' => array (  0 => array ( 'type' => 'REGEX',
500                     'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}$/i',
501                     'errmsg'=> 'paypal_email_error_isemail'),
502             ),
503             'default' => '',
504             'value'  => '',
505             'separator' => '',
506             'width'  => '30',
507             'maxlength' => '255',
508             'rows'  => '',
509             'cols'  => '',
bfcdef 510             'searchable' => 2
T 511         ),
7b47c0 512         'locked' => array (
b1a6a5 513             'datatype' => 'VARCHAR',
MC 514             'formtype' => 'CHECKBOX',
515             'default' => 'n',
516             'value'  => array(0 => 'n', 1 => 'y')
7b47c0 517         ),
T 518         'canceled' => array (
b1a6a5 519             'datatype' => 'VARCHAR',
MC 520             'formtype' => 'CHECKBOX',
521             'default' => 'n',
522             'value'  => array(0 => 'n', 1 => 'y')
7b47c0 523         ),
3d96c5 524         'added_date' => array (
TB 525             'datatype'    => 'DATE',
526             'formtype'    => 'TEXT',
527             'default'    => date($app->lng('conf_format_dateshort')),
528             'value'        => '',
529             'separator'    => '',
530             'width'        => '15',
531             'maxlength'    => '15',
532             'rows'        => '',
533             'cols'        => ''
534         ),
535         'added_by' => array (
536             'datatype' => 'VARCHAR',
537             'formtype' => 'TEXT',
538             'default' => $_SESSION['s']['user']['username'],
539             'value'  => '',
540             'separator' => '',
541             'width'  => '30',
542             'maxlength' => '255',
543             'rows'  => '',
544             'cols'  => ''
545         ),
b1a6a5 546         //#################################
MC 547         // END Datatable fields
548         //#################################
532ae5 549     )
L 550 );
551
552 $form["tabs"]['limits'] = array (
b1a6a5 553     'title'  => "Limits",
MC 554     'width'  => 80,
555     'template'  => "templates/client_edit_limits.htm",
556     'fields'  => array (
557         //#################################
558         // Begin Datatable fields
559         //#################################
532ae5 560         'template_master' => array (
b1a6a5 561             'datatype' => 'INTEGER',
MC 562             'formtype' => 'SELECT',
563             'default' => '1',
564             'datasource' => array (  'type' => 'CUSTOM',
565                 'class'=> 'custom_datasource',
566                 'function'=> 'master_templates'
567             ),
568             'value'  => ''
532ae5 569         ),
L 570         'template_additional' => array (
b1a6a5 571             'datatype' => 'VARCHAR',
MC 572             'formtype' => 'TEXT',
532ae5 573         ),
L 574         'default_mailserver' => array (
b1a6a5 575             'datatype' => 'INTEGER',
MC 576             'formtype' => 'SELECT',
577             'default' => '1',
578             'datasource' => array (  'type' => 'CUSTOM',
579                 'class'=> 'custom_datasource',
580                 'function'=> 'client_servers'
581             ),
582             'value'  => '',
583             'name'  => 'default_mailserver'
532ae5 584         ),
bd6659 585         'mail_servers' => array (
015dff 586             'datatype' => 'VARCHAR',
MC 587             'formtype' => 'MULTIPLE',
bd6659 588             'separator' => ',',
015dff 589             'default' => '1',
MC 590             'datasource' => array (  'type' => 'CUSTOM',
591                 'class'=> 'custom_datasource',
592                 'function'=> 'client_servers'
593             ),
bd6659 594             'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
015dff 595                     'errmsg'=> 'no_mail_server_error'),
MC 596                 1 => array ( 'type' => 'CUSTOM',
597                     'class' => 'validate_client',
598                     'function' => 'check_used_servers',
599                     'errmsg'=> 'mail_servers_used'),
600             ),
601             'value'  => '',
602             'name'  => 'mail_servers'
bd6659 603         ),
532ae5 604         'limit_maildomain' => array (
b1a6a5 605             'datatype' => 'INTEGER',
MC 606             'formtype' => 'TEXT',
607             'validators' => array (  0 => array ( 'type' => 'ISINT',
608                     'errmsg'=> 'limit_maildomain_error_notint'),
609             ),
610             'default' => '-1',
611             'value'  => '',
612             'separator' => '',
613             'width'  => '10',
614             'maxlength' => '10',
615             'rows'  => '',
616             'cols'  => ''
532ae5 617         ),
L 618         'limit_mailbox' => array (
b1a6a5 619             'datatype' => 'INTEGER',
MC 620             'formtype' => 'TEXT',
621             'validators' => array (  0 => array ( 'type' => 'ISINT',
622                     'errmsg'=> 'limit_mailbox_error_notint'),
623             ),
624             'default' => '-1',
625             'value'  => '',
626             'separator' => '',
627             'width'  => '10',
628             'maxlength' => '10',
629             'rows'  => '',
630             'cols'  => ''
532ae5 631         ),
L 632         'limit_mailalias' => array (
b1a6a5 633             'datatype' => 'INTEGER',
MC 634             'formtype' => 'TEXT',
635             'validators' => array (  0 => array ( 'type' => 'ISINT',
636                     'errmsg'=> 'limit_mailalias_error_notint'),
637             ),
638             'default' => '-1',
639             'value'  => '',
640             'separator' => '',
641             'width'  => '10',
642             'maxlength' => '10',
643             'rows'  => '',
644             'cols'  => ''
532ae5 645         ),
L 646         'limit_mailaliasdomain' => array (
b1a6a5 647             'datatype' => 'INTEGER',
MC 648             'formtype' => 'TEXT',
649             'validators' => array (  0 => array ( 'type' => 'ISINT',
650                     'errmsg'=> 'limit_mailaliasdomain_error_notint'),
651             ),
652             'default' => '-1',
653             'value'  => '',
654             'separator' => '',
655             'width'  => '10',
656             'maxlength' => '10',
657             'rows'  => '',
658             'cols'  => ''
532ae5 659         ),
L 660         'limit_mailmailinglist' => array (
b1a6a5 661             'datatype' => 'INTEGER',
MC 662             'formtype' => 'TEXT',
663             'validators' => array (  0 => array ( 'type' => 'ISINT',
664                     'errmsg'=> 'limit_mailmailinglist_error_notint'),
665             ),
666             'default' => '-1',
667             'value'  => '',
668             'separator' => '',
669             'width'  => '10',
670             'maxlength' => '10',
671             'rows'  => '',
672             'cols'  => ''
532ae5 673         ),
L 674         'limit_mailforward' => array (
b1a6a5 675             'datatype' => 'INTEGER',
MC 676             'formtype' => 'TEXT',
677             'validators' => array (  0 => array ( 'type' => 'ISINT',
678                     'errmsg'=> 'limit_mailforward_error_notint'),
679             ),
680             'default' => '-1',
681             'value'  => '',
682             'separator' => '',
683             'width'  => '10',
684             'maxlength' => '10',
685             'rows'  => '',
686             'cols'  => ''
532ae5 687         ),
L 688         'limit_mailcatchall' => array (
b1a6a5 689             'datatype' => 'INTEGER',
MC 690             'formtype' => 'TEXT',
691             'validators' => array (  0 => array ( 'type' => 'ISINT',
692                     'errmsg'=> 'limit_mailcatchall_error_notint'),
693             ),
694             'default' => '-1',
695             'value'  => '',
696             'separator' => '',
697             'width'  => '10',
698             'maxlength' => '10',
699             'rows'  => '',
700             'cols'  => ''
532ae5 701         ),
L 702         'limit_mailrouting' => array (
b1a6a5 703             'datatype' => 'INTEGER',
MC 704             'formtype' => 'TEXT',
705             'validators' => array (  0 => array ( 'type' => 'ISINT',
706                     'errmsg'=> 'limit_mailrouting_error_notint'),
707             ),
708             'default' => '0',
709             'value'  => '',
710             'separator' => '',
711             'width'  => '10',
712             'maxlength' => '10',
713             'rows'  => '',
714             'cols'  => ''
532ae5 715         ),
L 716         'limit_mailfilter' => array (
b1a6a5 717             'datatype' => 'INTEGER',
MC 718             'formtype' => 'TEXT',
719             'validators' => array (  0 => array ( 'type' => 'ISINT',
720                     'errmsg'=> 'limit_mailfilter_error_notint'),
721             ),
722             'default' => '-1',
723             'value'  => '',
724             'separator' => '',
725             'width'  => '10',
726             'maxlength' => '10',
727             'rows'  => '',
728             'cols'  => ''
532ae5 729         ),
L 730         'limit_fetchmail' => array (
b1a6a5 731             'datatype' => 'INTEGER',
MC 732             'formtype' => 'TEXT',
733             'validators' => array (  0 => array ( 'type' => 'ISINT',
734                     'errmsg'=> 'limit_mailfetchmail_error_notint'),
735             ),
736             'default' => '-1',
737             'value'  => '',
738             'separator' => '',
739             'width'  => '10',
740             'maxlength' => '10',
741             'rows'  => '',
742             'cols'  => ''
532ae5 743         ),
L 744         'limit_mailquota' => array (
b1a6a5 745             'datatype' => 'INTEGER',
MC 746             'formtype' => 'TEXT',
747             'validators' => array (  0 => array ( 'type' => 'ISINT',
748                     'errmsg'=> 'limit_mailquota_error_notint'),
749             ),
750             'default' => '-1',
751             'value'  => '',
752             'separator' => '',
753             'width'  => '10',
754             'maxlength' => '10',
755             'rows'  => '',
756             'cols'  => ''
532ae5 757         ),
L 758         'limit_spamfilter_wblist' => array (
b1a6a5 759             'datatype' => 'INTEGER',
MC 760             'formtype' => 'TEXT',
761             'validators' => array (  0 => array ( 'type' => 'ISINT',
762                     'errmsg'=> 'limit_spamfilter_wblist_error_notint'),
763             ),
764             'default' => '-1',
765             'value'  => '',
766             'separator' => '',
767             'width'  => '10',
768             'maxlength' => '10',
769             'rows'  => '',
770             'cols'  => ''
532ae5 771         ),
L 772         'limit_spamfilter_user' => array (
b1a6a5 773             'datatype' => 'INTEGER',
MC 774             'formtype' => 'TEXT',
775             'validators' => array (  0 => array ( 'type' => 'ISINT',
776                     'errmsg'=> 'limit_spamfilter_user_error_notint'),
777             ),
778             'default' => '-1',
779             'value'  => '',
780             'separator' => '',
781             'width'  => '10',
782             'maxlength' => '10',
783             'rows'  => '',
784             'cols'  => ''
532ae5 785         ),
L 786         'limit_spamfilter_policy' => array (
b1a6a5 787             'datatype' => 'INTEGER',
MC 788             'formtype' => 'TEXT',
789             'validators' => array (  0 => array ( 'type' => 'ISINT',
790                     'errmsg'=> 'limit_spamfilter_policy_error_notint'),
791             ),
792             'default' => '-1',
793             'value'  => '',
794             'separator' => '',
795             'width'  => '10',
796             'maxlength' => '10',
797             'rows'  => '',
798             'cols'  => ''
532ae5 799         ),
a7d804 800         'default_xmppserver' => array (
MF 801             'datatype' => 'INTEGER',
802             'formtype' => 'SELECT',
803             'default' => '1',
804             'datasource' => array (  'type' => 'CUSTOM',
805                 'class'=> 'custom_datasource',
806                 'function'=> 'client_servers'
807             ),
808             'value'  => '',
809             'name'  => 'default_xmppserver'
810         ),
9f94a1 811         'xmpp_servers' => array (
MF 812             'datatype' => 'VARCHAR',
813             'formtype' => 'MULTIPLE',
814             'separator' => ',',
815             'default' => '1',
816             'datasource' => array (  'type' => 'CUSTOM',
817                 'class'=> 'custom_datasource',
818                 'function'=> 'client_servers'
819             ),
36c8a2 820             'validators'    => array (
MF 821                 0 => array ( 'type' => 'CUSTOM',
9f94a1 822                     'class' => 'validate_client',
MF 823                     'function' => 'check_used_servers',
824                     'errmsg'=> 'xmpp_servers_used'),
825             ),
826             'value'  => '',
827             'name'  => 'xmpp_servers'
828         ),
829         'limit_xmpp_domain' => array(
830             'datatype' => 'INTEGER',
831             'formtype' => 'TEXT',
832             'validators' => array (  0 => array ( 'type' => 'ISINT',
833                 'errmsg'=> 'limit_xmpp_domain_error_notint'),
834             ),
835             'default' => '-1',
836             'value'  => '',
837             'separator' => '',
838             'width'  => '10',
839             'maxlength' => '10',
840             'rows'  => '',
841             'cols'  => ''
842         ),
843         'limit_xmpp_user' => array(
844             'datatype' => 'INTEGER',
845             'formtype' => 'TEXT',
846             'validators' => array (  0 => array ( 'type' => 'ISINT',
847                 'errmsg'=> 'limit_xmpp_user_error_notint'),
848             ),
849             'default' => '-1',
850             'value'  => '',
851             'separator' => '',
852             'width'  => '10',
853             'maxlength' => '10',
854             'rows'  => '',
855             'cols'  => ''
856         ),
857         'limit_xmpp_muc' => array(
858             'datatype' => 'VARCHAR',
859             'formtype' => 'CHECKBOX',
860             'default' => 'n',
861             'value'  => array(0 => 'n', 1 => 'y')
862         ),
863         'limit_xmpp_anon' => array(
864             'datatype' => 'VARCHAR',
865             'formtype' => 'CHECKBOX',
866             'default' => 'n',
867             'value'  => array(0 => 'n', 1 => 'y')
868         ),
869         'limit_xmpp_vjud' => array(
870             'datatype' => 'VARCHAR',
871             'formtype' => 'CHECKBOX',
872             'default' => 'n',
873             'value'  => array(0 => 'n', 1 => 'y')
874         ),
875         'limit_xmpp_proxy' => array(
876             'datatype' => 'VARCHAR',
877             'formtype' => 'CHECKBOX',
878             'default' => 'n',
879             'value'  => array(0 => 'n', 1 => 'y')
880         ),
881         'limit_xmpp_status' => array(
882             'datatype' => 'VARCHAR',
883             'formtype' => 'CHECKBOX',
884             'default' => 'n',
885             'value'  => array(0 => 'n', 1 => 'y')
886         ),
887         'limit_xmpp_pastebin' => array(
888             'datatype' => 'VARCHAR',
889             'formtype' => 'CHECKBOX',
890             'default' => 'n',
891             'value'  => array(0 => 'n', 1 => 'y')
892         ),
893         'limit_xmpp_httparchive' => array(
894             'datatype' => 'VARCHAR',
895             'formtype' => 'CHECKBOX',
896             'default' => 'n',
897             'value'  => array(0 => 'n', 1 => 'y')
898         ),
532ae5 899         'default_webserver' => array (
b1a6a5 900             'datatype' => 'INTEGER',
MC 901             'formtype' => 'SELECT',
902             'default' => '1',
903             'datasource' => array (  'type' => 'CUSTOM',
904                 'class'=> 'custom_datasource',
905                 'function'=> 'client_servers'
906             ),
907             'value'  => '',
908             'name'  => 'default_webserver'
532ae5 909         ),
bd6659 910         'web_servers' => array (
015dff 911             'datatype' => 'VARCHAR',
MC 912             'formtype' => 'MULTIPLE',
bd6659 913             'separator' => ',',
015dff 914             'default' => '1',
MC 915             'datasource' => array (  'type' => 'CUSTOM',
916                 'class'=> 'custom_datasource',
917                 'function'=> 'client_servers'
918             ),
bd6659 919             'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
015dff 920                     'errmsg'=> 'no_web_server_error'),
MC 921                 1 => array ( 'type' => 'CUSTOM',
922                     'class' => 'validate_client',
923                     'function' => 'check_used_servers',
924                     'errmsg'=> 'web_servers_used'),
925             ),
926             'value'  => '',
927             'name'  => 'web_servers'
bd6659 928         ),
532ae5 929         'limit_web_domain' => array (
b1a6a5 930             'datatype' => 'INTEGER',
MC 931             'formtype' => 'TEXT',
932             'validators' => array (  0 => array ( 'type' => 'ISINT',
933                     'errmsg'=> 'limit_web_domain_error_notint'),
934             ),
935             'default' => '-1',
936             'value'  => '',
937             'separator' => '',
938             'width'  => '10',
939             'maxlength' => '10',
940             'rows'  => '',
941             'cols'  => ''
532ae5 942         ),
L 943         'limit_web_quota' => array (
b1a6a5 944             'datatype' => 'INTEGER',
MC 945             'formtype' => 'TEXT',
946             'validators' => array (  0 => array ( 'type' => 'ISINT',
947                     'errmsg'=> 'limit_web_quota_error_notint'),
948             ),
949             'default' => '-1',
950             'value'  => '',
951             'separator' => '',
952             'width'  => '10',
953             'maxlength' => '10',
954             'rows'  => '',
955             'cols'  => ''
532ae5 956         ),
L 957         'web_php_options' => array (
b1a6a5 958             'datatype' => 'VARCHAR',
MC 959             'formtype' => 'CHECKBOXARRAY',
960             'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
961                     'errmsg'=> 'web_php_options_notempty'),
962             ),
963             'default' => '',
532ae5 964             'separator' => ',',
L 965             'valuelimit' => 'client:web_php_options',
1c6da3 966             'value'  => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM', 'hhvm' => 'HHVM')
532ae5 967         ),
ac099e 968         'limit_cgi' => array (
b1a6a5 969             'datatype' => 'VARCHAR',
MC 970             'formtype' => 'CHECKBOX',
971             'default' => 'n',
972             'value'  => array(0 => 'n', 1 => 'y')
ac099e 973         ),
M 974         'limit_ssi' => array (
b1a6a5 975             'datatype' => 'VARCHAR',
MC 976             'formtype' => 'CHECKBOX',
977             'default' => 'n',
978             'value'  => array(0 => 'n', 1 => 'y')
ac099e 979         ),
M 980         'limit_perl' => array (
b1a6a5 981             'datatype' => 'VARCHAR',
MC 982             'formtype' => 'CHECKBOX',
983             'default' => 'n',
984             'value'  => array(0 => 'n', 1 => 'y')
ac099e 985         ),
M 986         'limit_ruby' => array (
b1a6a5 987             'datatype' => 'VARCHAR',
MC 988             'formtype' => 'CHECKBOX',
989             'default' => 'n',
990             'value'  => array(0 => 'n', 1 => 'y')
ac099e 991         ),
M 992         'limit_python' => array (
b1a6a5 993             'datatype' => 'VARCHAR',
MC 994             'formtype' => 'CHECKBOX',
995             'default' => 'n',
996             'value'  => array(0 => 'n', 1 => 'y')
ac099e 997         ),
M 998         'force_suexec' => array (
b1a6a5 999             'datatype' => 'VARCHAR',
MC 1000             'formtype' => 'CHECKBOX',
1001             'default' => 'y',
1002             'value'  => array(0 => 'n', 1 => 'y')
ac099e 1003         ),
M 1004         'limit_hterror' => array (
b1a6a5 1005             'datatype' => 'VARCHAR',
MC 1006             'formtype' => 'CHECKBOX',
1007             'default' => 'n',
1008             'value'  => array(0 => 'n', 1 => 'y')
ac099e 1009         ),
M 1010         'limit_wildcard' => array (
b1a6a5 1011             'datatype' => 'VARCHAR',
MC 1012             'formtype' => 'CHECKBOX',
1013             'default' => 'n',
1014             'value'  => array(0 => 'n', 1 => 'y')
ac099e 1015         ),
M 1016         'limit_ssl' => array (
b1a6a5 1017             'datatype' => 'VARCHAR',
MC 1018             'formtype' => 'CHECKBOX',
1019             'default' => 'n',
1020             'value'  => array(0 => 'n', 1 => 'y')
ac099e 1021         ),
532ae5 1022         'limit_web_aliasdomain' => array (
b1a6a5 1023             'datatype' => 'INTEGER',
MC 1024             'formtype' => 'TEXT',
1025             'validators' => array (  0 => array ( 'type' => 'ISINT',
1026                     'errmsg'=> 'limit_web_aliasdomain_error_notint'),
1027             ),
1028             'default' => '-1',
1029             'value'  => '',
1030             'separator' => '',
1031             'width'  => '10',
1032             'maxlength' => '10',
1033             'rows'  => '',
1034             'cols'  => ''
532ae5 1035         ),
L 1036         'limit_web_subdomain' => array (
b1a6a5 1037             'datatype' => 'INTEGER',
MC 1038             'formtype' => 'TEXT',
1039             'validators' => array (  0 => array ( 'type' => 'ISINT',
1040                     'errmsg'=> 'limit_web_subdomain_error_notint'),
1041             ),
1042             'default' => '-1',
1043             'value'  => '',
1044             'separator' => '',
1045             'width'  => '10',
1046             'maxlength' => '10',
1047             'rows'  => '',
1048             'cols'  => ''
532ae5 1049         ),
L 1050         'limit_ftp_user' => array (
b1a6a5 1051             'datatype' => 'INTEGER',
MC 1052             'formtype' => 'TEXT',
1053             'validators' => array (  0 => array ( 'type' => 'ISINT',
1054                     'errmsg'=> 'limit_ftp_user_error_notint'),
1055             ),
1056             'default' => '-1',
1057             'value'  => '',
1058             'separator' => '',
1059             'width'  => '10',
1060             'maxlength' => '10',
1061             'rows'  => '',
1062             'cols'  => ''
532ae5 1063         ),
L 1064         'limit_shell_user' => array (
b1a6a5 1065             'datatype' => 'INTEGER',
MC 1066             'formtype' => 'TEXT',
1067             'validators' => array (  0 => array ( 'type' => 'ISINT',
1068                     'errmsg'=> 'limit_shell_user_error_notint'),
1069             ),
1070             'default' => '-1',
1071             'value'  => '',
1072             'separator' => '',
1073             'width'  => '10',
1074             'maxlength' => '10',
1075             'rows'  => '',
1076             'cols'  => ''
532ae5 1077         ),
L 1078         'ssh_chroot' => array (
b1a6a5 1079             'datatype' => 'VARCHAR',
MC 1080             'formtype' => 'CHECKBOXARRAY',
1081             'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
1082                     'errmsg'=> 'ssh_chroot_notempty'),
1083             ),
1084             'default' => '',
532ae5 1085             'separator' => ',',
L 1086             'valuelimit' => 'client:ssh_chroot',
b1a6a5 1087             'value'  => array('no' => 'None', 'jailkit' => 'Jailkit')
532ae5 1088         ),
L 1089         'limit_webdav_user' => array (
b1a6a5 1090             'datatype' => 'INTEGER',
MC 1091             'formtype' => 'TEXT',
1092             'validators' => array (  0 => array ( 'type' => 'ISINT',
1093                     'errmsg'=> 'limit_webdav_user_error_notint'),
1094             ),
1095             'default' => '-1',
1096             'value'  => '',
1097             'separator' => '',
1098             'width'  => '10',
1099             'maxlength' => '10',
1100             'rows'  => '',
1101             'cols'  => ''
532ae5 1102         ),
f40d19 1103         'limit_backup' => array (
D 1104             'datatype' => 'VARCHAR',
1105             'formtype' => 'CHECKBOX',
62c0e9 1106             'default' => 'y',
f40d19 1107             'value'  => array(0 => 'n', 1 => 'y')
D 1108         ),
532ae5 1109         'default_dnsserver' => array (
b1a6a5 1110             'datatype' => 'INTEGER',
MC 1111             'formtype' => 'SELECT',
1112             'default' => '1',
1113             'datasource' => array (  'type' => 'CUSTOM',
1114                 'class'=> 'custom_datasource',
1115                 'function'=> 'client_servers'
1116             ),
1117             'value'  => '',
1118             'name'  => 'default_dnsserver'
532ae5 1119         ),
bd6659 1120         'dns_servers' => array (
015dff 1121             'datatype' => 'VARCHAR',
MC 1122             'formtype' => 'MULTIPLE',
bd6659 1123             'separator' => ',',
015dff 1124             'default' => '1',
MC 1125             'datasource' => array (  'type' => 'CUSTOM',
1126                 'class'=> 'custom_datasource',
1127                 'function'=> 'client_servers'
1128             ),
bd6659 1129             'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
015dff 1130                     'errmsg'=> 'no_dns_server_error'),
MC 1131                 1 => array ( 'type' => 'CUSTOM',
1132                     'class' => 'validate_client',
1133                     'function' => 'check_used_servers',
1134                     'errmsg'=> 'dns_servers_used'),
1135             ),
1136             'value'  => '',
1137             'name'  => 'dns_servers'
bd6659 1138         ),
532ae5 1139         'limit_dns_zone' => array (
b1a6a5 1140             'datatype' => 'INTEGER',
MC 1141             'formtype' => 'TEXT',
1142             'validators' => array (  0 => array ( 'type' => 'ISINT',
1143                     'errmsg'=> 'limit_dns_zone_error_notint'),
1144             ),
1145             'default' => '-1',
1146             'value'  => '',
1147             'separator' => '',
1148             'width'  => '10',
1149             'maxlength' => '10',
1150             'rows'  => '',
1151             'cols'  => ''
532ae5 1152         ),
615a0a 1153         'default_slave_dnsserver' => array (
b1a6a5 1154             'datatype' => 'INTEGER',
MC 1155             'formtype' => 'SELECT',
1156             'default' => '1',
1157             'datasource' => array (  'type' => 'CUSTOM',
1158                 'class'=> 'custom_datasource',
1159                 'function'=> 'client_servers'
1160             ),
1161             'value'  => '',
1162             'name'  => 'default_slave_dnsserver'
615a0a 1163         ),
T 1164         'limit_dns_slave_zone' => array (
b1a6a5 1165             'datatype'      => 'INTEGER',
MC 1166             'formtype'      => 'TEXT',
1167             'validators'    => array (      0 => array (    'type'  => 'ISINT',
1168                     'errmsg'=> 'limit_dns_slave_zone_error_notint'),
1169             ),
1170             'default'       => '-1',
1171             'value'         => '',
1172             'separator'     => '',
1173             'width'         => '10',
1174             'maxlength'     => '10',
1175             'rows'          => '',
1176             'cols'          => ''
1177         ),
532ae5 1178         'limit_dns_record' => array (
b1a6a5 1179             'datatype' => 'INTEGER',
MC 1180             'formtype' => 'TEXT',
1181             'validators' => array (  0 => array ( 'type' => 'ISINT',
1182                     'errmsg'=> 'limit_dns_record_error_notint'),
1183             ),
1184             'default' => '-1',
1185             'value'  => '',
1186             'separator' => '',
1187             'width'  => '10',
1188             'maxlength' => '10',
1189             'rows'  => '',
1190             'cols'  => ''
532ae5 1191         ),
L 1192         'limit_client' => array (
b1a6a5 1193             'datatype' => 'INTEGER',
MC 1194             'formtype' => 'TEXT',
1195             'validators' => array (  0 => array ( 'type' => 'ISINT',
1196                     'errmsg'=> 'limit_client_error_notint'),
1197             ),
1198             'default' => '0',
1199             'value'  => '',
1200             'separator' => '',
1201             'width'  => '10',
1202             'maxlength' => '10',
1203             'rows'  => '',
1204             'cols'  => ''
532ae5 1205         ),
L 1206         'default_dbserver' => array (
b1a6a5 1207             'datatype' => 'INTEGER',
MC 1208             'formtype' => 'SELECT',
1209             'default' => '1',
1210             'datasource' => array (  'type' => 'CUSTOM',
1211                 'class'=> 'custom_datasource',
1212                 'function'=> 'client_servers'
1213             ),
1214             'value'  => '',
1215             'name'  => 'default_dbserver'
532ae5 1216         ),
bd6659 1217         'db_servers' => array (
015dff 1218             'datatype' => 'VARCHAR',
MC 1219             'formtype' => 'MULTIPLE',
bd6659 1220             'separator' => ',',
015dff 1221             'default' => '1',
MC 1222             'datasource' => array (  'type' => 'CUSTOM',
1223                 'class'=> 'custom_datasource',
1224                 'function'=> 'client_servers'
1225             ),
bd6659 1226             'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
015dff 1227                     'errmsg'=> 'no_db_server_error'),
MC 1228                 1 => array ( 'type' => 'CUSTOM',
1229                     'class' => 'validate_client',
1230                     'function' => 'check_used_servers',
1231                     'errmsg'=> 'db_servers_used'),
1232             ),
1233             'value'  => '',
1234             'name'  => 'db_servers'
bd6659 1235         ),
532ae5 1236         'limit_database' => array (
b1a6a5 1237             'datatype' => 'INTEGER',
MC 1238             'formtype' => 'TEXT',
1239             'validators' => array (  0 => array ( 'type' => 'ISINT',
1240                     'errmsg'=> 'limit_database_error_notint'),
1241             ),
1242             'default' => '-1',
1243             'value'  => '',
1244             'separator' => '',
1245             'width'  => '10',
1246             'maxlength' => '10',
1247             'rows'  => '',
1248             'cols'  => ''
532ae5 1249         ),
0543b2 1250         'limit_database_quota' => array (
F 1251             'datatype' => 'INTEGER',
1252             'formtype' => 'TEXT',
1253             'validators' => array (  0 => array ( 'type' => 'ISINT',
1254                     'errmsg'=> 'limit_database_quota_error_notint'),
1255             ),
1256             'default' => '-1',
1257             'value'  => '',
1258             'separator' => '',
1259             'width'  => '10',
1260             'maxlength' => '10',
1261             'rows'  => '',
1262             'cols'  => ''
1263         ),
b1a6a5 1264         'limit_cron' => array (
MC 1265             'datatype'  => 'INTEGER',
1266             'formtype'  => 'TEXT',
1267             'validators'    => array (  0 => array (    'type'  => 'ISINT',
1268                     'errmsg'=> 'limit_cron_error_notint'),
1269             ),
1270             'default'   => '0',
1271             'value'     => '',
1272             'separator' => '',
1273             'width'     => '10',
1274             'maxlength' => '10',
1275             'rows'      => '',
1276             'cols'      => ''
1277         ),
1278         'limit_cron_type' => array (
1279             'datatype'  => 'VARCHAR',
1280             'formtype'  => 'SELECT',
1281             'default'   => '',
1282             'value'     => array('full' => 'Full Cron', 'chrooted' => 'Chrooted Cron', 'url' => 'URL Cron')
1283         ),
1284         'limit_cron_frequency' => array (
1285             'datatype'  => 'INTEGER',
1286             'formtype'  => 'TEXT',
1287             'validators'    => array (  0 => array (    'type'  => 'ISINT',
1288                     'errmsg'=> 'limit_cron_error_frequency'),
1289             ),
1290             'default'   => '-1',
1291             'value'     => '',
1292             'separator' => '',
1293             'width'     => '10',
1294             'maxlength' => '10',
1295             'rows'      => '',
1296             'cols'      => ''
1297         ),
532ae5 1298         'limit_traffic_quota' => array (
b1a6a5 1299             'datatype' => 'INTEGER',
MC 1300             'formtype' => 'TEXT',
1301             'validators' => array (  0 => array ( 'type' => 'ISINT',
1302                     'errmsg'=> 'limit_traffic_quota_error_notint'),
1303             ),
1304             'default' => '-1',
1305             'value'  => '',
1306             'separator' => '',
1307             'width'  => '10',
1308             'maxlength' => '10',
1309             'rows'  => '',
1310             'cols'  => ''
532ae5 1311         ),
f414ab 1312         'limit_openvz_vm' => array (
b1a6a5 1313             'datatype' => 'INTEGER',
MC 1314             'formtype' => 'TEXT',
1315             'validators' => array (  0 => array ( 'type' => 'ISINT',
1316                     'errmsg'=> 'limit_openvz_vm_error_notint'),
1317             ),
1318             'default' => '0',
1319             'value'  => '',
1320             'separator' => '',
1321             'width'  => '10',
1322             'maxlength' => '10',
1323             'rows'  => '',
1324             'cols'  => ''
f414ab 1325         ),
T 1326         'limit_openvz_vm_template_id' => array (
b1a6a5 1327             'datatype' => 'INTEGER',
MC 1328             'formtype' => 'SELECT',
1329             'default' => '',
1330             'datasource' => array (  'type' => 'SQL',
1331                 'querystring' => 'SELECT template_id,template_name FROM openvz_template WHERE 1 ORDER BY template_name',
1332                 'keyfield'=> 'template_id',
1333                 'valuefield'=> 'template_name'
1334             ),
1335             'value'  => array(0 => ' ')
f414ab 1336         ),
526b99 1337         'limit_aps' => array (
b1a6a5 1338             'datatype' => 'INTEGER',
MC 1339             'formtype' => 'TEXT',
1340             'validators' => array (  0 => array ( 'type' => 'ISINT',
1341                     'errmsg'=> 'limit_aps_error_notint'),
1342             ),
1343             'default' => '-1',
1344             'value'  => '',
1345             'separator' => '',
1346             'width'  => '10',
1347             'maxlength' => '10',
1348             'rows'  => '',
1349             'cols'  => ''
526b99 1350         ),
b1a6a5 1351         //#################################
MC 1352         // END Datatable fields
1353         //#################################
532ae5 1354     )
L 1355 );
1356
1357 /*
1358 $form["tabs"]['ipaddress'] = array (
1359     'title'     => "IP Addresses",
1360     'width'     => 100,
1361     'template'     => "templates/client_edit_ipaddress.htm",
1362     'fields'     => array (
1363     ##################################
1364     # Beginn Datatable fields
1365     ##################################
1366         'ip_address' => array (
1367             'datatype'    => 'TEXT',
1368             'formtype'    => 'CHECKBOXARRAY',
1369             'default'    => '',
1370             'value'        => array('192.168.0.1' => '192.168.0.1', '192.168.0.2' => '192.168.0.2'),
1371             'separator'    => ';'
1372         ),
1373     ##################################
1374     # ENDE Datatable fields
1375     ##################################
1376     )
1377 );
1378 */
1379
1380
1381 ?>