summaryrefslogtreecommitdiff
path: root/sqlgrey/includes/opt_in_out.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'sqlgrey/includes/opt_in_out.inc.php')
-rw-r--r--sqlgrey/includes/opt_in_out.inc.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/sqlgrey/includes/opt_in_out.inc.php b/sqlgrey/includes/opt_in_out.inc.php
new file mode 100644
index 0000000..236687f
--- /dev/null
+++ b/sqlgrey/includes/opt_in_out.inc.php
@@ -0,0 +1,31 @@
+<?php
+
+/**************************************
+SQLgrey Web Interface
+Filename: opt_in_out.inc.php
+Purpose: Opt in/out functions
+Version: 1.1.6
+***************************************/
+
+ if ($_GET["direction"] == "out") {
+ $title = "Opt-out";
+ $helptag_dir = "<br />(recipients for whom messages are never greylisted)";
+ $table = "optout_";
+ } else {
+ $title = "Opt-in";
+ $helptag_dir = "<br />(recipients for whom messages are always greylisted unless they are in the ";
+ $table = "optin_";
+ }
+
+ if ($_GET["what"] == "domain") {
+ $title .= " domains";
+ $helptag_what = "optout domain table)";
+ $table .= "domain";
+ $field = "domain";
+ } else {
+ $title .= " e-mail addresses";
+ $helptag_what = "optout e-mail table)";
+ $table .= "email";
+ $field = "email";
+ }
+?> \ No newline at end of file