Exemplo n.º 1
0
 /**
  * action to display the page
  * @param jTpl $tpl the template container
  */
 function show($tpl)
 {
     $this->tpl = $tpl;
     $check = new jInstallCheck($this);
     if (isset($this->config['verbose'])) {
         $check->verbose = !!$this->config['verbose'];
     }
     if (isset($this->config['databases'])) {
         $db = explode(',', trim($this->config['databases']));
         $check->addDatabaseCheck($db, true);
     }
     if (isset($this->config['pathcheck'])) {
         if (is_string($this->config['pathcheck'])) {
             $files = explode(',', trim($this->config['pathcheck']));
         } else {
             $files = $this->config['pathcheck'];
         }
         $check->addWritablePathCheck($files);
     }
     $check->checkForInstallation = true;
     $check->run();
     return $check->nbError == 0;
 }