$this->adapter = new Db_Pgsql();
break;
default:
- user_error("Unknown DB_TYPE: " . DB_TYPE);
+ die("Unknown DB_TYPE: " . DB_TYPE);
}
$this->link = $this->adapter->connect(DB_HOST, DB_USER, DB_PASS, DB_NAME, DB_PORT);
-
}
private function __clone() {
return("'$str'");
}
- function init() {
- //
- }
-
function connect($host, $user, $pass, $db, $port) {
//return $this->adapter->connect($host, $user, $pass, $db, $port);
- return $this->link;
+ return ;
}
function escape_string($s, $strip_tags = true) {