root/alternc/tags/0.9.7/bureau/admin/adm_doms.php

Revision 1662, 2.7 kB (checked in by benjamin, 3 years ago)

correction du commit precedent

Line 
1 <?php
2 /*
3  $Id: adm_doms.php,v 1.1 2003/09/20 19:41:06 root Exp $
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: Manage allowed TLD on the server
28  ----------------------------------------------------------------------
29 */
30 require_once("../class/config.php");
31
32 if (!$admin->enabled) {
33     __("This page is restricted to authorized staff");
34     exit();
35 }
36
37 include("head.php");
38 ?>
39 </head>
40 <body>
41 <h3><?php __("Manage installed domains"); ?></h3>
42 <?php
43     if ($error) {
44       echo "<p class=\"error\">$error</p>";
45     }
46
47 $c=$admin->dom_list();
48
49 ?>
50 <p>
51 <?php __("Here is the list of the domains installed on this server. You can remove a domain if it does not exist or does not point to our server anymore. You can also set the 'Lock' flag on a domain so that the user will not be able to change any DNS parameter or delete this domain from his account."); ?>
52 </p>
53
54 <p><a href="<?php echo $_SERVER["SCRIPT_NAME"]; ?>"><?php __("Update this page"); ?></a></p>
55
56 <form method="post" action="adm_dodom.php">
57 <table border="0" cellpadding="4" cellspacing="0">
58 <tr><th><?php __("Action"); ?></th><th><?php __("Domain"); ?></th><th><?php __("Member"); ?></th><th>Lock</th></tr>
59 <?php
60 $col=1;
61 for($i=0;$i<count($c);$i++) {
62  $col=3-$col;
63 ?>
64
65 <tr class="lst<?php echo $col; ?>">
66 <td><a href="adm_domlock.php?domain=<?php echo urlencode($c[$i][domaine]); ?>"><?php
67    if ($c[$i][noerase]) __("Unlock"); else __("Lock");  ?></a></td>
68 <td><?php echo $c[$i][domaine]; ?></td>
69 <td><?php echo $c[$i][login]; ?></td>
70                     <td><?php if ($c[$i][noerase]) {
71             echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Domain")."\" />";
72                     } ?></td>
73 </tr>
74 <?php
75 }
76 ?>
77 </table>
78 </form>
79
80 </body>
81 </html>
82
Note: See TracBrowser for help on using the browser.