Fixed issue #96.

This commit is contained in:
Rooty 2021-12-13 13:26:26 +01:00
parent 534fb5409c
commit cdc7db51f8
3 changed files with 4 additions and 2 deletions

View File

@ -38,6 +38,8 @@ define ("DATA_SOURCE_DB_DRIVER", "mypdo");
define ("DATA_SOURCE_DB_TYPE", "{_DBCONNECTOR_}");
/* Serveur de Base de Données */
define ("DATA_SOURCE_DB_SERVER", "{_DBHOST_}");
/* Port du serveur de Base de Données */
define ("DATA_SOURCE_DB_PORT", {_DBPORT_});
/* Compte Utilisateur de la base de données */
define ("DATA_SOURCE_DB_USER", "{_DBUSER_}");
/* Mot de passe de la Base de données */

View File

@ -884,7 +884,7 @@ var $currentCoordinationObject=null;
switch ( $dbdriver )
{
case "mypdo":
$GLOBALS['SYSTEM_DATABASE_CONN']=new myPdo( DATA_SOURCE_DB_TYPE, DATA_SOURCE_DB_SERVER, DATA_SOURCE_DB_USER, DATA_SOURCE_DB_PASSWORD, DATA_SOURCE_DB_DATABASE, DATA_SOURCE_DB_CHARSET );
$GLOBALS['SYSTEM_DATABASE_CONN']=new myPdo( DATA_SOURCE_DB_TYPE, DATA_SOURCE_DB_SERVER, DATA_SOURCE_DB_PORT, DATA_SOURCE_DB_USER, DATA_SOURCE_DB_PASSWORD, DATA_SOURCE_DB_DATABASE, DATA_SOURCE_DB_CHARSET );
break;
// case "mysql3":
// $GLOBALS['SYSTEM_DATABASE_CONN']=new MySQL3( DATA_SOURCE_SQL_SERVER, DATA_SOURCE_SQL_USER, DATA_SOURCE_SQL_PASSWORD, DATA_SOURCE_SQL_DATABASE);

View File

@ -120,7 +120,7 @@ class mypdo extends Database
$this->user = $user;
$this->password = $password;
$this->server = $server;
$this->port = $port;
$this->dbport = $port;
$this->dbname = $database;
$this->dbcharset = $charset;