mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-15 04:02:55 +02:00
26 lines
711 B
PHP
26 lines
711 B
PHP
<?php
|
|
/**
|
|
* XC_VM — Контроллер редактирования Enigma-устройства (admin/enigma.php)
|
|
*/
|
|
|
|
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'));
|
|
}
|
|
}
|