0 id must match with id of current user $form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user $form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete $form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete $form["auth_preset"]["perm_other"] = 'r'; //r = read, i = insert, u = update, d = delete $form["tabs"]['policy'] = array ( 'title' => "Policy", 'width' => 100, 'template' => "templates/spamfilter_policy_edit.htm", 'fields' => array ( //################################# // Begin Datatable fields //################################# 'policy_name' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', 'errmsg'=> 'policyname_error_notempty'), ), 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'virus_lover' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'SELECT', 'default' => 'N', 'value' => array('N' => 'No', 'Y' => 'Yes') ), 'spam_lover' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'SELECT', 'default' => 'N', 'value' => array('N' => 'No', 'Y' => 'Yes') ), //################################# // ENDE Datatable fields //################################# ) ); $form["tabs"]['amavis'] = array ( 'title' => "Amavis", 'width' => 100, 'template' => "templates/spamfilter_amavis_edit.htm", 'fields' => array ( //################################# // Begin Datatable fields //################################# 'banned_files_lover' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'SELECT', 'default' => 'N', 'value' => array('N' => 'No', 'Y' => 'Yes') ), 'bad_header_lover' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'SELECT', 'default' => 'N', 'value' => array('N' => 'No', 'Y' => 'Yes') ), 'bypass_virus_checks' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'SELECT', 'default' => 'N', 'value' => array('N' => 'No', 'Y' => 'Yes') ), 'bypass_banned_checks' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'SELECT', 'default' => 'N', 'value' => array('N' => 'No', 'Y' => 'Yes') ), 'bypass_header_checks' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'SELECT', 'default' => 'N', 'value' => array('N' => 'No', 'Y' => 'Yes') ), 'virus_quarantine_to' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'spam_quarantine_to' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'banned_quarantine_to' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'bad_header_quarantine_to' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'clean_quarantine_to' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'other_quarantine_to' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'spam_tag_level' => array ( 'datatype' => 'DOUBLE', 'formtype' => 'TEXT', 'default' => '0', 'value' => '', 'width' => '10', 'maxlength' => '255' ), 'spam_tag2_level' => array ( 'datatype' => 'DOUBLE', 'formtype' => 'TEXT', 'default' => '0', 'value' => '', 'width' => '10', 'maxlength' => '255' ), 'spam_kill_level' => array ( 'datatype' => 'DOUBLE', 'formtype' => 'TEXT', 'default' => '0', 'value' => '', 'width' => '10', 'maxlength' => '255' ), 'spam_dsn_cutoff_level' => array ( 'datatype' => 'DOUBLE', 'formtype' => 'TEXT', 'default' => '0', 'value' => '', 'width' => '10', 'maxlength' => '255' ), 'spam_quarantine_cutoff_level' => array ( 'datatype' => 'DOUBLE', 'formtype' => 'TEXT', 'default' => '0', 'value' => '', 'width' => '10', 'maxlength' => '255' ), 'spam_modifies_subj' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'SELECT', 'default' => 'N', 'value' => array('N' => 'No', 'Y' => 'Yes') ), 'spam_subject_tag' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'spam_subject_tag2' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'addr_extension_virus' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'addr_extension_spam' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'addr_extension_banned' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'addr_extension_bad_header' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'warnvirusrecip' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'SELECT', 'default' => 'N', 'value' => array('N' => 'No', 'Y' => 'Yes') ), 'warnbannedrecip' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'SELECT', 'default' => 'N', 'value' => array('N' => 'No', 'Y' => 'Yes') ), 'warnbadhrecip' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'SELECT', 'default' => 'N', 'value' => array('N' => 'No', 'Y' => 'Yes') ), 'newvirus_admin' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'virus_admin' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'banned_admin' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'bad_header_admin' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'spam_admin' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'message_size_limit' => array ( 'datatype' => 'INTEGER', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '10', 'maxlength' => '255' ), 'banned_rulenames' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), //################################# // ENDE Datatable fields //################################# ) ); $form["tabs"]['rspamd'] = array ( 'title' => "Rspamd", 'width' => 100, 'template' => "templates/spamfilter_rspamd_edit.htm", 'fields' => array ( //################################# // Begin Datatable fields //################################# 'rspamd_greylisting' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'CHECKBOX', 'default' => 'y', 'value' => array(0 => 'n', 1 => 'y') ), 'rspamd_spam_greylisting_level' => array ( 'datatype' => 'DOUBLE', 'formtype' => 'TEXT', 'default' => '0', 'value' => '', 'width' => '10', 'maxlength' => '255' ), 'rspamd_spam_tag_level' => array ( 'datatype' => 'DOUBLE', 'formtype' => 'TEXT', 'default' => '0', 'value' => '', 'width' => '10', 'maxlength' => '255' ), 'rspamd_spam_tag_method' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'SELECT', 'default' => 'rewrite_subject', 'value' => array('add_header' => $app->lng('add_header_txt'), 'rewrite_subject' => $app->lng('rewrite_subject_txt')) ), 'rspamd_spam_kill_level' => array ( 'datatype' => 'DOUBLE', 'formtype' => 'TEXT', 'default' => '0', 'value' => '', 'width' => '10', 'maxlength' => '255' ), //################################# // ENDE Datatable fields //################################# ) );