mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-11 16:55:46 +00:00
20 lines
497 B
PHP
20 lines
497 B
PHP
<?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);
|
|
}
|
|
}
|