root/alternc-awstats/tags/nightly_sarge/bureau/admin/aws_users.php

Revision 1048, 2.9 kB (checked in by anonymous, 4 years ago)

typo

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2 /*
3  $Id$
4  ----------------------------------------------------------------------
5  AlternC - Web Hosting System
6  Copyright (C) 2002 by the AlternC Development Team.
7  http://alternc.org/
8  ----------------------------------------------------------------------
9  Based on:
10  Valentin Lacambre's web hosting softwares: http://altern.org/
11  ----------------------------------------------------------------------
12  LICENSE
13
14  This program is free software; you can redistribute it and/or
15  modify it under the terms of the GNU General Public License (GPL)
16  as published by the Free Software Foundation; either version 2
17  of the License, or (at your option) any later version.
18
19  This program is distributed in the hope that it will be useful,
20  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  GNU General Public License for more details.
23
24  To read the license please visit http://www.gnu.org/copyleft/gpl.html
25  ----------------------------------------------------------------------
26  Original Author of file: Benjamin Sonntag
27  Purpose of file: List awstats accounts of the user.
28  ----------------------------------------------------------------------
29 */
30 require_once("../class/config.php");
31
32 $nologin=false;
33 if (!$r=$aws->list_login()) {
34     $nologin=true;
35     $error=$err->errstr();
36 }
37
38 include("head.php");
39 ?>
40 </head>
41 <body>
42 <h3><?php __("Awstats allowed user list"); ?></h3>
43
44 <form method="post" action="aws_useradd.php" name="main">
45 <table border="1" cellspacing="0" cellpadding="4">
46 <tr><th>
47 <label for="login"><?php __("Username"); ?></label></th><td>
48     <select class="inl" name="prefixe"><?php $aws->select_prefix_list($prefixe); ?></select>&nbsp;<b>_</b>&nbsp;<input type="text" class="int" name="login" id="login" value="" size="20" maxlength="64" />
49 </td></tr>
50 <tr><th><label for="pass"><?php __("Password"); ?></label></th><td><input type="text" class="int" name="pass" id="pass" value="" size="20" maxlength="64" /></td></tr>
51 <tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create this new awstat account."); ?>" /></td></tr>
52 </table>
53 </form>
54
55 <?php
56
57
58 if ($error) {
59 ?>
60 <p class="error"><?php echo $error ?></p>
61 <?php }
62
63 if (!$nologin) {
64 ?>
65
66
67 <form method="post" action="aws_userdel.php">
68 <table cellspacing="0" cellpadding="4">
69 <tr><th colspan="2">&nbsp;</th><th><?php __("Username"); ?></th></tr>
70 <?php
71 $col=1;
72 foreach ($r as $val) {
73     $col=3-$col;
74 ?>
75     <tr class="lst<?php echo $col; ?>">
76         <td align="center"><input type="checkbox" class="inc" id="del_<?php echo $val; ?>" name="del_<?php echo $val; ?>" value="<?php echo $val; ?>" /></td>
77         <td><a href="aws_pass.php?login=<?php echo $val ?>"><?php __("Change password"); ?></a></td>
78         <td><label for="del_<?php echo $val; ?>"><?php echo $val ?></label></td>
79     </tr>
80 <?php
81     }
82 ?>
83 <tr><td colspan="5"><input type="submit" name="submit" class="inb" value="<?php __("Delete checked accounts"); ?>" /></td></tr>
84 </table>
85 </form>
86 <?php
87  }
88 ?>
89 </body>
90 </html>
91
Note: See TracBrowser for help on using the browser.