From 98fff1b1072779518c0c4149bdbcf3e13851621a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Sat, 14 May 2016 23:35:09 +0200 Subject: [PATCH] Configuration file --- blomzt/config.ini | 4 ++++ blomzt/config.php | 7 ------- blomzt/main.php | 20 ++++++++++---------- 3 files changed, 14 insertions(+), 17 deletions(-) create mode 100644 blomzt/config.ini delete mode 100644 blomzt/config.php diff --git a/blomzt/config.ini b/blomzt/config.ini new file mode 100644 index 0000000..576f209 --- /dev/null +++ b/blomzt/config.ini @@ -0,0 +1,4 @@ +[database] +db_host = localhost +db_user = root +db_password = \ No newline at end of file diff --git a/blomzt/config.php b/blomzt/config.php deleted file mode 100644 index 20221d9..0000000 --- a/blomzt/config.php +++ /dev/null @@ -1,7 +0,0 @@ - 'localhost' - 'db_username' => 'root' - 'db_password' => 'password' -); \ No newline at end of file diff --git a/blomzt/main.php b/blomzt/main.php index f3c10b3..159398d 100644 --- a/blomzt/main.php +++ b/blomzt/main.php @@ -1,6 +1,14 @@ connect_error) { + die("Connection failed: " . $conn->connect_error); +} + + ?> @@ -8,17 +16,9 @@ $config = include('config.php'); - CSGO skin database + Blomzt - connect_error) { - die("Connection failed: " . $conn->connect_error); - } - - echo "Connection succeded"; - ?> \ No newline at end of file