-
Notifications
You must be signed in to change notification settings - Fork 3
/
sitechangerelay.php
77 lines (73 loc) · 3.6 KB
/
sitechangerelay.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
include_once dirname(__FILE__) . "/config/variables.php";
include_once dirname(__FILE__) . "/config/authsite.php";
include_once dirname(__FILE__) . "/config/functions.php";
include_once dirname(__FILE__) . "/config/httpheaders.php";
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<title><?php echo _("Exim4U") . ": " . _("Manage Domains"); ?></title>
<meta charset="utf-8" />
<link rel="stylesheet" href="css/bootstrap.min.css" />
<script src="js/jquery.min.js"></script>
<script src="js/scripts.js"></script>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body onLoad="document.passwordchange.localpart.focus()">
<div class="container">
<?php include dirname(__FILE__) . "/config/header_domain.php"; ?>
<div class="navbar">
<div class="navbar-inner">
<ul id="menu" class="nav">
<li><a href="site.php"><?php echo _("Manage Domains"); ?></a></li>
<li><a href="sitepassword.php"><?php echo _("Site Password"); ?></a></li>
<li><a href="logout.php"><?php echo _("Logout"); ?></a></li>
</ul>
</div>
</div>
<table>
<tr>
<th><?php echo _("Modify Relay Domain Properties"); ?>:</th>
<th>
<?php
$query = "SELECT * FROM domains WHERE domain_id='{$_GET['domain_id']}'";
$result = $db->query($query);
if ($result->numRows()) { $row = $result->fetchRow(); }
echo _("Relay Domain: "); echo $row['domain'];
?>
</th>
</tr>
<form name="domainchange" method="post" action="sitechangerelaysubmit.php">
<input name="domain_id" type="hidden" value="<?php print $_GET['domain_id']; ?>" />
<input name="domain" type="hidden" value="<?php print $_GET['domain']; ?>" />
<tr>
<td><?php echo _('Relay Server Address'); ?>:</td>
<td><input type="text" size="30" name="relaydest" value="<?php print $row['relay_address']; ?>" /></td>
</tr>
<tr>
<td><?php echo _("Spamassassin Tag Score"); ?>:</td>
<td><input type="text" size="5" name="sa_tag" value="<?php print $row['sa_tag']; ?>" /></td>
</tr>
<tr>
<td><?php echo _("Spamassassin Discard Score"); ?>:</td>
<td><input type="text" size="5" name="sa_refuse" value="<?php print $row['sa_refuse']; ?>" /></td>
</tr>
<tr>
<td><?php echo _("Spamassassin"); ?>:</td>
<td><input type="checkbox" name="spamassassin" <?php if ($row['spamassassin'] == 1) {print "checked";} ?> /></td>
</tr>
<tr>
<td></td>
<td>
<input name="domain_id" type="hidden" value="<?php print $_GET['domain_id']; ?>" />
<input name="domain" type="hidden" value="<?php print $_GET['domain']; ?>" />
<input class="btn" name="submit" size="25" type="submit" value="<?php echo _("Submit Changes"); ?>" />
</td>
</tr>
</table>
</div>
</body>
</html>