mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-05 20:02:41 +02:00
24 lines
651 B
PHP
24 lines
651 B
PHP
<?php
|
|
/**
|
|
* XC_VM — Контроллер редактирования User-Agent (admin/useragent.php)
|
|
*/
|
|
namespace App\Http\Controllers\Admin;
|
|
|
|
class UseragentController extends BaseAdminController {
|
|
public function index() {
|
|
$this->requirePermission();
|
|
|
|
$rUAArr = null;
|
|
if (isset(\CoreUtilities::$rRequest['id'])) {
|
|
$rUAArr = getUserAgent(\CoreUtilities::$rRequest['id']);
|
|
if (!$rUAArr) {
|
|
$this->redirect('useragents');
|
|
return;
|
|
}
|
|
}
|
|
|
|
$this->setTitle('Block User-Agent');
|
|
$this->render('useragent', compact('rUAArr'));
|
|
}
|
|
}
|