-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.php
54 lines (45 loc) · 3.03 KB
/
index.php
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
<html>
<head>
<title>RBLMS</title>
<link rel="stylesheet" type="text/css" href="/include/style.css">
<link rel="SHORTCUT ICON" href="favicon.ico">
<meta charset="utf-8" />
<script src="/include/ajaxsbmt.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js" type="text/javascript" charset="utf-8"></script>
<script src="https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?load=effects" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<h1><b>R</b>eal <b>T</b>ime <b>B</b>lock<b>L</b>ist <b>M</b>anagement <b>S</b>ystem</h1>
<?php
require_once('config.php');
require_once('function.php');
checkSSL();
if ( $require_auth )
if ( username() == 'unknown' ) exit ("<p>You MUST configure your server to use authentication.</p>");
if ( $imapListActive )
print ' <p style="text-align: right"><a href="/spamreport" target="_new">SPAM Learn Observer</a></p>';
print <<<END
<form name="check" action="result.php" accept-charset="utf-8" onSubmit="xmlhttpPost('result.php', 'check', 'Risultato', '<img src=\'/include/pleasewait.gif\'>'); return false;" enctype="text/plain" method="post" target="_self">
Lookup <select class="input_text" name="genere" size="1">
END;
$option=NULL;
$desc = array_keys($tables);
foreach ($desc as $description) {
$disabled = $tables["$description"]['active']==TRUE ? '' : ' disabled';
$option .= '<option value="'.$description."\"$disabled>$description</option>";
}
print <<<END
$option
</select> <input class="input_text" maxlength="90" name="Value" size="30" type="text" value="ALL" required pattern="((((^|\.)((25[0-5])|(2[0-4]\d)|(1\d\d)|([1-9]?\d))){4})|(((^|\.)((25[0-5])|(2[0-4]\d)|(1\d\d)|([1-9]?\d))){4})\/(((255\.){3}(255|254|252|248|240|224|192|128|0+))|((255\.){2}(255|254|252|248|240|224|192|128|0+)\.0)|((255\.)(255|254|252|248|240|224|192|128|0+)(\.0+){2})|((255|254|252|248|240|224|192|128|0+)(\.0+){3}))|(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])|\b([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}\b|ALL)$" title="A valid key is required, or the word 'ALL'" /> <input name="Check" type="submit" value="Check" />
<!-- <input name="Find" type="button" value="Get Sender IP from source mail" onClick="xmlhttpPost('mailform.htm', 'check', 'Risultato', '<img src=\'/include/pleasewait.gif\'>'); return false;"> --></form>
END;
?>
<hr>
<DIV id='Risultato'></DIV>
<div style="clear: both">
<hr>
<p>RBLMS works with authomated listing mechanisms. RFC6471 compliants. HTML5 browser required.</p>
<h5 style="margin-top:1ex;margin-bottom:0;text-align: center">Just your Personal <i>RBLMS</i> - Version <?php echo $version; ?></h5>
</div>
</body>
</html>