array( "Back to Amavis" => "amavis-main.php" ), )); # Process an option function process_post_option($option) { $results = array(); # Inherit if ($option == 0) { array_push($results,NULL); array_push($results,0); # Explicit yes } elseif ($option == 1) { array_push($results,1); array_push($results,2); # Explicit no } elseif ($option == 2) { array_push($results,0); array_push($results,2); } return $results; }; # Process a value function process_post_value($option,$value) { $results = array(); # Inherit if ($option == 0) { array_push($results,NULL); array_push($results,0); # Override } elseif ($option == 2) { array_push($results,$value); array_push($results,2); } return $results; }; # Process a list of items function process_post_list($option,$value) { $results = array(); # Inherit if ($option == 0) { array_push($results,NULL); array_push($results,0); # Merge } elseif ($option == 1) { array_push($results,$value); array_push($results,1); # Override } elseif ($option == 2) { array_push($results,$value); array_push($results,2); } return $results; }; if ($_POST['frmaction'] == "add") { ?>
Name
Link to policy
Bypass Checks
Virus
Banned File
Spam
Header
Anti-spam Settings
Tag Level
Tag2 Level
Tag3 Level
Kill Level
DSN Cutoff Level
Quarantine Cutoff Level
Modify Subject
Tag Subject
Tag2 Subject
Tag3 Subject
General Checks
Max Message Size (in Kbyte)
Banned Files
Whitelist & Blacklist
Sender Whitelist
Sender Blacklist
Admin Notifications
New Virus
Virus
Spam
Banned File
Bad Header
Quarantine
Virus
Spam
Banned File
Bad Header
Interception
BCC To
 
Comment
Policy ID cannot be empty
Name cannot be empty
prepare(" INSERT INTO ${DB_TABLE_PREFIX}amavis_rules ( PolicyID,Name, bypass_virus_checks, bypass_virus_checks_m, bypass_banned_checks, bypass_banned_checks_m, bypass_spam_checks, bypass_spam_checks_m, bypass_header_checks, bypass_header_checks_m, spam_tag_level, spam_tag_level_m, spam_tag2_level, spam_tag2_level_m, spam_tag3_level, spam_tag3_level_m, spam_kill_level, spam_kill_level_m, spam_dsn_cutoff_level, spam_dsn_cutoff_level_m, spam_quarantine_cutoff_level, spam_quarantine_cutoff_level_m, spam_modifies_subject, spam_modifies_subject_m, spam_tag_subject, spam_tag_subject_m, spam_tag2_subject, spam_tag2_subject_m, spam_tag3_subject, spam_tag3_subject_m, max_message_size, max_message_size_m, banned_files, banned_files_m, sender_whitelist, sender_whitelist_m, sender_blacklist, sender_blacklist_m, notify_admin_newvirus, notify_admin_newvirus_m, notify_admin_virus, notify_admin_virus_m, notify_admin_spam, notify_admin_spam_m, notify_admin_banned_file, notify_admin_banned_file_m, notify_admin_bad_header, notify_admin_bad_header_m, quarantine_virus, quarantine_virus_m, quarantine_spam, quarantine_spam_m, quarantine_banned_file, quarantine_banned_file_m, quarantine_bad_header, quarantine_bad_header_m, bcc_to, bcc_to_m, Comment, Disabled ) VALUES ( ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?,?, ?, 1 )" ); if (!$stmt) { print_r( $db->errorInfo() ); } $res = $stmt->execute($dbinfo); if ($res) { ?>
Amavis rule created
Failed to create Amavis rule
errorInfo()) ?>
Invalid invocation