Ejemplo n.º 1
0
 /**
  * Step 2 - Set up database and site configuration
  */
 private function step2()
 {
     $this->setViewTemplate('install.step2.tpl');
     // make sure we have passed step 1
     if (!$this->installer->checkStep1()) {
         $this->step1();
         return;
     }
     $this->addToView('db_name', 'thinkup');
     $this->addToView('db_user', 'username');
     $this->addToView('db_passwd', 'password');
     $this->addToView('db_host', 'localhost');
     $this->addToView('db_prefix', 'tu_');
     $this->addToView('db_socket', '');
     $this->addToView('db_port', '');
     $this->addToView('site_email', '*****@*****.**');
 }
 /**
  * Step 2 - Set up database and site configuration
  */
 private function step2()
 {
     $this->setViewTemplate('install.step2.tpl');
     // make sure we have passed step 1
     if (!$this->installer->checkStep1()) {
         $this->step1();
         return;
     }
     $current_tz = isset($_POST['timezone']) ? $_POST['timezone'] : date_default_timezone_get();
     $this->addToView('db_name', '');
     $this->addToView('db_user', '');
     $this->addToView('db_passwd', '');
     $this->addToView('db_host', '');
     $this->addToView('db_prefix', 'tu_');
     $this->addToView('db_socket', '');
     $this->addToView('db_port', '');
     $this->addToView('tz_list', $this->getTimeZoneList());
     $this->addToView('current_tz', $current_tz);
     $this->addToView('site_email', '*****@*****.**');
 }
 /**
  * Step 2 - Set up database and site configuration
  */
 private function step2()
 {
     $this->setViewTemplate('install.step2.tpl');
     $this->addHeaderJavaScript('assets/js/jstz-1.0.4.min.js');
     $this->addHeaderJavaScript('assets/js/jqBootstrapValidation.js');
     $this->addHeaderJavaScript('assets/js/validate-fields.js');
     // make sure we have passed step 1
     if (!$this->installer->checkStep1()) {
         $this->step1();
         return;
     }
     $current_tz = isset($_POST['timezone']) ? $_POST['timezone'] : '';
     $this->addToView('db_name', '');
     $this->addToView('db_user', '');
     $this->addToView('db_passwd', '');
     $this->addToView('db_host', '');
     $this->addToView('db_prefix', 'tu_');
     $this->addToView('db_socket', '');
     $this->addToView('db_port', '');
     $this->addToView('tz_list', $this->getTimeZoneList());
     $this->addToView('current_tz', $current_tz);
     $this->addToView('site_email', '');
 }