"Fossies" - the Fresh Open Source Software Archive 
Member "proma-0.8.3/pages/admin.inc.php" (25 Oct 2007, 1478 Bytes) of package /linux/privat/old/proma-0.8.3.tar.gz:
The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 <?php
2
3 /* ProMA (ProFTPd MySQL Admin), Copyright (C) 2002-2007 Stein Magnus Jodal
4 * ProMA comes with ABSOLUTELY NO WARRANTY.
5 * This is free software, and you are welcome to redistribute it
6 * under the terms of the GNU General Public License.
7 * Read 'COPYING' for further information.
8 */
9
10 /* ProMA Administration Page
11 * $Id: admin.inc.php,v 1.6 2007/10/25 19:13:35 jodal Exp $
12 */
13
14 ?>
15
16 <h2>Administration</h2>
17
18 <?php
19
20 if ($runlevel == 1) {
21 // If logged in and everything is well, give full access
22
23 print "<p class=\"menu\">
24 <a href=\"?page=admin\">User List</a> |
25 <a href=\"?page=admin&action=logout\">Logout</a>
26 </p>\n";
27
28 $action = addslashes($_GET["action"]);
29 $id = addslashes($_GET["id"]);
30
31 // These functions are included from libs/admin.lib.php
32
33 switch ($action) {
34 case "change":
35 change($id);
36 break;
37 case "delete":
38 delete($id);
39 break;
40 case "open":
41 closed($id, 0);
42 break;
43 case "close":
44 closed($id, 1);
45 break;
46 default:
47 list_users();
48 }
49
50 } else {
51 // If not logged in, logged out or something failed, print login form
52 ?>
53
54 <form action="?page=admin" method="post">
55
56 <table>
57 <tr>
58 <th class="thv">Username</th>
59 <td><input type="text" name="userid" /></td>
60 </tr>
61
62 <tr>
63 <th class="thv">Password</th>
64 <td><input type="password" name="passwd" /></td>
65 </tr>
66 </table>
67
68 <p><input type="submit" name="login" value="Login" /></p>
69
70 </form>
71
72 <?php
73 if (!empty($message)) {
74 print "<p class=\"message\">$message</p>\n";
75 }
76 }
77 ?>