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

@ -0,0 +1,19 @@
<?php namespace App\Controllers;
use CodeIgniter\Controller;
class UnknownUserAgents extends Controller
{
public function index($p_id = 0)
{
$model = new \App\Models\UnknownUserAgentsModel();
$data = [
'useragents' => $model->getUserAgents($p_id),
];
$this->response->setContentType('application/json');
$this->response->setStatusCode(\CodeIgniter\HTTP\Response::HTTP_OK);
echo view('json/unknownuseragents', $data);
}
}