Marius Burkard
2016-04-20 4569cae57f127afd093794310ccd290d2d9fdf36
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 (  
bad4bd 332                 0 => array ( 'type' => 'ISEMAIL', 'errmsg'=> 'email_error_isemail'),
4039c8 333                 1 => array ( 'type' => 'NOTEMPTY',
FS 334                     'errmsg'=> 'email_error_empty'),
b1a6a5 335             ),
MC 336             'default' => '',
337             'value'  => '',
338             'separator' => '',
339             'width'  => '30',
340             'maxlength' => '255',
341             'rows'  => '',
342             'cols'  => '',
4c28d9 343             'searchable' => 2
532ae5 344         ),
L 345         'internet' => array (
b1a6a5 346             'datatype' => 'VARCHAR',
MC 347             'formtype' => 'TEXT',
348             'default' => 'http://',
349             'value'  => '',
350             'separator' => '',
351             'width'  => '30',
352             'maxlength' => '255',
353             'rows'  => '',
354             'cols'  => '',
4c28d9 355             'searchable' => 2
532ae5 356         ),
L 357         'icq' => array (
b1a6a5 358             'datatype' => 'VARCHAR',
MC 359             'formtype' => 'TEXT',
360             'default' => '',
361             'value'  => '',
362             'separator' => '',
363             'width'  => '30',
364             'maxlength' => '255',
365             'rows'  => '',
366             'cols'  => ''
532ae5 367         ),
L 368         'vat_id' => array (
b1a6a5 369             'datatype' => 'VARCHAR',
MC 370             'formtype' => 'TEXT',
371             'default' => '',
372             'value'  => '',
373             'separator' => '',
374             'width'  => '30',
375             'maxlength' => '255',
376             'rows'  => '',
12e147 377             'cols'  => '',
FT 378             'validators' => array (  0 => array ( 'type' => 'CUSTOM',
379                     'class' => 'validate_client',
380                     'function' => 'check_vat_id',
381                     'errmsg'=> 'invalid_vat_id'),
6360fd 382             ),
MC 383             'filters'   => array( 0 => array(     'event' => 'SAVE',
384                                                 'type' => 'TRIM'),
385                                 1 => array(     'event' => 'SAVE',
d22277 386                                                 'type' => 'TOUPPER'),
MB 387                                 2 => array(     'event' => 'SAVE',
388                                                 'type' => 'NOWHITESPACE')
6360fd 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',
d22277 459                                                 'type' => 'TOUPPER'),
MB 460                                 2 => array(     'event' => 'SAVE',
461                                                 'type' => 'NOWHITESPACE')
6360fd 462             ),
7ad91f 463         ),
F 464         'bank_account_swift' => array (
b1a6a5 465             'datatype' => 'VARCHAR',
MC 466             'formtype' => 'TEXT',
467             'default' => '',
468             'value'  => '',
469             'separator' => '',
470             'width'  => '30',
471             'maxlength' => '255',
472             'rows'  => '',
6360fd 473             'cols'  => '',
MC 474             'filters'   => array( 0 => array(     'event' => 'SAVE',
475                                                 'type' => 'TRIM'),
476                                 1 => array(     'event' => 'SAVE',
d22277 477                                                 'type' => 'TOUPPER'),
MB 478                                 2 => array(     'event' => 'SAVE',
479                                                 'type' => 'NOWHITESPACE')
6360fd 480             ),
7ad91f 481         ),
532ae5 482         'notes' => array (
b1a6a5 483             'datatype' => 'TEXT',
MC 484             'formtype' => 'TEXTAREA',
485             'default' => '',
486             'value'  => '',
487             'separator' => '',
488             'width'  => '',
489             'maxlength' => '',
490             'rows'  => '10',
491             'cols'  => '30'
532ae5 492         ),
bfcdef 493         'paypal_email' => array (
b1a6a5 494             'datatype' => 'VARCHAR',
MC 495             'formtype' => 'TEXT',
496             'filters'   => array( 0 => array( 'event' => 'SAVE',
497                     'type' => 'IDNTOASCII'),
498                 1 => array( 'event' => 'SHOW',
499                     'type' => 'IDNTOUTF8'),
500                 2 => array( 'event' => 'SAVE',
501                     'type' => 'TOLOWER')
502             ),
bad4bd 503             'validators' => array (
ab0d78 504                 0 => array ( 'type' => 'ISEMAIL', 'allowempty' => 'y', 'errmsg'=> 'email_error_isemail'),
b1a6a5 505             ),
MC 506             'default' => '',
507             'value'  => '',
508             'separator' => '',
509             'width'  => '30',
510             'maxlength' => '255',
511             'rows'  => '',
512             'cols'  => '',
bfcdef 513             'searchable' => 2
T 514         ),
7b47c0 515         'locked' => array (
b1a6a5 516             'datatype' => 'VARCHAR',
MC 517             'formtype' => 'CHECKBOX',
518             'default' => 'n',
519             'value'  => array(0 => 'n', 1 => 'y')
7b47c0 520         ),
T 521         'canceled' => array (
b1a6a5 522             'datatype' => 'VARCHAR',
MC 523             'formtype' => 'CHECKBOX',
524             'default' => 'n',
525             'value'  => array(0 => 'n', 1 => 'y')
7b47c0 526         ),
3d96c5 527         'added_date' => array (
TB 528             'datatype'    => 'DATE',
529             'formtype'    => 'TEXT',
530             'default'    => date($app->lng('conf_format_dateshort')),
531             'value'        => '',
532             'separator'    => '',
533             'width'        => '15',
534             'maxlength'    => '15',
535             'rows'        => '',
536             'cols'        => ''
537         ),
538         'added_by' => array (
539             'datatype' => 'VARCHAR',
540             'formtype' => 'TEXT',
541             'default' => $_SESSION['s']['user']['username'],
542             'value'  => '',
543             'separator' => '',
544             'width'  => '30',
545             'maxlength' => '255',
546             'rows'  => '',
547             'cols'  => ''
548         ),
b1a6a5 549         //#################################
MC 550         // END Datatable fields
551         //#################################
532ae5 552     )
L 553 );
554
555 $form["tabs"]['limits'] = array (
b1a6a5 556     'title'  => "Limits",
MC 557     'width'  => 80,
558     'template'  => "templates/client_edit_limits.htm",
559     'fields'  => array (
560         //#################################
561         // Begin Datatable fields
562         //#################################
532ae5 563         'template_master' => array (
b1a6a5 564             'datatype' => 'INTEGER',
MC 565             'formtype' => 'SELECT',
566             'default' => '1',
567             'datasource' => array (  'type' => 'CUSTOM',
568                 'class'=> 'custom_datasource',
569                 'function'=> 'master_templates'
570             ),
571             'value'  => ''
532ae5 572         ),
L 573         'template_additional' => array (
b1a6a5 574             'datatype' => 'VARCHAR',
MC 575             'formtype' => 'TEXT',
532ae5 576         ),
L 577         'default_mailserver' => array (
b1a6a5 578             'datatype' => 'INTEGER',
MC 579             'formtype' => 'SELECT',
580             'default' => '1',
581             'datasource' => array (  'type' => 'CUSTOM',
582                 'class'=> 'custom_datasource',
583                 'function'=> 'client_servers'
584             ),
585             'value'  => '',
586             'name'  => 'default_mailserver'
532ae5 587         ),
bd6659 588         'mail_servers' => array (
015dff 589             'datatype' => 'VARCHAR',
MC 590             'formtype' => 'MULTIPLE',
bd6659 591             'separator' => ',',
015dff 592             'default' => '1',
MC 593             'datasource' => array (  'type' => 'CUSTOM',
594                 'class'=> 'custom_datasource',
595                 'function'=> 'client_servers'
596             ),
bd6659 597             'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
015dff 598                     'errmsg'=> 'no_mail_server_error'),
MC 599                 1 => array ( 'type' => 'CUSTOM',
600                     'class' => 'validate_client',
601                     'function' => 'check_used_servers',
602                     'errmsg'=> 'mail_servers_used'),
603             ),
604             'value'  => '',
605             'name'  => 'mail_servers'
bd6659 606         ),
532ae5 607         'limit_maildomain' => array (
b1a6a5 608             'datatype' => 'INTEGER',
MC 609             'formtype' => 'TEXT',
610             'validators' => array (  0 => array ( 'type' => 'ISINT',
611                     'errmsg'=> 'limit_maildomain_error_notint'),
612             ),
613             'default' => '-1',
614             'value'  => '',
615             'separator' => '',
616             'width'  => '10',
617             'maxlength' => '10',
618             'rows'  => '',
619             'cols'  => ''
532ae5 620         ),
L 621         'limit_mailbox' => array (
b1a6a5 622             'datatype' => 'INTEGER',
MC 623             'formtype' => 'TEXT',
624             'validators' => array (  0 => array ( 'type' => 'ISINT',
625                     'errmsg'=> 'limit_mailbox_error_notint'),
626             ),
627             'default' => '-1',
628             'value'  => '',
629             'separator' => '',
630             'width'  => '10',
631             'maxlength' => '10',
632             'rows'  => '',
633             'cols'  => ''
532ae5 634         ),
L 635         'limit_mailalias' => array (
b1a6a5 636             'datatype' => 'INTEGER',
MC 637             'formtype' => 'TEXT',
638             'validators' => array (  0 => array ( 'type' => 'ISINT',
639                     'errmsg'=> 'limit_mailalias_error_notint'),
640             ),
641             'default' => '-1',
642             'value'  => '',
643             'separator' => '',
644             'width'  => '10',
645             'maxlength' => '10',
646             'rows'  => '',
647             'cols'  => ''
532ae5 648         ),
L 649         'limit_mailaliasdomain' => array (
b1a6a5 650             'datatype' => 'INTEGER',
MC 651             'formtype' => 'TEXT',
652             'validators' => array (  0 => array ( 'type' => 'ISINT',
653                     'errmsg'=> 'limit_mailaliasdomain_error_notint'),
654             ),
655             'default' => '-1',
656             'value'  => '',
657             'separator' => '',
658             'width'  => '10',
659             'maxlength' => '10',
660             'rows'  => '',
661             'cols'  => ''
532ae5 662         ),
L 663         'limit_mailmailinglist' => array (
b1a6a5 664             'datatype' => 'INTEGER',
MC 665             'formtype' => 'TEXT',
666             'validators' => array (  0 => array ( 'type' => 'ISINT',
667                     'errmsg'=> 'limit_mailmailinglist_error_notint'),
668             ),
669             'default' => '-1',
670             'value'  => '',
671             'separator' => '',
672             'width'  => '10',
673             'maxlength' => '10',
674             'rows'  => '',
675             'cols'  => ''
532ae5 676         ),
L 677         'limit_mailforward' => array (
b1a6a5 678             'datatype' => 'INTEGER',
MC 679             'formtype' => 'TEXT',
680             'validators' => array (  0 => array ( 'type' => 'ISINT',
681                     'errmsg'=> 'limit_mailforward_error_notint'),
682             ),
683             'default' => '-1',
684             'value'  => '',
685             'separator' => '',
686             'width'  => '10',
687             'maxlength' => '10',
688             'rows'  => '',
689             'cols'  => ''
532ae5 690         ),
L 691         'limit_mailcatchall' => array (
b1a6a5 692             'datatype' => 'INTEGER',
MC 693             'formtype' => 'TEXT',
694             'validators' => array (  0 => array ( 'type' => 'ISINT',
695                     'errmsg'=> 'limit_mailcatchall_error_notint'),
696             ),
697             'default' => '-1',
698             'value'  => '',
699             'separator' => '',
700             'width'  => '10',
701             'maxlength' => '10',
702             'rows'  => '',
703             'cols'  => ''
532ae5 704         ),
L 705         'limit_mailrouting' => array (
b1a6a5 706             'datatype' => 'INTEGER',
MC 707             'formtype' => 'TEXT',
708             'validators' => array (  0 => array ( 'type' => 'ISINT',
709                     'errmsg'=> 'limit_mailrouting_error_notint'),
710             ),
711             'default' => '0',
712             'value'  => '',
713             'separator' => '',
714             'width'  => '10',
715             'maxlength' => '10',
716             'rows'  => '',
717             'cols'  => ''
532ae5 718         ),
L 719         'limit_mailfilter' => array (
b1a6a5 720             'datatype' => 'INTEGER',
MC 721             'formtype' => 'TEXT',
722             'validators' => array (  0 => array ( 'type' => 'ISINT',
723                     'errmsg'=> 'limit_mailfilter_error_notint'),
724             ),
725             'default' => '-1',
726             'value'  => '',
727             'separator' => '',
728             'width'  => '10',
729             'maxlength' => '10',
730             'rows'  => '',
731             'cols'  => ''
532ae5 732         ),
L 733         'limit_fetchmail' => array (
b1a6a5 734             'datatype' => 'INTEGER',
MC 735             'formtype' => 'TEXT',
736             'validators' => array (  0 => array ( 'type' => 'ISINT',
737                     'errmsg'=> 'limit_mailfetchmail_error_notint'),
738             ),
739             'default' => '-1',
740             'value'  => '',
741             'separator' => '',
742             'width'  => '10',
743             'maxlength' => '10',
744             'rows'  => '',
745             'cols'  => ''
532ae5 746         ),
L 747         'limit_mailquota' => array (
b1a6a5 748             'datatype' => 'INTEGER',
MC 749             'formtype' => 'TEXT',
750             'validators' => array (  0 => array ( 'type' => 'ISINT',
751                     'errmsg'=> 'limit_mailquota_error_notint'),
752             ),
753             'default' => '-1',
754             'value'  => '',
755             'separator' => '',
756             'width'  => '10',
757             'maxlength' => '10',
758             'rows'  => '',
759             'cols'  => ''
532ae5 760         ),
L 761         'limit_spamfilter_wblist' => array (
b1a6a5 762             'datatype' => 'INTEGER',
MC 763             'formtype' => 'TEXT',
764             'validators' => array (  0 => array ( 'type' => 'ISINT',
765                     'errmsg'=> 'limit_spamfilter_wblist_error_notint'),
766             ),
767             'default' => '-1',
768             'value'  => '',
769             'separator' => '',
770             'width'  => '10',
771             'maxlength' => '10',
772             'rows'  => '',
773             'cols'  => ''
532ae5 774         ),
L 775         'limit_spamfilter_user' => array (
b1a6a5 776             'datatype' => 'INTEGER',
MC 777             'formtype' => 'TEXT',
778             'validators' => array (  0 => array ( 'type' => 'ISINT',
779                     'errmsg'=> 'limit_spamfilter_user_error_notint'),
780             ),
781             'default' => '-1',
782             'value'  => '',
783             'separator' => '',
784             'width'  => '10',
785             'maxlength' => '10',
786             'rows'  => '',
787             'cols'  => ''
532ae5 788         ),
L 789         'limit_spamfilter_policy' => array (
b1a6a5 790             'datatype' => 'INTEGER',
MC 791             'formtype' => 'TEXT',
792             'validators' => array (  0 => array ( 'type' => 'ISINT',
793                     'errmsg'=> 'limit_spamfilter_policy_error_notint'),
794             ),
795             'default' => '-1',
796             'value'  => '',
797             'separator' => '',
798             'width'  => '10',
799             'maxlength' => '10',
800             'rows'  => '',
801             'cols'  => ''
532ae5 802         ),
a7d804 803         'default_xmppserver' => array (
MF 804             'datatype' => 'INTEGER',
805             'formtype' => 'SELECT',
806             'default' => '1',
807             'datasource' => array (  'type' => 'CUSTOM',
808                 'class'=> 'custom_datasource',
809                 'function'=> 'client_servers'
810             ),
811             'value'  => '',
812             'name'  => 'default_xmppserver'
813         ),
9f94a1 814         'xmpp_servers' => array (
MF 815             'datatype' => 'VARCHAR',
816             'formtype' => 'MULTIPLE',
817             'separator' => ',',
818             'default' => '1',
819             'datasource' => array (  'type' => 'CUSTOM',
820                 'class'=> 'custom_datasource',
821                 'function'=> 'client_servers'
822             ),
36c8a2 823             'validators'    => array (
MF 824                 0 => array ( 'type' => 'CUSTOM',
9f94a1 825                     'class' => 'validate_client',
MF 826                     'function' => 'check_used_servers',
827                     'errmsg'=> 'xmpp_servers_used'),
828             ),
829             'value'  => '',
830             'name'  => 'xmpp_servers'
831         ),
832         'limit_xmpp_domain' => array(
833             'datatype' => 'INTEGER',
834             'formtype' => 'TEXT',
835             'validators' => array (  0 => array ( 'type' => 'ISINT',
836                 'errmsg'=> 'limit_xmpp_domain_error_notint'),
837             ),
838             'default' => '-1',
839             'value'  => '',
840             'separator' => '',
841             'width'  => '10',
842             'maxlength' => '10',
843             'rows'  => '',
844             'cols'  => ''
845         ),
846         'limit_xmpp_user' => array(
847             'datatype' => 'INTEGER',
848             'formtype' => 'TEXT',
849             'validators' => array (  0 => array ( 'type' => 'ISINT',
850                 'errmsg'=> 'limit_xmpp_user_error_notint'),
851             ),
852             'default' => '-1',
853             'value'  => '',
854             'separator' => '',
855             'width'  => '10',
856             'maxlength' => '10',
857             'rows'  => '',
858             'cols'  => ''
859         ),
860         'limit_xmpp_muc' => array(
861             'datatype' => 'VARCHAR',
862             'formtype' => 'CHECKBOX',
863             'default' => 'n',
864             'value'  => array(0 => 'n', 1 => 'y')
865         ),
866         'limit_xmpp_anon' => array(
867             'datatype' => 'VARCHAR',
868             'formtype' => 'CHECKBOX',
869             'default' => 'n',
870             'value'  => array(0 => 'n', 1 => 'y')
871         ),
872         'limit_xmpp_vjud' => array(
873             'datatype' => 'VARCHAR',
874             'formtype' => 'CHECKBOX',
875             'default' => 'n',
876             'value'  => array(0 => 'n', 1 => 'y')
877         ),
878         'limit_xmpp_proxy' => array(
879             'datatype' => 'VARCHAR',
880             'formtype' => 'CHECKBOX',
881             'default' => 'n',
882             'value'  => array(0 => 'n', 1 => 'y')
883         ),
884         'limit_xmpp_status' => array(
885             'datatype' => 'VARCHAR',
886             'formtype' => 'CHECKBOX',
887             'default' => 'n',
888             'value'  => array(0 => 'n', 1 => 'y')
889         ),
890         'limit_xmpp_pastebin' => array(
891             'datatype' => 'VARCHAR',
892             'formtype' => 'CHECKBOX',
893             'default' => 'n',
894             'value'  => array(0 => 'n', 1 => 'y')
895         ),
896         'limit_xmpp_httparchive' => array(
897             'datatype' => 'VARCHAR',
898             'formtype' => 'CHECKBOX',
899             'default' => 'n',
900             'value'  => array(0 => 'n', 1 => 'y')
901         ),
532ae5 902         'default_webserver' => array (
b1a6a5 903             'datatype' => 'INTEGER',
MC 904             'formtype' => 'SELECT',
905             'default' => '1',
906             'datasource' => array (  'type' => 'CUSTOM',
907                 'class'=> 'custom_datasource',
908                 'function'=> 'client_servers'
909             ),
910             'value'  => '',
911             'name'  => 'default_webserver'
532ae5 912         ),
bd6659 913         'web_servers' => array (
015dff 914             'datatype' => 'VARCHAR',
MC 915             'formtype' => 'MULTIPLE',
bd6659 916             'separator' => ',',
015dff 917             'default' => '1',
MC 918             'datasource' => array (  'type' => 'CUSTOM',
919                 'class'=> 'custom_datasource',
920                 'function'=> 'client_servers'
921             ),
bd6659 922             'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
015dff 923                     'errmsg'=> 'no_web_server_error'),
MC 924                 1 => array ( 'type' => 'CUSTOM',
925                     'class' => 'validate_client',
926                     'function' => 'check_used_servers',
927                     'errmsg'=> 'web_servers_used'),
928             ),
929             'value'  => '',
930             'name'  => 'web_servers'
bd6659 931         ),
532ae5 932         'limit_web_domain' => array (
b1a6a5 933             'datatype' => 'INTEGER',
MC 934             'formtype' => 'TEXT',
935             'validators' => array (  0 => array ( 'type' => 'ISINT',
936                     'errmsg'=> 'limit_web_domain_error_notint'),
937             ),
938             'default' => '-1',
939             'value'  => '',
940             'separator' => '',
941             'width'  => '10',
942             'maxlength' => '10',
943             'rows'  => '',
944             'cols'  => ''
532ae5 945         ),
L 946         'limit_web_quota' => array (
b1a6a5 947             'datatype' => 'INTEGER',
MC 948             'formtype' => 'TEXT',
949             'validators' => array (  0 => array ( 'type' => 'ISINT',
950                     'errmsg'=> 'limit_web_quota_error_notint'),
951             ),
952             'default' => '-1',
953             'value'  => '',
954             'separator' => '',
955             'width'  => '10',
956             'maxlength' => '10',
957             'rows'  => '',
958             'cols'  => ''
532ae5 959         ),
L 960         'web_php_options' => array (
b1a6a5 961             'datatype' => 'VARCHAR',
MC 962             'formtype' => 'CHECKBOXARRAY',
963             'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
964                     'errmsg'=> 'web_php_options_notempty'),
965             ),
966             'default' => '',
532ae5 967             'separator' => ',',
L 968             'valuelimit' => 'client:web_php_options',
1c6da3 969             'value'  => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM', 'hhvm' => 'HHVM')
532ae5 970         ),
ac099e 971         'limit_cgi' => array (
b1a6a5 972             'datatype' => 'VARCHAR',
MC 973             'formtype' => 'CHECKBOX',
974             'default' => 'n',
975             'value'  => array(0 => 'n', 1 => 'y')
ac099e 976         ),
M 977         'limit_ssi' => array (
b1a6a5 978             'datatype' => 'VARCHAR',
MC 979             'formtype' => 'CHECKBOX',
980             'default' => 'n',
981             'value'  => array(0 => 'n', 1 => 'y')
ac099e 982         ),
M 983         'limit_perl' => array (
b1a6a5 984             'datatype' => 'VARCHAR',
MC 985             'formtype' => 'CHECKBOX',
986             'default' => 'n',
987             'value'  => array(0 => 'n', 1 => 'y')
ac099e 988         ),
M 989         'limit_ruby' => array (
b1a6a5 990             'datatype' => 'VARCHAR',
MC 991             'formtype' => 'CHECKBOX',
992             'default' => 'n',
993             'value'  => array(0 => 'n', 1 => 'y')
ac099e 994         ),
M 995         'limit_python' => array (
b1a6a5 996             'datatype' => 'VARCHAR',
MC 997             'formtype' => 'CHECKBOX',
998             'default' => 'n',
999             'value'  => array(0 => 'n', 1 => 'y')
ac099e 1000         ),
M 1001         'force_suexec' => array (
b1a6a5 1002             'datatype' => 'VARCHAR',
MC 1003             'formtype' => 'CHECKBOX',
1004             'default' => 'y',
1005             'value'  => array(0 => 'n', 1 => 'y')
ac099e 1006         ),
M 1007         'limit_hterror' => array (
b1a6a5 1008             'datatype' => 'VARCHAR',
MC 1009             'formtype' => 'CHECKBOX',
1010             'default' => 'n',
1011             'value'  => array(0 => 'n', 1 => 'y')
ac099e 1012         ),
M 1013         'limit_wildcard' => array (
b1a6a5 1014             'datatype' => 'VARCHAR',
MC 1015             'formtype' => 'CHECKBOX',
1016             'default' => 'n',
1017             'value'  => array(0 => 'n', 1 => 'y')
ac099e 1018         ),
M 1019         'limit_ssl' => array (
b1a6a5 1020             'datatype' => 'VARCHAR',
MC 1021             'formtype' => 'CHECKBOX',
1022             'default' => 'n',
1023             'value'  => array(0 => 'n', 1 => 'y')
ac099e 1024         ),
67b0cb 1025         'limit_ssl_letsencrypt' => array (
MB 1026             'datatype' => 'VARCHAR',
1027             'formtype' => 'CHECKBOX',
1028             'default' => 'n',
1029             'value'  => array(0 => 'n', 1 => 'y')
1030         ),
532ae5 1031         'limit_web_aliasdomain' => array (
b1a6a5 1032             'datatype' => 'INTEGER',
MC 1033             'formtype' => 'TEXT',
1034             'validators' => array (  0 => array ( 'type' => 'ISINT',
1035                     'errmsg'=> 'limit_web_aliasdomain_error_notint'),
1036             ),
1037             'default' => '-1',
1038             'value'  => '',
1039             'separator' => '',
1040             'width'  => '10',
1041             'maxlength' => '10',
1042             'rows'  => '',
1043             'cols'  => ''
532ae5 1044         ),
L 1045         'limit_web_subdomain' => array (
b1a6a5 1046             'datatype' => 'INTEGER',
MC 1047             'formtype' => 'TEXT',
1048             'validators' => array (  0 => array ( 'type' => 'ISINT',
1049                     'errmsg'=> 'limit_web_subdomain_error_notint'),
1050             ),
1051             'default' => '-1',
1052             'value'  => '',
1053             'separator' => '',
1054             'width'  => '10',
1055             'maxlength' => '10',
1056             'rows'  => '',
1057             'cols'  => ''
532ae5 1058         ),
L 1059         'limit_ftp_user' => array (
b1a6a5 1060             'datatype' => 'INTEGER',
MC 1061             'formtype' => 'TEXT',
1062             'validators' => array (  0 => array ( 'type' => 'ISINT',
1063                     'errmsg'=> 'limit_ftp_user_error_notint'),
1064             ),
1065             'default' => '-1',
1066             'value'  => '',
1067             'separator' => '',
1068             'width'  => '10',
1069             'maxlength' => '10',
1070             'rows'  => '',
1071             'cols'  => ''
532ae5 1072         ),
L 1073         'limit_shell_user' => array (
b1a6a5 1074             'datatype' => 'INTEGER',
MC 1075             'formtype' => 'TEXT',
1076             'validators' => array (  0 => array ( 'type' => 'ISINT',
1077                     'errmsg'=> 'limit_shell_user_error_notint'),
1078             ),
1079             'default' => '-1',
1080             'value'  => '',
1081             'separator' => '',
1082             'width'  => '10',
1083             'maxlength' => '10',
1084             'rows'  => '',
1085             'cols'  => ''
532ae5 1086         ),
L 1087         'ssh_chroot' => array (
b1a6a5 1088             'datatype' => 'VARCHAR',
MC 1089             'formtype' => 'CHECKBOXARRAY',
1090             'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
1091                     'errmsg'=> 'ssh_chroot_notempty'),
1092             ),
1093             'default' => '',
532ae5 1094             'separator' => ',',
L 1095             'valuelimit' => 'client:ssh_chroot',
b1a6a5 1096             'value'  => array('no' => 'None', 'jailkit' => 'Jailkit')
532ae5 1097         ),
L 1098         'limit_webdav_user' => array (
b1a6a5 1099             'datatype' => 'INTEGER',
MC 1100             'formtype' => 'TEXT',
1101             'validators' => array (  0 => array ( 'type' => 'ISINT',
1102                     'errmsg'=> 'limit_webdav_user_error_notint'),
1103             ),
1104             'default' => '-1',
1105             'value'  => '',
1106             'separator' => '',
1107             'width'  => '10',
1108             'maxlength' => '10',
1109             'rows'  => '',
1110             'cols'  => ''
532ae5 1111         ),
f40d19 1112         'limit_backup' => array (
D 1113             'datatype' => 'VARCHAR',
1114             'formtype' => 'CHECKBOX',
62c0e9 1115             'default' => 'y',
f40d19 1116             'value'  => array(0 => 'n', 1 => 'y')
D 1117         ),
67b0cb 1118         'limit_directive_snippets' => array (
MB 1119             'datatype' => 'VARCHAR',
1120             'formtype' => 'CHECKBOX',
1121             'default' => 'n',
1122             'value'  => array(0 => 'n', 1 => 'y')
1123         ),
532ae5 1124         'default_dnsserver' => array (
b1a6a5 1125             'datatype' => 'INTEGER',
MC 1126             'formtype' => 'SELECT',
1127             'default' => '1',
1128             'datasource' => array (  'type' => 'CUSTOM',
1129                 'class'=> 'custom_datasource',
1130                 'function'=> 'client_servers'
1131             ),
1132             'value'  => '',
1133             'name'  => 'default_dnsserver'
532ae5 1134         ),
bd6659 1135         'dns_servers' => array (
015dff 1136             'datatype' => 'VARCHAR',
MC 1137             'formtype' => 'MULTIPLE',
bd6659 1138             'separator' => ',',
015dff 1139             'default' => '1',
MC 1140             'datasource' => array (  'type' => 'CUSTOM',
1141                 'class'=> 'custom_datasource',
1142                 'function'=> 'client_servers'
1143             ),
bd6659 1144             'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
015dff 1145                     'errmsg'=> 'no_dns_server_error'),
MC 1146                 1 => array ( 'type' => 'CUSTOM',
1147                     'class' => 'validate_client',
1148                     'function' => 'check_used_servers',
1149                     'errmsg'=> 'dns_servers_used'),
1150             ),
1151             'value'  => '',
1152             'name'  => 'dns_servers'
bd6659 1153         ),
532ae5 1154         'limit_dns_zone' => array (
b1a6a5 1155             'datatype' => 'INTEGER',
MC 1156             'formtype' => 'TEXT',
1157             'validators' => array (  0 => array ( 'type' => 'ISINT',
1158                     'errmsg'=> 'limit_dns_zone_error_notint'),
1159             ),
1160             'default' => '-1',
1161             'value'  => '',
1162             'separator' => '',
1163             'width'  => '10',
1164             'maxlength' => '10',
1165             'rows'  => '',
1166             'cols'  => ''
532ae5 1167         ),
615a0a 1168         'default_slave_dnsserver' => array (
b1a6a5 1169             'datatype' => 'INTEGER',
MC 1170             'formtype' => 'SELECT',
1171             'default' => '1',
1172             'datasource' => array (  'type' => 'CUSTOM',
1173                 'class'=> 'custom_datasource',
1174                 'function'=> 'client_servers'
1175             ),
1176             'value'  => '',
1177             'name'  => 'default_slave_dnsserver'
615a0a 1178         ),
T 1179         'limit_dns_slave_zone' => array (
b1a6a5 1180             'datatype'      => 'INTEGER',
MC 1181             'formtype'      => 'TEXT',
1182             'validators'    => array (      0 => array (    'type'  => 'ISINT',
1183                     'errmsg'=> 'limit_dns_slave_zone_error_notint'),
1184             ),
1185             'default'       => '-1',
1186             'value'         => '',
1187             'separator'     => '',
1188             'width'         => '10',
1189             'maxlength'     => '10',
1190             'rows'          => '',
1191             'cols'          => ''
1192         ),
532ae5 1193         'limit_dns_record' => array (
b1a6a5 1194             'datatype' => 'INTEGER',
MC 1195             'formtype' => 'TEXT',
1196             'validators' => array (  0 => array ( 'type' => 'ISINT',
1197                     'errmsg'=> 'limit_dns_record_error_notint'),
1198             ),
1199             'default' => '-1',
1200             'value'  => '',
1201             'separator' => '',
1202             'width'  => '10',
1203             'maxlength' => '10',
1204             'rows'  => '',
1205             'cols'  => ''
532ae5 1206         ),
L 1207         'limit_client' => array (
b1a6a5 1208             'datatype' => 'INTEGER',
MC 1209             'formtype' => 'TEXT',
1210             'validators' => array (  0 => array ( 'type' => 'ISINT',
1211                     'errmsg'=> 'limit_client_error_notint'),
1212             ),
1213             'default' => '0',
1214             'value'  => '',
1215             'separator' => '',
1216             'width'  => '10',
1217             'maxlength' => '10',
1218             'rows'  => '',
1219             'cols'  => ''
532ae5 1220         ),
L 1221         'default_dbserver' => array (
b1a6a5 1222             'datatype' => 'INTEGER',
MC 1223             'formtype' => 'SELECT',
1224             'default' => '1',
1225             'datasource' => array (  'type' => 'CUSTOM',
1226                 'class'=> 'custom_datasource',
1227                 'function'=> 'client_servers'
1228             ),
1229             'value'  => '',
1230             'name'  => 'default_dbserver'
532ae5 1231         ),
bd6659 1232         'db_servers' => array (
015dff 1233             'datatype' => 'VARCHAR',
MC 1234             'formtype' => 'MULTIPLE',
bd6659 1235             'separator' => ',',
015dff 1236             'default' => '1',
MC 1237             'datasource' => array (  'type' => 'CUSTOM',
1238                 'class'=> 'custom_datasource',
1239                 'function'=> 'client_servers'
1240             ),
bd6659 1241             'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
015dff 1242                     'errmsg'=> 'no_db_server_error'),
MC 1243                 1 => array ( 'type' => 'CUSTOM',
1244                     'class' => 'validate_client',
1245                     'function' => 'check_used_servers',
1246                     'errmsg'=> 'db_servers_used'),
1247             ),
1248             'value'  => '',
1249             'name'  => 'db_servers'
bd6659 1250         ),
532ae5 1251         'limit_database' => array (
b1a6a5 1252             'datatype' => 'INTEGER',
MC 1253             'formtype' => 'TEXT',
1254             'validators' => array (  0 => array ( 'type' => 'ISINT',
1255                     'errmsg'=> 'limit_database_error_notint'),
1256             ),
1257             'default' => '-1',
1258             'value'  => '',
1259             'separator' => '',
1260             'width'  => '10',
1261             'maxlength' => '10',
1262             'rows'  => '',
1263             'cols'  => ''
532ae5 1264         ),
7e2a3f 1265         'limit_database_user' => array (
FS 1266             'datatype' => 'INTEGER',
1267             'formtype' => 'TEXT',
1268             'validators' => array (  0 => array ( 'type' => 'ISINT',
1269                     'errmsg'=> 'limit_database_user_notint'),
1270             ),
1271             'default' => '-1',
1272             'value'  => '',
1273             'separator' => '',
1274             'width'  => '10',
1275             'maxlength' => '10',
1276             'rows'  => '',
1277             'cols'  => ''
1278         ),
0543b2 1279         'limit_database_quota' => array (
F 1280             'datatype' => 'INTEGER',
1281             'formtype' => 'TEXT',
1282             'validators' => array (  0 => array ( 'type' => 'ISINT',
1283                     'errmsg'=> 'limit_database_quota_error_notint'),
1284             ),
1285             'default' => '-1',
1286             'value'  => '',
1287             'separator' => '',
1288             'width'  => '10',
1289             'maxlength' => '10',
1290             'rows'  => '',
1291             'cols'  => ''
1292         ),
b1a6a5 1293         'limit_cron' => array (
MC 1294             'datatype'  => 'INTEGER',
1295             'formtype'  => 'TEXT',
1296             'validators'    => array (  0 => array (    'type'  => 'ISINT',
1297                     'errmsg'=> 'limit_cron_error_notint'),
1298             ),
1299             'default'   => '0',
1300             'value'     => '',
1301             'separator' => '',
1302             'width'     => '10',
1303             'maxlength' => '10',
1304             'rows'      => '',
1305             'cols'      => ''
1306         ),
1307         'limit_cron_type' => array (
1308             'datatype'  => 'VARCHAR',
1309             'formtype'  => 'SELECT',
1310             'default'   => '',
1311             'value'     => array('full' => 'Full Cron', 'chrooted' => 'Chrooted Cron', 'url' => 'URL Cron')
1312         ),
1313         'limit_cron_frequency' => array (
1314             'datatype'  => 'INTEGER',
1315             'formtype'  => 'TEXT',
1316             'validators'    => array (  0 => array (    'type'  => 'ISINT',
1317                     'errmsg'=> 'limit_cron_error_frequency'),
1318             ),
1319             'default'   => '-1',
1320             'value'     => '',
1321             'separator' => '',
1322             'width'     => '10',
1323             'maxlength' => '10',
1324             'rows'      => '',
1325             'cols'      => ''
1326         ),
532ae5 1327         'limit_traffic_quota' => array (
b1a6a5 1328             'datatype' => 'INTEGER',
MC 1329             'formtype' => 'TEXT',
1330             'validators' => array (  0 => array ( 'type' => 'ISINT',
1331                     'errmsg'=> 'limit_traffic_quota_error_notint'),
1332             ),
1333             'default' => '-1',
1334             'value'  => '',
1335             'separator' => '',
1336             'width'  => '10',
1337             'maxlength' => '10',
1338             'rows'  => '',
1339             'cols'  => ''
532ae5 1340         ),
f414ab 1341         'limit_openvz_vm' => array (
b1a6a5 1342             'datatype' => 'INTEGER',
MC 1343             'formtype' => 'TEXT',
1344             'validators' => array (  0 => array ( 'type' => 'ISINT',
1345                     'errmsg'=> 'limit_openvz_vm_error_notint'),
1346             ),
1347             'default' => '0',
1348             'value'  => '',
1349             'separator' => '',
1350             'width'  => '10',
1351             'maxlength' => '10',
1352             'rows'  => '',
1353             'cols'  => ''
f414ab 1354         ),
T 1355         'limit_openvz_vm_template_id' => array (
b1a6a5 1356             'datatype' => 'INTEGER',
MC 1357             'formtype' => 'SELECT',
1358             'default' => '',
1359             'datasource' => array (  'type' => 'SQL',
1360                 'querystring' => 'SELECT template_id,template_name FROM openvz_template WHERE 1 ORDER BY template_name',
1361                 'keyfield'=> 'template_id',
1362                 'valuefield'=> 'template_name'
1363             ),
1364             'value'  => array(0 => ' ')
f414ab 1365         ),
526b99 1366         'limit_aps' => array (
b1a6a5 1367             'datatype' => 'INTEGER',
MC 1368             'formtype' => 'TEXT',
1369             'validators' => array (  0 => array ( 'type' => 'ISINT',
1370                     'errmsg'=> 'limit_aps_error_notint'),
1371             ),
1372             'default' => '-1',
1373             'value'  => '',
1374             'separator' => '',
1375             'width'  => '10',
1376             'maxlength' => '10',
1377             'rows'  => '',
1378             'cols'  => ''
526b99 1379         ),
b1a6a5 1380         //#################################
MC 1381         // END Datatable fields
1382         //#################################
532ae5 1383     )
L 1384 );
1385
1386 /*
1387 $form["tabs"]['ipaddress'] = array (
1388     'title'     => "IP Addresses",
1389     'width'     => 100,
1390     'template'     => "templates/client_edit_ipaddress.htm",
1391     'fields'     => array (
1392     ##################################
1393     # Beginn Datatable fields
1394     ##################################
1395         'ip_address' => array (
1396             'datatype'    => 'TEXT',
1397             'formtype'    => 'CHECKBOXARRAY',
1398             'default'    => '',
1399             'value'        => array('192.168.0.1' => '192.168.0.1', '192.168.0.2' => '192.168.0.2'),
1400             'separator'    => ';'
1401         ),
1402     ##################################
1403     # ENDE Datatable fields
1404     ##################################
1405     )
1406 );
1407 */
1408
1409
1410 ?>