Skip to content
Snippets Groups Projects
Commit ec92e65a authored by Benjamin Bellamy's avatar Benjamin Bellamy :speech_balloon: Committed by Yassine Doghri
Browse files

feat: add analytics and unknown useragents

parent 4651d01a
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,11 @@
<title>Whoops!</title>
<style type="text/css">
<?= preg_replace('#[\r\n\t ]+#', ' ', file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'debug.css')) ?>
<?= preg_replace(
'#[\r\n\t ]+#',
' ',
file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'debug.css')
) ?>
</style>
</head>
......
<?php
if (!empty($useragents) && is_array($useragents)) {
echo json_encode($useragents);
}
?>
......@@ -7,7 +7,9 @@
"require": {
"php": ">=7.2",
"codeigniter4/framework": "^4",
"james-heinrich/getid3": "~2.0.0-dev"
"james-heinrich/getid3": "~2.0.0-dev",
"whichbrowser/parser": "^2.0",
"geoip2/geoip2": "~2.0"
},
"require-dev": {
"mikey179/vfsstream": "1.6.*",
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment