2026-02-24 21:02:41 +03:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* XC_VM — Контроллер редактирования Enigma-устройства (admin/enigma.php)
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
class EnigmaController extends BaseAdminController {
|
|
|
|
|
public function index() {
|
|
|
|
|
$this->requirePermission();
|
|
|
|
|
|
|
|
|
|
$rDevice = null;
|
2026-02-27 22:32:39 +03:00
|
|
|
if (isset(CoreUtilities::$rRequest['id'])) {
|
|
|
|
|
$rDevice = getEnigma(CoreUtilities::$rRequest['id']);
|
2026-02-24 21:02:41 +03:00
|
|
|
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'));
|
|
|
|
|
}
|
|
|
|
|
}
|