1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cheky_ynh.git synced 2024-09-03 18:16:00 +02:00
cheky_ynh/sources/app/admin/scripts/log.php
Jimmy Monin 57708e3169 Initial commit
Functional, without SSO
2016-09-18 11:03:26 +02:00

12 lines
No EOL
225 B
PHP

<?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);
}
}