From 31245c9af08c6bd018a29a4f4b2d47d2ab19aceb Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 27 Jul 2016 23:54:11 +0200 Subject: Made database settings definitions --- conf.php | 2 +- conf.private.example.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/conf.php b/conf.php index 837016c..e8ed000 100644 --- a/conf.php +++ b/conf.php @@ -47,7 +47,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__)); require_once('./conf.private.php'); try { - $_pdo = new PDO("mysql:host=$db_host;port=$db_port;dbname=$db_name;charset=utf8", $db_user, $db_pass); + $_pdo = new PDO("mysql:host=".DB_HOST.";port=".DB_PORT.";dbname=".DB_NAME.";charset=utf8", DB_USER, DB_PASS); $_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $e) { die("Down until PDO error fixed."); diff --git a/conf.private.example.php b/conf.private.example.php index 90b4c51..54f4133 100644 --- a/conf.private.example.php +++ b/conf.private.example.php @@ -1,10 +1,10 @@