feat: add analytics and unknown useragents

This commit is contained in:
Benjamin Bellamy 2020-06-12 20:41:09 +00:00 committed by Yassine Doghri
commit ec92e65aa4
44 changed files with 3333 additions and 1987 deletions

View file

@ -1,17 +1,19 @@
An uncaught Exception was encountered
Type: <?= get_class($exception), "\n"; ?>
Message: <?= $message, "\n"; ?>
Filename: <?= $exception->getFile(), "\n"; ?>
Line Number: <?= $exception->getLine(); ?>
Type: <?= get_class($exception), "\n" ?>
Message: <?= $message, "\n" ?>
Filename: <?= $exception->getFile(), "\n" ?>
Line Number: <?= $exception->getLine() ?>
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === true) : ?>
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === true): ?>
Backtrace:
<?php foreach ($exception->getTrace() as $error) : ?>
<?php if (isset($error['file'])) : ?>
<?= trim('-' . $error['line'] . ' - ' . $error['file'] . '::' . $error['function']) . "\n" ?>
<?php endif ?>
<?php endforeach ?>
<?php foreach ($exception->getTrace() as $error): ?>
<?php if (isset($error['file'])): ?>
<?= trim(
'-' . $error['line'] . ' - ' . $error['file'] . '::' . $error['function']
) . "\n" ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endif ?>
<?php endif; ?>