mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-13 12:02:54 +02:00
26 lines
701 B
PHP
26 lines
701 B
PHP
<?php
|
|
/**
|
|
* Контроллер редактирования Enigma-устройства (admin/enigma.php)
|
|
*/
|
|
|
|
class EnigmaController extends BaseAdminController {
|
|
public function index() {
|
|
$this->requirePermission();
|
|
|
|
$rDevice = null;
|
|
if (isset(RequestManager::getAll()['id'])) {
|
|
$rDevice = getEnigma(RequestManager::getAll()['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'));
|
|
}
|
|
}
|