Rev 1219 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1219 | Rev 1220 | ||
---|---|---|---|
Line 281... | Line 281... | ||
281 | if (is_null($slang)) { |
281 | if (is_null($slang)) { |
282 | throw new OIDplusConfigInitializationException(_L('SQL-Slang plugin "%1" is missing. Please check if it exists in the directory "plugin/sqlSlang". If it is not existing, please recover it from an SVN snapshot or OIDplus TAR.GZ file.','mysql')); |
282 | throw new OIDplusConfigInitializationException(_L('SQL-Slang plugin "%1" is missing. Please check if it exists in the directory "plugin/sqlSlang". If it is not existing, please recover it from an SVN snapshot or OIDplus TAR.GZ file.','mysql')); |
283 | } |
283 | } |
284 | return $slang; |
284 | return $slang; |
285 | } |
285 | } |
- | 286 | ||
- | 287 | /** |
|
- | 288 | * @return array |
|
- | 289 | */ |
|
- | 290 | public function getExtendedInfo(): array { |
|
- | 291 | $host = OIDplus::baseConfig()->getValue('MYSQL_HOST', 'localhost'); |
|
- | 292 | $username = OIDplus::baseConfig()->getValue('MYSQL_USERNAME', 'root'); |
|
- | 293 | $password = OIDplus::baseConfig()->getValue('MYSQL_PASSWORD', ''); |
|
- | 294 | $database = OIDplus::baseConfig()->getValue('MYSQL_DATABASE', 'oidplus'); |
|
- | 295 | $socket = OIDplus::baseConfig()->getValue('MYSQL_SOCKET', ''); |
|
- | 296 | list($hostname,$port) = explode(':', $host.':'.ini_get("mysqli.default_port")); |
|
- | 297 | $port = intval($port); |
|
- | 298 | return array( |
|
- | 299 | _L('Hostname') => $hostname, |
|
- | 300 | _L('Port') => $port, |
|
- | 301 | _L('Socket') => $socket, |
|
- | 302 | _L('Database') => $database, |
|
- | 303 | _L('Username') => $username |
|
- | 304 | ); |
|
- | 305 | } |
|
286 | } |
306 | } |