mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-07-06 20:00:48 +02:00
Initial commit
Functional, without SSO
This commit is contained in:
12
sources/app/admin/scripts/log.php
Normal file
12
sources/app/admin/scripts/log.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
$filename = DOCUMENT_ROOT."/var/log/info.log";
|
||||
|
||||
$lines = array();
|
||||
|
||||
if (is_file($filename)) {
|
||||
$lines = file($filename);
|
||||
if (count($lines) > 200) {
|
||||
$lines = array_slice($lines, count($lines)-200);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user