forked from mkay/Exim4UI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadminlists.php
69 lines (65 loc) · 3.04 KB
/
adminlists.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
<?php
include_once dirname(__FILE__) . '/config/variables.php';
include_once dirname(__FILE__) . '/config/functions.php';
include_once dirname(__FILE__) . '/config/httpheaders.php';
include_once dirname(__FILE__) . '/config/authpostmaster.php';
if (isset($_POST['listname'])) {
if ($mailmandomain == "default") {
header ("Location: $mailmanprotocol://{$_SESSION['domain']}/$mailmanpath/admin/{$_POST['listname']}");
} else {
header ("Location: $mailmanprotocol://$mailmandomain/$mailmanpath/admin/{$_POST['listname']}");
}
}
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<title><?php echo _('Exim4U') . ': ' . _('Mailing List Administration'); ?></title>
<meta charset="utf-8" />
<link rel="stylesheet" href="css/bootstrap.min.css" />
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.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>
<div class="container">
<?php include dirname(__FILE__) . '/config/header.php'; ?>
<div class="navbar">
<div class="navbar-inner">
<ul id="menu" class="nav">
<?php
if ($mailmandomain == "default") {
print "<li><a href=\"$mailmanprotocol://{$_SESSION['domain']}/$mailmanpath/listinfo\">" . _('View Lists') . '</a></li>';
print "<li><a href=\"$mailmanprotocol://{$_SESSION['domain']}/$mailmanpath/create\">" . _('Add A List') . '</a></li>';
} else {
print "<li><a href=\"$mailmanprotocol://$mailmandomain/$mailmanpath/listinfo\">" . _('View Lists') . '</a></li>';
print "<li><a href=\"$mailmanprotocol://$mailmandomain/$mailmanpath/create\">" . _('Add A List') . '</a></li>';
} ?>
<li><a href="admin.php"><?php echo _('Main Menu'); ?></a></li>
<li><a href="logout.php"><?php echo _('Logout'); ?></a></li>
</ul>
</div>
</div>
<h4><?php print _('Mailman Lists'); ?></h4>
<form name="adminlists" method="post" action="adminlists.php">
<table align="center">
<tr>
<td>
<?php echo _('Mailman List Administration') .'<br><br>'; ?>
<?php echo _('Please Enter A List Name'); ?>:
</td>
</tr>
<tr>
<td><input name="listname" type="text" /></td>
</tr>
<tr>
<td><input class="btn" name="submit" type="submit" value="<?php echo _('Submit'); ?>" /></td>
</tr>
</table>
</form>
</div>
</body>
</html>