putting database configuration in config dir
This commit is contained in:
parent
89f68e4aa2
commit
b5cf1e1220
15
class/db.php
15
class/db.php
@ -3,15 +3,18 @@ logger(DEBUG, _("Including db.php"));
|
||||
|
||||
class db extends mysqli
|
||||
{
|
||||
public $mysqlServer = "127.0.0.1"; // Your production server
|
||||
public $username = "moha";
|
||||
public $passwd = "MysqlMoha";
|
||||
public $database = "moha";
|
||||
public $result;
|
||||
//public $mysqlServer = "127.0.0.1"; // Your production server
|
||||
//public $username = "moha";
|
||||
//public $passwd = "MysqlMoha";
|
||||
//public $database = "moha";
|
||||
//public $result;
|
||||
|
||||
|
||||
function __construct()
|
||||
{
|
||||
global $testMode;
|
||||
global $testMode, $confDir;
|
||||
|
||||
require_once $confDir . "/dbConfig.php";
|
||||
$flagError = false;
|
||||
if ($testMode)
|
||||
{
|
||||
|
6
config/dbConfig.php
Normal file
6
config/dbConfig.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
$mysqlServer = "127.0.0.1"; // Your production server
|
||||
$username = "moha";
|
||||
$passwd = "MysqlMoha";
|
||||
$database = "moha";
|
||||
?>
|
Loading…
Reference in New Issue
Block a user