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'), ), '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') ), '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') ), ################################## # ENDE Datatable fields ################################## ) ); $form["tabs"]['quarantine'] = array ( 'title' => "Quarantine", 'width' => 100, 'template' => "templates/spamfilter_quarantine_edit.htm", 'fields' => array ( ################################## # Begin Datatable fields ################################## 'virus_quarantine_to' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'spam_quarantine_to' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'banned_quarantine_to' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'bad_header_quarantine_to' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'clean_quarantine_to' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'other_quarantine_to' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), ################################## # ENDE Datatable fields ################################## ) ); $form["tabs"]['taglevel'] = array ( 'title' => "Tag-Level", 'width' => 100, 'template' => "templates/spamfilter_taglevel_edit.htm", 'fields' => array ( ################################## # Begin Datatable fields ################################## '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', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'spam_subject_tag2' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), ################################## # ENDE Datatable fields ################################## ) ); $form["tabs"]['other'] = array ( 'title' => "Other", 'width' => 100, 'template' => "templates/spamfilter_other_edit.htm", 'fields' => array ( ################################## # Begin Datatable fields ################################## 'addr_extension_virus' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'addr_extension_spam' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'addr_extension_banned' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'addr_extension_bad_header' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', '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', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'virus_admin' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'banned_admin' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'bad_header_admin' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), 'spam_admin' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', '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', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), ################################## # ENDE Datatable fields ################################## ) ); ?>