//Neprihlaseny if ($user->getLogoutReason() === User::INACTIVITY) { $backlink = $this->getApplication()->storeRequest(); $this->flashRedirect(array(':Front:User:'******'backlink' => $backlink)), 'Boli ste príliš dlho neaktívny a preto ste boli odhlásený! Prosím, prihláste sa znovu.', 'danger'); } else { $this->flashRedirect(':Front:User:in', 'Nemáte dostatočné oprávnenie na danú operáciu!', 'danger'); } } $this->prilohy_adresar = "www/files/prilohy/"; $this->ur_reg = $this->registracia->vsetky_urovne_array(); //Najdi max. ur. reg. $this->urovneReg = $this->registracia->hladaj_urovne(0, $this->id_reg)->fetchPairs('id', 'nazov'); //Hodnoty id=>nazov pre formulare z tabulky registracia } /** Nastevenie premennych pre vsetky sablony */ public function beforeRender() { if (isset($this->params["id"])) { $this->menu->selectByUrl($this->link(ucfirst($this->udaje_webu['meno_presentera']) . ":", array("id" => (int) $this->params["id"]))); } else {
$this->max_id_reg = $this->registracia->findAll()->max('id'); //Najdi max. ur. reg. //Vypocet max. velkosti suboru pre upload $ini_v = trim(ini_get("upload_max_filesize")); $s = ['g' => 1 << 30, 'm' => 1 << 20, 'k' => 1 << 10]; $this->upload_size = intval($ini_v) * ($s[strtolower(substr($ini_v, -1))] ?: 1); $this->prilohy_adresar = "www/files/prilohy/"; $this->ur_reg = $this->registracia->vsetky_urovne_array(); //Najdi max. ur. reg. $this->urovneReg = $this->registracia->hladaj_urovne(0, $this->id_reg)->fetchPairs('id', 'nazov'); //Hodnoty id=>nazov pre formulare z tabulky registracia } /** Nastevenie premennych pre vsetky sablony */ public function beforeRender()