From fceb61029a6420f2d8ddce20d6b3de490bf7ff11 Mon Sep 17 00:00:00 2001 From: franzz Date: Sat, 5 Oct 2013 14:39:11 +0200 Subject: [PATCH] getting the settings out of the config file --- .gitignore | 2 ++ config.php | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index d8fe4fa..939cf88 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /.project +/settings.php +/.buildpath diff --git a/config.php b/config.php index 1fd6da2..a5d620d 100755 --- a/config.php +++ b/config.php @@ -100,10 +100,10 @@ class PhpObject class MySqlManager extends PhpObject { - const DB_SERVER = 'localhost'; - const DB_LOGIN = 'root'; - const DB_PASS = '0nadmin'; - const DB_NAME = 'mythoughts'; + const DB_SERVER = Settings::DB_SERVER; + const DB_LOGIN = Settings::DB_LOGIN; + const DB_PASS = Settings::DB_PASS; + const DB_NAME = Settings::DB_NAME; const ID_TAG = 'id_'; const USERS_TABLE = 'users';