Init Repo

This commit is contained in:
Gregor Schulte
2021-06-15 11:08:34 +02:00
parent d0b72a118d
commit b303dd00d6
330 changed files with 93268 additions and 0 deletions

19
api/v1/logs.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
define('PICONTROL', true);
(include_once realpath(dirname(__FILE__)).'/../../resources/init.php') or die('Error: 0x0000');
(include_once LIBRARY_PATH.'main/tpl.class.php') or die('Error: 0x0001');
(include_once LIBRARY_PATH.'api/api.class.php') or die('Error: 0x0002');
(include_once LIBRARY_PATH.'log/log.function.php') or die('Error: 0x0003');
(include_once LIBRARY_PATH.'log/log.class.php') or die('Error: 0x0004');
$tpl = new PiTpl;
$tpl->setTpl($tpl);
$api = new API;
$logController = new LogController('/var/log/');
$api->addData('logs', $logController->getAllArray());
$api->display();
?>