|
18 | 18 |
|
19 | 19 | ?>
|
20 | 20 | </pre>
|
21 |
| - <form action=<?=$PHP_SELF?> method=post> |
| 21 | + <form action=<?php echo $PHP_SELF?> method=post> |
22 | 22 | <input type=submit name=submit value="Back to Menu">
|
23 | 23 | </form>
|
24 |
| - <? |
| 24 | + <?php |
25 | 25 | printFooter(false);
|
26 | 26 | break;
|
27 | 27 |
|
28 | 28 | case 'add_user_form';
|
29 | 29 | printHeader('admin');
|
30 | 30 | ?>
|
31 | 31 | <body onLoad="self.focus();document.form.login.focus()">
|
32 |
| - <form action=<?=$PHP_SELF?> method=post name=form> |
| 32 | + <form action=<?php echo $PHP_SELF?> method=post name=form> |
33 | 33 | <table>
|
34 | 34 | <th colspan=2><h3>Add User or Change Password</h3></th>
|
35 |
| - <tr><td>User ID</td><td><input type=text name=login value="<?=htvar($login)?>" maxlength=15 size=15></td></tr> |
| 35 | + <tr><td>User ID</td><td><input type=text name=login value="<?php echo htvar($login)?>" maxlength=15 size=15></td></tr> |
36 | 36 | <tr><td>Password </td><td><input type=password name=passwd value='' size=20></td></tr>
|
37 | 37 | <tr><td>Verify Password </td><td><input type=password name=passwdv value='' size=20></td></tr>
|
38 | 38 | </table>
|
39 | 39 | <input type=hidden name=stage value=add_user>
|
40 | 40 | <input type=submit name=submit value='Submit'>
|
41 | 41 | </form>
|
42 |
| - <? |
| 42 | + <?php |
43 | 43 | break;
|
44 | 44 |
|
45 | 45 | case 'add_user':
|
|
49 | 49 |
|
50 | 50 | ?>
|
51 | 51 | <p><center>
|
52 |
| - <form action=<?=$PHP_SELF?> method=post> |
| 52 | + <form action=<?php echo $PHP_SELF?> method=post> |
53 | 53 | <input type=hidden name=stage value=add_user_form>
|
54 |
| - <input type=hidden name=login value="<?=htvar($login)?>"> |
| 54 | + <input type=hidden name=login value="<?php echo htvar($login)?>"> |
55 | 55 | <input type=submit name=submit value=Back>
|
56 | 56 | </form></center>
|
57 |
| - <? |
| 57 | + <?php |
58 | 58 | }
|
59 | 59 | else {
|
60 | 60 | $pwdfile = escapeshellarg($config['passwd_file']);
|
|
65 | 65 | system("htpasswd -bm $pwdfile $login $passwd 2>&1")
|
66 | 66 | ?>
|
67 | 67 | <p>
|
68 |
| - <form action=<?=$PHP_SELF?> method=post> |
| 68 | + <form action=<?php echo $PHP_SELF?> method=post> |
69 | 69 | <input type=submit name=submit value="Back to Menu">
|
70 | 70 | </form>
|
71 |
| - <? |
| 71 | + <?php |
72 | 72 | }
|
73 | 73 | printFooter();
|
74 | 74 | break;
|
|
77 | 77 | printHeader('admin');
|
78 | 78 | ?>
|
79 | 79 | <body onLoad="self.focus();document.form.login.focus()">
|
80 |
| - <form action=<?=$PHP_SELF?> method=post name=form> |
| 80 | + <form action=<?php echo $PHP_SELF?> method=post name=form> |
81 | 81 | <table>
|
82 | 82 | <th colspan=2><h3>Remove User</h3></th>
|
83 |
| - <tr><td>User ID</td><td><input type=text name=login value="<?=htvar($login)?>" maxlength=15 size=15></td></tr> |
| 83 | + <tr><td>User ID</td><td><input type=text name=login value="<?php echo htvar($login)?>" maxlength=15 size=15></td></tr> |
84 | 84 | </table>
|
85 | 85 | <input type=hidden name=stage value=del_user>
|
86 | 86 | <input type=submit name=submit value='Submit'>
|
87 | 87 | </form>
|
88 |
| - <? |
| 88 | + <?php |
89 | 89 | printFooter();
|
90 | 90 | break;
|
91 | 91 | case 'del_user':
|
|
98 | 98 | system("htpasswd -D $pwdfile $login 2>&1")
|
99 | 99 | ?>
|
100 | 100 | <p>
|
101 |
| - <form action=<?=$PHP_SELF?> method=post> |
| 101 | + <form action=<?php echo $PHP_SELF?> method=post> |
102 | 102 | <input type=submit name=submit value="Back to Menu">
|
103 | 103 | </form>
|
104 |
| - <? |
| 104 | + <?php |
105 | 105 | printFooter();
|
106 | 106 | break;
|
107 | 107 |
|
|
113 | 113 | <center>
|
114 | 114 | <table class=menu><th class=menu>SYSADMIN MENU</th>
|
115 | 115 | <tr><td class=menu style="padding-left: 1em;"><table>
|
116 |
| - <tr><td class=menu-pad><a href=<?=$PHP_SELF?>?stage=add_user_form>Add User or Change Password</a></td></tr> |
117 |
| - <tr><td class=menu-pad><a href=<?=$PHP_SELF?>?stage=del_user_form>Remove User</a></td></tr> |
118 |
| - <tr><td class=menu-pad><a href=<?=$PHP_SELF?>?stage=list_users>List Password File Contents</a></td></tr> |
| 116 | + <tr><td class=menu-pad><a href=<?php echo $PHP_SELF?>?stage=add_user_form>Add User or Change Password</a></td></tr> |
| 117 | + <tr><td class=menu-pad><a href=<?php echo $PHP_SELF?>?stage=del_user_form>Remove User</a></td></tr> |
| 118 | + <tr><td class=menu-pad><a href=<?php echo $PHP_SELF?>?stage=list_users>List Password File Contents</a></td></tr> |
119 | 119 | </table></td></tr>
|
120 | 120 | </table>
|
121 | 121 | </center>
|
122 | 122 | <br><br>
|
123 |
| - <? |
| 123 | + <?php |
124 | 124 | printFooter();
|
125 | 125 | }
|
126 | 126 |
|
|
0 commit comments