mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-12 11:16:43 +02:00
feat: add analytics and unknown useragents
This commit is contained in:
parent
4651d01a84
commit
ec92e65aa4
44 changed files with 3333 additions and 1987 deletions
19
app/Controllers/UnknownUserAgents.php
Normal file
19
app/Controllers/UnknownUserAgents.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue