1 |
<html> |
2 |
|
3 |
<form action="<?= $PHP_SELF ?>" > |
4 |
<pre> |
5 |
<br> login: <input type="text" name="login" size=8 value="<?= $login ?>" > |
6 |
<br> password: <input type="password" name="passwd" size=8 value="<?= $passwd ?>" > |
7 |
<br>full name: <input type="text" name="full_name" size=40 value="<?= $full_name ?>" > |
8 |
<br> e-mail: <input type="text" name="email" size=20 value="<?= $email ?>" > |
9 |
</pre> |
10 |
<br><input type="submit" name="new" value="Generate"> line for .htusers |
11 |
</form> |
12 |
|
13 |
<hr> |
14 |
<? |
15 |
print "<p>Copy/paste following line in your <tt>.htusers</tt> file:</p>"; |
16 |
|
17 |
if ($login) { |
18 |
print "<tt>$login:$full_name:"; |
19 |
if (substr($passwd,0,5) != "auth_") { |
20 |
print md5($login.$passwd); |
21 |
} else { |
22 |
print $passwd; |
23 |
} |
24 |
print ":$email</tt>"; |
25 |
} |
26 |
?> |
27 |
|
28 |
</html> |