10.2.dev25 en-têtes des logs + permissions des nouveaux fichiers

This commit is contained in:
Fred Tempez 2020-06-03 10:13:15 +02:00
parent 5151f64beb
commit e19e6548ee
1 changed files with 1 additions and 1 deletions

View File

@ -670,7 +670,7 @@ class config extends common {
$d = $this->getData(['blacklist']); $d = $this->getData(['blacklist']);
$data = ''; $data = '';
foreach ($d as $key => $item) { foreach ($d as $key => $item) {
$data .= strftime('%d/%m/%y',$item['lastFail']) . strftime('%R',$item['lastFail']) . ';' ; $data .= strftime('%d/%m/%y',$item['lastFail']) . ';' . strftime('%R',$item['lastFail']) . ';' ;
$data .= $key . ';' . $item['ip'] . ';' . $item['connectFail'] . PHP_EOL; $data .= $key . ';' . $item['ip'] . ';' . $item['connectFail'] . PHP_EOL;
} }
file_put_contents($fileName,$data,FILE_APPEND); file_put_contents($fileName,$data,FILE_APPEND);