root/alternc/trunk/bureau/admin/adm_tld.php

Revision 471, 2.8 kB (checked in by anarcat, 3 years ago)

[project @ alternc: changeset 2004-11-29 17:27:04 by anonymous]
correctifs divers : bugs dans le systeme de quota + bug dans la
gestion du changement de mail + bug graphique a l'affichage des tld.

Original author: anonymous
Date: 2004-11-29 17:27:04

Line 
1 <?php
2 /*
3  $Id: adm_tld.php,v 1.4 2004/11/29 17:27:04 anonymous 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 if (is_array($sel)) {
38     $error="";
39     for($i=0;$i<count($sel);$i++) {
40         if (!$admin->deltld($sel[$i])) {
41             $error.=_("Some TLD cannot be deleted...")." : ".$sel[$i]."<br />";
42         }
43     }
44     if (!$error) $error=_("The requested TLD has been deleted");
45 }
46
47
48 include("head.php");
49 ?>
50 </head>
51 <body>
52 <h3><?php __("Manage allowed domains (TLD)"); ?></h3>
53 <?php
54     if ($error) {
55       echo "<p class=\"error\">$error</p>";
56     }
57
58 $c=$admin->listtld();
59
60 ?>
61 <p>
62 <?php __("Here is the list of the TLD allowed on this server. Each TLD can be allowed or denied after some checks (whois, ns, domain exists...)"); ?>
63 </p>
64
65 <form method="post" action="adm_tld.php">
66 <table border="0" cellpadding="4" cellspacing="0">
67 <tr><th><?php __("Action"); ?></th><th><?php __("TLD"); ?></th><th><?php __("Allowed Mode"); ?></th></tr>
68 <?php
69 $col=1;
70 for($i=0;$i<count($c);$i++) {
71  $col=3-$col;
72 ?>
73
74 <tr class="lst<?php echo $col; ?>">
75 <td><input id="sel<?php echo $i; ?>" type="checkbox" name="sel[]" class="inc" value="<?php echo $c[$i]["tld"]; ?>" />&nbsp;<a href="adm_tldedit.php?tld=<?php echo urlencode($c[$i]["tld"]); ?>"><?php __("Edit"); ?></a></td>
76 <td><label for="sel<?php echo $i; ?>"><?php echo $c[$i]["tld"]; ?></label></td>
77 <td><?php __($admin->tldmode[$c[$i]["mode"]]); ?></td></tr>
78
79 <?php
80 }
81 ?>
82 <tr><td colspan="3"><input type="submit" class="inb" value="<?php __("Delete the checked TLD"); ?>" /></td></tr>
83 </table>
84 </form>
85 <a href="adm_tldadd.php"><?php __("Add a new TLD"); ?></a>
86 </body>
87 </html>
88
Note: See TracBrowser for help on using the browser.