function Database($Server = 0) { global $DB; settype($Server, "integer"); $this->DBName = $DB->Name($Server); $this->DBPass = $DB->Pass($Server); $this->DBUser = $DB->User($Server); if (!isset($GLOBALS[md5($this->DBUser . $this->DBPass . $this->DBName)]) || !$GLOBALS[md5($this->DBUser . $this->DBPass . $this->DBName)]) { $GLOBALS[md5($this->DBUser . $this->DBPass . $this->DBName)] = @ocilogon($this->DBUser, $this->DBPass, $this->DBName); } $this->conn = $GLOBALS[md5($this->DBUser . $this->DBPass . $this->DBName)]; if (!$this->conn) { $this->error($this->conn); } $this->version = @OCIServerVersion($this->conn); }
function ServerInfo() { $arr['compat'] = $this->GetOne('select value from sys.database_compatible_level'); $arr['description'] = @OCIServerVersion($this->_connectionID); $arr['version'] = ADOConnection::_findvers($arr['description']); return $arr; }