Skip to content
Snippets Groups Projects
Commit 9b9857ca authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Added ability to use pgsql sockets

parent 2075d6ce
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,9 @@ class Config {
}
public static function createFromGlobals() {
if (isset(db_connector))
return new Config(path_prefix, db_connector, db_user, db_pass);
else
return new Config(path_prefix, 'pgsql:host=' . db_host . ';port=' . db_port . ';dbname=' . db_name . '', db_user, db_pass);
}
}
......@@ -2,7 +2,13 @@
define('db_host', 'example.com');
define('db_port', 5432);
define('db_name', 'quassel');
//Only use this if you know what you are doing
//define('db_connector', '');
define('db_user', 'quassel');
define('db_pass', 'password');
define('backend', 'pgsql-smart');
define('path_prefix', '');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment