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

Revision 1051, 2.7 kB (checked in by anonymous, 4 years ago)

Misc typos

  • 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 statistics and manage them.
28  ----------------------------------------------------------------------
29 */
30 require_once("../class/config.php");
31
32 $nosta=false;
33 if (!$r=$aws->get_list()) {
34     $error=$err->errstr();
35     $nosta=true;
36 }
37
38 include("head.php");
39 ?>
40 </head>
41 <body>
42 <h3><?php __("Statistics List"); ?></h3>
43 <p>
44         - <a href="aws_users.php"><?php __("Manage allowed users' accounts"); ?></a><br />
45 <?php
46     if ($quota->cancreate("aws")) { ?>
47         - <a href="aws_add.php"><?php __("Create new Statistics"); ?></a><br />
48 <?php      }
49 ?>
50 </p>
51 <?php
52     if ($error) {
53         echo "<p class=\"error\">$error</p>";
54     }
55
56 if (!$nosta) {
57 ?>
58
59 <form method="post" action="aws_del.php">
60 <table cellspacing="0" cellpadding="4">
61 <tr><th colspan="2">&nbsp;</th><th><?php __("Domain name"); ?></th><th>Allowed Users</th><th><?php __("View"); ?></th></tr>
62 <?php
63 reset($r);
64 $col=1;
65 while (list($key,$val)=each($r))
66     {
67     $col=3-$col;
68 ?>
69     <tr class="lst<?php echo $col; ?>">
70         <td><input type="checkbox" class="inc" id="del_<?php echo $val["id"]; ?>" name="del_<?php echo $val["id"]; ?>" value="<?php echo $val["id"]; ?>" /></td>
71         <td><a href="aws_edit.php?id=<?php echo $val["id"] ?>"><?php __("Edit"); ?></a></td>
72         <td><label for="del_<?php echo $val["id"]; ?>"><?php echo $val["hostname"] ?></label></td>
73         <td><?php echo $val["users"] ?></td>
74         <td><a href="/cgi-bin/awstats.pl?config=<?php echo $val["hostname"]; ?>"><?php __("View"); ?></a></td>
75     </tr>
76 <?php
77     }
78
79 ?>
80
81 <tr><td colspan="5"><input type="submit" class="inb" name="submit" value="<?php __("Delete the checked Statistics"); ?>" /></td></tr>
82 </table>
83 </form>
84 <?php
85 }
86
87 ?>
88 </body>
89 </html>
90
Note: See TracBrowser for help on using the browser.