Marius Cramer
2013-11-14 7fe908c50c8dbc5cc05f571dbe11d66141caacd4
interface/web/mail/form/spamfilter_policy.tform.php
@@ -33,16 +33,16 @@
*/
$form["title"]          = "Spamfilter policy";
$form["description"]    = "";
$form["name"]          = "spamfilter_policy";
$form["action"]         = "spamfilter_policy_edit.php";
$form["db_table"]      = "spamfilter_policy";
$form["db_table_idx"]   = "id";
$form["db_history"]      = "yes";
$form["tab_default"]   = "policy";
$form["list_default"]   = "spamfilter_policy_list.php";
$form["auth"]         = 'yes'; // yes / no
$form["title"]    = "Spamfilter policy";
$form["description"]  = "";
$form["name"]    = "spamfilter_policy";
$form["action"]   = "spamfilter_policy_edit.php";
$form["db_table"]  = "spamfilter_policy";
$form["db_table_idx"] = "id";
$form["db_history"]  = "yes";
$form["tab_default"] = "policy";
$form["list_default"] = "spamfilter_policy_list.php";
$form["auth"]   = 'yes'; // yes / no
$form["auth_preset"]["userid"]  = 0; // 0 = id of the user, > 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
@@ -51,332 +51,332 @@
$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
   ##################################
   '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'
         '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')
         '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')
         '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')
         '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')
         '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')
         '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')
         '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')
         'datatype' => 'VARCHAR',
         'formtype' => 'SELECT',
         'default' => 'N',
         'value'  => array('N' => 'No', 'Y' => 'Yes')
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
      //#################################
      // ENDE Datatable fields
      //#################################
   )
);
$form["tabs"]['quarantine'] = array (
   'title'    => "Quarantine",
   'width'    => 100,
   'template'    => "templates/spamfilter_quarantine_edit.htm",
   'fields'    => array (
   ##################################
   # Begin Datatable fields
   ##################################
   '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'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
      'spam_quarantine_to' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
      'banned_quarantine_to' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
         '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'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
      'clean_quarantine_to' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
      'other_quarantine_to' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
      //#################################
      // ENDE Datatable fields
      //#################################
   )
);
$form["tabs"]['taglevel'] = array (
   'title'    => "Tag-Level",
   'width'    => 100,
   'template'    => "templates/spamfilter_taglevel_edit.htm",
   'fields'    => array (
   ##################################
   # Begin Datatable fields
   ##################################
   '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'
         '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'
         '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'
         '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'
         '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'
         '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')
         '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'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
      'spam_subject_tag2' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
      //#################################
      // ENDE Datatable fields
      //#################################
   )
);
$form["tabs"]['other'] = array (
   'title'    => "Other",
   'width'    => 100,
   'template'    => "templates/spamfilter_other_edit.htm",
   'fields'    => array (
   ##################################
   # Begin Datatable fields
   ##################################
   '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'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
      'addr_extension_spam' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
      'addr_extension_banned' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
         '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'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
      'warnvirusrecip' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'SELECT',
         'default'   => 'N',
         'value'      => array('N' => 'No','Y' => 'Yes')
         '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')
         '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')
         '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'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
      'virus_admin' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
      'banned_admin' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
      'bad_header_admin' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
      'spam_admin' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
      'message_size_limit' => array (
         'datatype'   => 'INTEGER',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '10',
         'maxlength'   => '255'
         'datatype' => 'INTEGER',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '10',
         'maxlength' => '255'
      ),
      'banned_rulenames' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
      //#################################
      // ENDE Datatable fields
      //#################################
   )
);
?>
?>