1 <?php 2 3 /************************************** 4 SQLgrey Web Interface 5 Filename: opt_in_out.inc.php 6 Purpose: Opt in/out functions 7 Version: 1.1.8 8 ***************************************/ 9 10 if ($_GET["direction"] == "out") { 11 $title = "Opt-out"; 12 $helptag_dir = "<br />(recipients for whom messages are never greylisted)"; 13 $table = "optout_"; 14 } else { 15 $title = "Opt-in"; 16 $helptag_dir = "<br />(recipients for whom messages are always greylisted unless they are in the "; 17 $table = "optin_"; 18 } 19 20 if ($_GET["what"] == "domain") { 21 $title .= " domains"; 22 $helptag_what = "optout domain table)"; 23 $table .= "domain"; 24 $field = "domain"; 25 } else { 26 $title .= " e-mail addresses"; 27 $helptag_what = "optout e-mail table)"; 28 $table .= "email"; 29 $field = "email"; 30 } 31 ?>