/[docman]/adduser.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /adduser.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Wed Jul 3 08:42:11 2002 UTC (21 years, 9 months ago) by dpavlin
Branch: MAIN
CVS Tags: HEAD
generate .htusers entry using only php

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>

  ViewVC Help
Powered by ViewVC 1.1.26