AlternC/bureau/class/reset_stats_conf.php

21 lines
353 B
PHP
Raw Normal View History

<?php
include("config.php");
if (!$admin->enabled) {
__("This page is restricted to authorized staff");
exit();
}
$db->query("SELECT id,hostname FROM stats;");
2014-03-26 15:04:12 +00:00
$d=array();
while ($db->next_record()) {
$d[]=$db->Record;
}
foreach ($d as $r) {
echo "Stats de ".$r[0]." ".$r[1]." <br>\n"; flush();
$stats->_createconf($r[0],1);
}
2014-03-26 15:04:12 +00:00
?>