Esempio n. 1
0
 public function renderStarted()
 {
     $path = $this->serverRepo->getPath($this->selectedServerId);
     try {
         $logModel = new LogModel($path . 'logs/');
         $this->template->logs = LogModel::makeColorful($logModel->getAll(8));
     } catch (UnexpectedValueException $e) {
         $this->template->logs = array('nic nenalezeno');
     }
 }
Esempio n. 2
0
 /**
  * @return FileEditor Component
  */
 protected function createComponentWhiteList()
 {
     return new FileEditor($this->serverRepo->getPath($this->selectedServerId) . 'whitelist.json', $this->fileModel, $this->user->isAllowed('server-settings', 'edit'));
 }
Esempio n. 3
0
 public function actionDownload($newServerId)
 {
     $this->newServerId = $newServerId;
     $this->path = $this->serverRepo->getPath($newServerId);
 }