Esempio n. 1
0
 /**
  * Connection to database. This release works with MySQL
  * @param   none
  * @return  none
  * @access  private
  */
 function _connect()
 {
     $this->_report('Connecting to database', 30);
     $settings = array('hostname' => $this->sDBHost, 'username' => $this->sDBUser, 'password' => $this->sDBPwd, 'socket' => $this->sDBSocket, 'database' => $this->sDBName);
     $GLOBALS['settings'] = $settings;
     $this->rLink = dbconn::instance($settings);
     $this->rLink->query("SET NAMES 'utf8'");
     return $this->rLink;
 }