Draft de levée d'erreur DNS et Web

This commit is contained in:
Alan Garcia 2011-01-28 17:44:17 +00:00
parent fb0fd61b1f
commit 9b2b1b120a
4 changed files with 112 additions and 1 deletions

1
.gitattributes vendored
View File

@ -16,6 +16,7 @@ bureau/admin/adm_add.php -text
bureau/admin/adm_deactivate.php -text
bureau/admin/adm_defquotas.php -text
bureau/admin/adm_del.php -text
bureau/admin/adm_dnsweberror.php -text
bureau/admin/adm_doadd.php -text
bureau/admin/adm_dodefquotas.php -text
bureau/admin/adm_dodel.php -text

View File

@ -0,0 +1,109 @@
<?php
/*
$Id: adm_tld.php,v 1.4 2004/11/29 17:27:04 anonymous Exp $
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2002 by the AlternC Development Team.
http://alternc.org/
----------------------------------------------------------------------
Based on:
Valentin Lacambre's web hosting softwares: http://altern.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
Original Author of file: Benjamin Sonntag
Purpose of file: Manage allowed TLD on the server
----------------------------------------------------------------------
*/
require_once("../class/config.php");
if (!$admin->enabled) {
__("This page is restricted to authorized staff");
exit();
}
include_once("head.php");
?>
<h3><?php __("DNS and website in error"); ?></h3>
<hr id="topbar" />
<br />
<?php
if ($error) {
echo "<p class=\"error\">$error</p>";
}
?>
<p>
<h3><?php __("Here is the list of the websites in error."); ?></h3>
</p>
<table class="tlist">
<tr>
<th> compte </th>
<th> login </th>
<th> domaine </th>
<th> fqdn </th>
<th> valeur </th>
<th> description </th>
<th> web_result </th>
</tr>
<?php
$pair=0;
$db->query("select sd.compte, m.login, sd.domaine, if(length(sub)>0,concat_ws('.',sd.sub,sd.domaine),sd.domaine) as fqdn, sd.valeur, dt.description, sd.web_result from sub_domaines sd,membres m, domaines_type dt where sd.web_action='OK' and length(sd.web_result)<>0 and upper(dt.name)=upper(sd.type) order by sd.domaine, sd.sub, sd.valeur;");
while($db->next_record()) {
++$pair;
print_r($d);
?>
<tr class="lst<?php echo $pair%2+1 ?>">
<td><?php echo $db->f('compte');?></td>
<td><?php echo $db->f('login');?> </td>
<td><?php echo $db->f('domaine');?> </td>
<td><?php echo $db->f('fqdn');?></td>
<td><?php echo $db->f('valeur');?></td>
<td><?php echo $db->f('description');?></td>
<td><?php echo $db->f('web_result');?></td>
</tr>
<?php } // end while ?>
</table>
<hr/>
<h3><?php __("Here is the list of the DNS in error."); ?></h3>
<table class="tlist">
<tr>
<th> compte </th>
<th> login </th>
<th> domaine </th>
<th> dns_result </th>
</tr>
<?php
$pair=0;
$db->query("select d.compte, m.login, d.domaine, d.dns_result from domaines d, membres m where d.dns_action='OK' and dns_result <> 0 and dns_result <> '' and m.uid = d.compte;");
while($db->next_record()) {
++$pair;
print_r($d);
?>
<tr class="lst<?php echo $pair%2+1 ?>">
<td><?php echo $db->f('compte');?></td>
<td><?php echo $db->f('login');?> </td>
<td><?php echo $db->f('domaine');?> </td>
<td><?php echo $db->f('dns_result');?></td>
</tr>
<?php } // end while ?>
<?php include_once("foot.php"); ?>

View File

@ -52,6 +52,7 @@ include_once("head.php");
<li class="lst2"><a href="adm_passpolicy.php"><?php __("Password Policies"); ?></a></li>
<li class="lst1"><a href="adm_doms.php"><?php __("Manage installed domains"); ?></a></li>
<li class="lst2"><a href="adm_defquotas.php"><?php __("Change the default quotas"); ?></a></li>
<li class="lst1"><a href="adm_dnsweberror.php"><?php __("DNS and website in error"); ?></a></li>
</ul>

View File

@ -21,7 +21,7 @@ PRIMARY KEY ( `name` )
INSERT IGNORE INTO `domaines_type` (name, description, target, entry, compatibility, only_dns, need_dns) values
('local','Locally managed', 'DIRECTORY', '%SUB% IN A @@PUBLIC_IP@@', 'txt', false, false),
('url','URL redirection', 'URL', '%SUB% IN A @@PUBLIC_IP@@','txt', true, true),
('ip','IP redirection', 'IP', '%SUB% IN A %TARGET%','url,ip,ipv6,txt', true, true),
('ip','IP redirection', 'IP', '%SUB% IN A %TARGET%','url,ip,ipv6,txt', false, true),
('webmail', 'Webmail access', 'NONE', '%SUB% IN A @@PUBLIC_IP@@', 'txt', false, false),
('ipv6','ipv6 address', 'IPV6', '%SUB% IN AAAA %TARGET%','ip,ipv6,webmail,txt',true, true),
('cname', 'cname entry', 'DOMAIN', '%SUB% CNAME %TARGET%', 'txt',true, true),