Alternc  3.2
Alternc logiel libre pour l'h├ębergement
 All Data Structures Namespaces Files Functions Variables Pages
adm_doms.php
Go to the documentation of this file.
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_once ("head.php");
38 
39 ?>
40 <h3><?php __("Manage installed domains"); ?></h3>
41 <?php
42 if (isset($error) && $error) {
43  echo "<p class=\"alert alert-danger\">$error</p>";
44 }
45 
46 $fields = array (
47  "force" => array ("get", "integer", "0"),
48 );
50 
51 // List the domains. If the first parameter is true, also check their DNS & other IPs actual parameters.
52 // If the second parameter is true, check the domains whatever the dis cache is.
53 
54 $forcecheck=$force; // retrocompatibility
55 $c=$admin->dom_list(true,$forcecheck);
56 
57 ?>
58 <p>
59 <?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."); ?>
60 </p>
61 <p>
62 <?php __("The domain OK column are green when the domain exists in the worldwide registry and has a proper NS,MX and IP depending on its configuration. It is red if we have serious doubts about its NS, MX or IP configuration. Contact the user of this domain or a system administrator."); ?>
63 </p>
64 <p>
65 <?php __("If you want to force the check of NS, MX, IP on domains, click the link"); ?> <a href="adm_doms.php?force=1"><?php __("Show domain list with refreshed checked NS, MX, IP information"); ?></a>
66 </p>
67 <form method="post" action="adm_dodom.php" name="main" id="main">
68 <table class="tlist">
69  <tr><th></th><th><?php __("Action"); ?></th><th><?php __("Domain"); ?></th><th><?php __("Creator"); ?></th><th><?php __("Connect as"); ?></th><th><?php __("OK?"); ?></th><th><?php __("Status"); ?></th></tr>
70 <?php
71 for($i=0;$i<count($c);$i++) {
72 ?>
73 
74 <tr class="lst">
75  <td><?php if ($c[$i]["noerase"]) {
76  echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Domain")."\" />";
77  } ?></td>
78 <td><div class="ina"><a href="adm_domlock.php?domain=<?php echo urlencode($c[$i][domaine]); ?>"><?php
79  if ($c[$i]["noerase"]) __("Unlock"); else __("Lock"); ?></a></div></td>
80 <td><a href="http://<?php echo $c[$i][domaine]; ?>" target="_blank"><?php echo $c[$i]["domaine"]; ?></a></td>
81 <td><?php echo $c[$i]["login"]; ?></td>
82 <td>
83 <?php if($admin->checkcreator($c[$i]['uid'])) {
84  ?>
85  <div class="ina"><a href="adm_login.php?id=<?php echo $c[$i]["uid"];?>"><?php __("Connect as"); ?></a></div>
86  <?php } ?>
87 </td>
88 <td style="background: <?php
89  if ($c[$i]["errno"]==0) {
90  echo "green";
91  } else {
92  echo "red";
93  }
94  ?>">&nbsp;
95 </td>
96 <td><?php echo nl2br($c[$i]["errstr"]); ?></td>
97 </tr>
98 <?php
99 }
100 ?>
101 </table>
102 </form>
103 <?php include_once("foot.php"); ?>