* @license https://files.froxlor.org/misc/COPYING.txt GPLv2 */ const AREA = 'customer'; require __DIR__ . '/lib/init.php'; use Froxlor\Api\Commands\SysLog; use Froxlor\Settings; use Froxlor\UI\Collection; use Froxlor\UI\Listing; use Froxlor\UI\Panel\UI; use Froxlor\UI\Response; // redirect if this customer page is hidden via settings if (Settings::IsInList('panel.customer_hide_options', 'extras.logger')) { Response::redirectTo('customer_index.php'); } if ($page == 'log') { if ($action == '') { try { $syslog_list_data = include_once dirname(__FILE__) . '/lib/tablelisting/tablelisting.syslog.php'; $collection = (new Collection(SysLog::class, $userinfo)) ->withPagination($syslog_list_data['syslog_list']['columns'], $syslog_list_data['syslog_list']['default_sorting']); } catch (Exception $e) { Response::dynamicError($e->getMessage()); } UI::view('user/table.html.twig', [ 'listing' => Listing::format($collection, $syslog_list_data, 'syslog_list') ]); } }