-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
95 lines (82 loc) · 2.78 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
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
<?php
include_once("../../include/admin.inc.php");
?>
<html>
<head>
<title>Qmail Toaster Admin</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="/scripts/styles.css" type="text/css" />
<script language="JavaScript" src="/scripts/javascripts.js"></script>
<script language="JavaScript">
<!--
function CheckFormChangePassword(form) {
var numErrors = '' ;
var errors = '' ;
if (!isValidLength(form.oldpasswd.value, 2, 30)) {
errors += 'Please type your OLD PASSWORD.\n';
numErrors++;
}
if (!isValidLength(form.newpasswd.value, 2, 30)) {
errors += 'Please type your NEW PASSWORD.\n';
numErrors++;
}
if (!isValidLength(form.newpasswd2.value, 2, 30)) {
errors += 'Please retype your NEW PASSWORD.\n';
numErrors++;
}
if (form.newpasswd2.value != form.newpasswd.value) {
errors += 'Please be sure NEW PASSWORD retype is right.\n';
numErrors++;
}
if (numErrors) {
errors = 'Attention! ' + ((numErrors > 1) ? 'Theese' : 'This') + ' error' + ((numErrors > 1) ? 's' : '') + ' ' + ((numErrors > 1) ? 'were' : 'was') + ' detected :\n\n' + errors + '\n';
alert(errors);
return false;
}
return true;
}
-->
</script>
</head>
<body text="#000000" vlink="#004400" alink="#ff0000" link="#007700" bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="/images-toaster/background.gif">
<center>
<form action="<?php print ''; ?>" method="POST" onSubmit="return CheckFormChangePassword(this)">
<table width="750" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="203"><a href="http://www.qmail.org/"><img height="163" alt="logo" src="/images-toaster/kl-qmail-w.gif" width="200" border="0"></a> </td>
<td align="center" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody><tr align="center" valign="middle">
<td>
<h1><font color="#006600"><b>Qmail Toaster Admin</b></font></h1>
</td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2" bgcolor="#007700"><b><font color="#ffffff">Change Admin Password:</font></b> </td>
</tr>
<tr>
<td colspan="2"><br>
<?php print_change_passwd($_POST['oldpasswd'], $_POST['newpasswd'], $_POST['newpasswd2']); ?>
<br></td>
</tr>
<tr>
<td colspan="2" bgcolor="#007700"><b><font color="#ffffff">Quick Go:</font></b></td>
</tr>
<tr>
<td colspan="2"><br>
<?php print_quick_go(); ?>
<br></td>
</tr>
</tbody>
</table>
<br><i><a href="http://qmailtoaster.com" target="_blank">Qmail Toaster © 2004-2014</a></i><br>
</form>
</center>
</body></html>