Пример #1
0
 public function __construct()
 {
     parent::__construct();
     $this->view = new View('/frontend/upgrade');
     $this->setTheme('concrete');
     $this->siteVersion = \Config::get('concrete.version_installed');
     $this->checkSecurity();
     \Cache::disableAll();
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct();
     $request = $this->request;
     $cID = $request->query->get('cID');
     if ($cID) {
         $page = ConcretePage::getByID($cID);
         $this->setPageObject($page);
         $request->setCurrentPage($this->page);
     }
 }
Пример #3
0
 public function __construct()
 {
     parent::__construct();
     $request = $this->request;
     $fID = Loader::helper('security')->sanitizeInt($request->query->get('fID'));
     if ($fID) {
         $file = ConcreteFile::getByID($fID);
         if (is_object($file) && !$file->isError()) {
             $this->setFileObject($file);
         } else {
             throw new Exception(t('Invalid file.'));
         }
     }
 }