mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-15 12:02:46 +02:00
27 lines
751 B
PHP
27 lines
751 B
PHP
<?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'));
|
||
|
|
}
|
||
|
|
}
|