mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-16 12:02:54 +02:00
Stage 6 has been completed, and some classes have been merged into one
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* XC_VM — Контроллер редактирования Enigma-устройства (admin/enigma.php)
|
||||
*/
|
||||
namespace App\Http\Controllers\Admin;
|
||||
|
||||
class EnigmaController extends BaseAdminController {
|
||||
public function index() {
|
||||
$this->requirePermission();
|
||||
|
||||
$rDevice = null;
|
||||
if (isset(\CoreUtilities::$rRequest['id'])) {
|
||||
$rDevice = getEnigma(\CoreUtilities::$rRequest['id']);
|
||||
if (!$rDevice['user_id']) {
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($rDevice) && !isset($rDevice['user'])) {
|
||||
$rDevice['user'] = array('bouquet' => array());
|
||||
}
|
||||
|
||||
$this->setTitle('Enigma Device');
|
||||
$this->render('enigma', compact('rDevice'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user