2011-01-28 17:44:17 +00:00
< ? php
/*
2011-02-08 08:41:08 +00:00
$Id : adm_dnsweberror . php , v 1.4 2004 / 11 / 29 17 : 27 : 04 anonymous Exp $
2011-01-28 17:44:17 +00:00
----------------------------------------------------------------------
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
----------------------------------------------------------------------
2011-02-08 08:41:08 +00:00
Original Author of file : Alan Garcia
Purpose of file : Report domains and websites having error in the DB
2011-01-28 17:44:17 +00:00
----------------------------------------------------------------------
*/
require_once ( " ../class/config.php " );
if ( ! $admin -> enabled ) {
__ ( " This page is restricted to authorized staff " );
exit ();
}
include_once ( " head.php " );
?>
2011-02-08 08:41:08 +00:00
< h3 >< ? php __ ( " Domains and Websites having errors " ); ?> </h3>
2011-01-28 17:44:17 +00:00
< hr id = " topbar " />
2011-02-08 08:41:08 +00:00
< br />
2011-01-28 17:44:17 +00:00
< ? php
2012-06-19 15:26:48 +00:00
if ( isset ( $error ) && $error ) {
2013-10-18 09:59:03 +00:00
echo " <p class= \" alert alert-danger \" > $error </p> " ;
2011-01-28 17:44:17 +00:00
}
?>
2013-04-23 23:41:42 +00:00
< br />
2011-02-08 08:41:08 +00:00
< h3 >< ? php __ ( " List of the websites having errors in the domain database. " ); ?> </h3>
2011-01-28 17:44:17 +00:00
< table class = " tlist " >
< tr >
2011-02-08 08:41:08 +00:00
< th >< ? php __ ( " Uid " ); ?> </th>
< th >< ? php __ ( " Account " ); ?> </th>
< th >< ? php __ ( " Domain name " ); ?> </th>
< th >< ? php __ ( " FQDN " ); ?> </th>
< th >< ? php __ ( " Value " ); ?> </th>
< th >< ? php __ ( " Description " ); ?> </th>
< th >< ? php __ ( " Web Result field " ); ?> </th>
2011-01-28 17:44:17 +00:00
</ 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; " );
2013-05-23 16:18:56 +00:00
while ( $db -> next_record ()) { ?>
< tr class = " lst " >
2011-01-28 17:44:17 +00:00
< 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 />
2011-02-08 08:41:08 +00:00
< h3 >< ? php __ ( " List of the domain names having errors in the domain database. " ); ?> </h3>
2011-01-28 17:44:17 +00:00
< table class = " tlist " >
< tr >
2011-02-08 08:41:08 +00:00
< th >< ? php __ ( " Uid " ); ?> </th>
< th >< ? php __ ( " Account " ); ?> </th>
< th >< ? php __ ( " Domain name " ); ?> </th>
< th >< ? php __ ( " DNS Result field " ); ?> </th>
2011-01-28 17:44:17 +00:00
</ 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; " );
2013-05-23 16:18:56 +00:00
while ( $db -> next_record ()) { ?>
< tr class = " lst " >
2011-01-28 17:44:17 +00:00
< 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 ?>
2012-11-06 15:22:17 +00:00
</ table >
2011-01-28 17:44:17 +00:00
< ? php include_once ( " foot.php " ); ?>