Exemplo n.º 1
0
 /**
  * the constructor of this installer-class.
  * it initialize all needed values and set the hidden fields for the template
  */
 public function __construct()
 {
     //Initialize the installer with the current-needed POST and Session values
     $this->init();
     //set a common title
     $this->s_step_title = __('install_common_title', 'install');
     //set the hidden fields, which we don't need for the installation
     \Replacer::set_hidden_fields(array('character', 'online', 'more'));
     if ($this->check_dbconfig_file() !== array()) {
         \Replacer::page_header($this->s_step_title);
         $message = __('Probleme mit der ".dbconfig.default' . EXT . '". <br>Folgende Konstanten haben andere Werte als die ursprüngliche Datei');
         throw new \LOGD_Exception($message);
     }
     //switch/case for the step and go to the right method
     switch ($this->i_step) {
         case 0:
             $this->step_0();
             break;
     }
     //set the page header and render the install view
     \Replacer::page_header($this->s_step_title);
     \View::create('install')->bind_by_value('i_step', $this->i_step)->render();
 }