blob: 3b0cbd8c805eb4d9c034bf661857c3da0c8ae51a (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
<?php
/********************************************
SQLgrey Web Interface
Filename: index.php
Purpose: Renders the main menu page
Version: 1.1.6
*********************************************/
require "includes/functions.inc.php";
$query = "SELECT COUNT(*) AS count FROM connect";
$result = do_query($query);
$line = fetch_row($result);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>SQLGrey Webinterface</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="main.css" type="text/css" charset="utf-8" />
<style type="text/css">
input { width: 150px; height: 25px; font-size: 13px; }
</style>
</head>
<body>
<div id="page">
<div class="navcontainer">
<?php shownav('grey','','ind','ind'); ?>
</div>
<table width="77%" summary="main">
<tr>
<td>
<table width="820" border="0" summary="header">
<tr>
<td>
<h1>SQLGrey Webinterface (Main menu)</h1>
</td>
<?php if ($close_btn == "yes") echo ('
<td align="right">
<form action="../" method="post">
<input type="submit" value="Close" />
</form>
</td>');
?>
</tr>
</table>
<table border="0" summary="sub">
<tr>
<td colspan="3">
Hosts / domains that are currently greylisted: [<?php echo $line["count"]; ?>]
</td>
</tr>
<tr>
<td colspan="3">
<form action="connect.php" method="post">
<input style="width:150px;" type="submit" value="Waiting (greylist)" />
</form>
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3">Auto-whitelisted (hosts / domains that have passed greylisting)</td>
</tr>
<tr>
<td>
<form action="awl.php?mode=email" method="post">
<input type="submit" value="E-mail addresses" />
</form>
</td>
<td>
<form action="awl.php?mode=domains" method="post">
<input type="submit" value="Domains" />
</form>
</td>
<td width="40%"> </td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3">
<form action="opt_in_out.php?direction=out&what=domain" method="post">
<input type="submit" value="Optout domain" />
(<?php echo $dom_out; ?>)
</form>
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3">
<form action="opt_in_out.php?direction=out&what=email" method="post">
<input type="submit" value="Optout e-mail" />
(<?php echo $email_out; ?>)
</form>
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3">
<form action="opt_in_out.php?direction=in&what=domain" method="post">
<input type="submit" value="Optin domain" />
(<?php echo $dom_in; ?>)
</form>
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3">
<form action="opt_in_out.php?direction=in&what=email" method="post">
<input type="submit" value="Optin e-mail" />
(<?php echo $email_in; ?>)
</form>
</td>
</tr>
</table>
<br />
</td>
</tr>
</table>
<div id="footer" style="width: 800px;">
<?php require "includes/copyright.inc.php" ?>
</div>
</div>
</body>
</html>
|