mirror of
https://gitlab.com/CodeSolutionsProject/CodeShare.git
synced 2026-03-02 00:33:50 +01:00
@@ -87,6 +87,18 @@ class Config
|
||||
return dbw_connect($DB["SGBD"], $DB["path"], $DB["db"], $DB["user"], $DB["password"]);
|
||||
}
|
||||
|
||||
public static function getDBalConexion(){
|
||||
if(!Config::initialized())
|
||||
Config::init();
|
||||
$DB = Config::$config["database"];
|
||||
return array(
|
||||
'dbname' => $DB['db'],
|
||||
'user' => $DB['user'],
|
||||
'password' => $DB['password'],
|
||||
'host' => $DB['path'],
|
||||
'driver' => "pdo_".$DB['SGBD']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get options of project if exists
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user