This commit is contained in:
pezcurrel 2020-11-01 09:05:03 +01:00
parent 591dd89669
commit 5f51c61ef6
2 changed files with 3 additions and 2 deletions

View file

@ -135,7 +135,7 @@ if ($opts['updstats']) {
$tdstart=gmmktime(0,0,0,gmdate('n',$now),gmdate('j',$now),gmdate('Y',$now));
//echo('Oggi è cominciato a '.$tdstart.' ('.gmdate('d M Y H:i:s',$tdstart).').'.N);
// questo qui sotto, se abilitato con "0==0", popola DISTRUTTIVAMENTE per test la tabella ZHits
if (0==0) {
if (1==0) {
mysqli_query($link,'DELETE FROM ZHits WHERE TS < '.$tdstart);
mysqli_query($link,'DELETE FROM ZStats');
$uids=array(

View file

@ -19,7 +19,8 @@ mysqli_set_charset($link,'utf8mb4');
$res=mysqli_query($link,'SELECT * FROM ZStats');
$hpage;
while ($row=mysqli_fetch_assoc($res)) {
$hpage=preg_replace(array('#inst#','#contrib#'),array('instances','contribute'),$row['HitsPage']);
$hpage=preg_replace(array('#instancesancesances#','#contributeuteute#'),array('instances','contribute'),$row['HitsPage']);
echo($hpage.N);
mysqli_query($link,"UPDATE `ZStats` SET HitsPage='".$hpage."' WHERE TS=".$row['TS']);
}