summaryrefslogtreecommitdiff
path: root/sqlgrey/includes/opt_in_out.inc.php
blob: 236687f8c0c3abb7f14b0b96d273bce5bff140f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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";
	}
?>