mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-06 20:02:37 +02:00
Stage 6 has been completed, and some classes have been merged into one
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?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'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user