Ejemplo n.º 1
0
 /**
  * Runs the action for the second step of the installation
  * where you enter database information
  * 
  * @param TBGRequest $request The request object
  * 
  * @return null
  */
 public function runInstallStep2(TBGRequest $request)
 {
     $this->preloaded = false;
     $this->selected_connection_detail = 'custom';
     if (!$this->error) {
         try {
             B2DB::initialize(THEBUGGENIE_CORE_PATH . 'b2db_bootstrap.inc.php');
         } catch (Exception $e) {
         }
         if (B2DB::isInitialized()) {
             $this->preloaded = true;
             $this->username = B2DB::getUname();
             $this->password = B2DB::getPasswd();
             $this->dsn = B2DB::getDSN();
             $this->hostname = B2DB::getHost();
             $this->port = B2DB::getPort();
             $this->b2db_dbtype = B2DB::getDBtype();
             $this->db_name = B2DB::getDBname();
         }
     }
 }