Alternc  latest
Alternc logiel libre pour l'hébergement
adm_dnsweberror.php
Go to the documentation of this file.
1 <?php
2 /*
3  ----------------------------------------------------------------------
4  LICENSE
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public License (GPL)
8  as published by the Free Software Foundation; either version 2
9  of the License, or (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  To read the license please visit http://www.gnu.org/copyleft/gpl.html
17  ----------------------------------------------------------------------
18 */
19 
20 /**
21  * Report DNS and WEBSITES being in error mode in the DB
22  *
23  * @copyright AlternC-Team 2000-2017 https://alternc.com/
24  */
25 
26 require_once("../class/config.php");
27 
28 if (!$admin->enabled) {
29  $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
30  echo $msg->msg_html_all();
31  exit();
32 }
33 
34 include_once("head.php");
35 
36 ?>
37 <h3><?php __("Domains and Websites having errors"); ?></h3>
38 <hr id="topbar" />
39  <br />
40 <?php
41 echo $msg->msg_html_all();
42 ?>
43 <br/>
44 <h3><?php __("List of the websites having errors in the domain database."); ?></h3>
45 <table class="tlist">
46  <tr>
47  <th><?php __("Uid"); ?></th>
48  <th><?php __("Account"); ?></th>
49  <th><?php __("Domain name"); ?></th>
50  <th><?php __("FQDN"); ?></th>
51  <th><?php __("Value"); ?></th>
52  <th><?php __("Description"); ?></th>
53  <th><?php __("Web Result field"); ?></th>
54  </tr>
55 
56 <?php
58 $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) and sd.compte=m.uid order by sd.domaine, sd.sub, sd.valeur;");
59 
60 while($db->next_record()) { ?>
61 <tr class="lst">
62  <td><?php echo $db->f('compte');?></td>
63  <td><?php echo $db->f('login');?> </td>
64  <td><?php echo $db->f('domaine');?> </td>
65  <td><?php echo $db->f('fqdn');?></td>
66  <td><?php echo $db->f('valeur');?></td>
67  <td><?php echo $db->f('description');?></td>
68  <td><?php echo $db->f('web_result');?></td>
69 </tr>
70 <?php } // end while ?>
71 </table>
72 <hr/>
73 
74 <h3><?php __("List of the domain names having errors in the domain database."); ?></h3>
75 <table class="tlist">
76  <tr>
77  <th><?php __("Uid"); ?></th>
78  <th><?php __("Account"); ?></th>
79  <th><?php __("Domain name"); ?></th>
80  <th><?php __("DNS Result field"); ?></th>
81  </tr>
82 
83 <?php
84 $pair=0;
85 $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;");
86 
87 while($db->next_record()) { ?>
88 <tr class="lst">
89  <td><?php echo $db->f('compte');?></td>
90  <td><?php echo $db->f('login');?> </td>
91  <td><?php echo $db->f('domaine');?> </td>
92  <td><?php echo $db->f('dns_result');?></td>
93 </tr>
94 <?php } // end while ?>
95 </table>
96 <?php include_once("foot.php"); ?>
exit
Definition: adm_doadd.php:70
global $db
Definition: bootstrap.php:26
$msg
Definition: bootstrap.php:75
__($str)
Definition: functions.php:404