110 lines
3.3 KiB
PHP
110 lines
3.3 KiB
PHP
|
<?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"); ?>
|