public function on_start() { parent::on_start(); if (!isset($this->files)) { $this->files = array(); } if (is_array($_REQUEST['fID'])) { foreach ($_REQUEST['fID'] as $fID) { $f = File::getByID($fID); if (is_object($f) && !$f->isError()) { $this->files[] = $f; } } } if (count($this->files) > 0) { $this->canEdit = true; foreach ($this->files as $f) { $fp = new Permissions($f); if (!$fp->canEditFileProperties()) { $this->canEdit = false; } } } else { $this->canEdit = false; } }
public function on_start() { parent::on_start(); $this->view = new View('/frontend/upgrade'); $this->setTheme('concrete'); $this->siteVersion = \Config::get('concrete.version_installed'); $this->checkSecurity(); \Cache::disableAll(); }
public function on_start() { parent::on_start(); $this->populateFiles(); }
public function on_start() { parent::on_start(); $this->marketplace = Marketplace::getInstance(); $this->item = RemoteItem::getByID($this->request->query->get('mpID')); }