Alternc  3.2
Alternc logiel libre pour l'hébergement
 All Data Structures Namespaces Files Functions Variables Pages
reset_stats_conf.php
Go to the documentation of this file.
1 <?php
2 
3 include("config.php");
4 
5 if (!$admin->enabled) {
6  __("This page is restricted to authorized staff");
7  exit();
8 }
9 
10 $db->query("SELECT id,hostname FROM stats;");
11 while ($db->next_record()) {
12  $d[]=$db->Record;
13 }
14 foreach ($d as $r) {
15  echo "Stats de ".$r[0]." ".$r[1]." <br>\n"; flush();
16  $stats->_createconf($r[0],1);
17 }
18 
19 ?>