private function build_view() { $this->view = new FileTemplate('update/server-config.tpl'); $this->view->put_all(array('MIN_PHP_VERSION' => ServerConfiguration::MIN_PHP_VERSION, 'PHP_VERSION_OK' => $this->server_conf->is_php_compatible(), 'HAS_GD_LIBRARY' => $this->server_conf->has_gd_library())); if (!PHPBoostFoldersPermissions::validate()) { $this->view->put('ERROR', $this->lang['folders.chmod.error']); } try { $this->view->put('URL_REWRITING_KNOWN', true); $this->view->put('URL_REWRITING_AVAILABLE', $this->server_conf->has_url_rewriting()); } catch (UnsupportedOperationException $ex) { $this->view->put('URL_REWRITING_KNOWN', false); } $this->check_folders_permissions(); $this->view->put('CONTINUE_FORM', $this->form->display()); }
private function chech_php_version() { CLIOutput::writeln("\t" . 'php version'); if (!$this->server_configuration->is_php_compatible()) { CLIOutput::writeln('PHP version (' . ServerConfiguration::get_phpversion() . ') is not compatible with PHPBoost.'); CLIOutput::writeln('PHP ' . ServerConfiguration::MIN_PHP_VERSION . ' is needed!'); return false; } return true; }