Permalink
Browse files

Move the database settings to the config file

  • Loading branch information...
1 parent 4ebefb2 commit 51157cd1618276c6edc72f129132b216bf52efca @NielsLeenheer committed Jul 9, 2012
Showing with 8 additions and 6 deletions.
  1. +8 −1 backend/config.php
  2. +0 −5 backend/libraries/database.php
View
9 backend/config.php
@@ -1,4 +1,11 @@
<?php
$version = '3.00';
- $readonly = false;
+ $readonly = false;
+
+ $mysql['server'] = 'localhost';
+ $mysql['username'] = '*****';
+ $mysql['password'] = '*****';
+ $mysql['database'] = '*****';
+
+
View
5 backend/libraries/database.php
@@ -1,9 +1,4 @@
<?php
- $mysql['server'] = 'localhost';
- $mysql['username'] = '*****';
- $mysql['password'] = '*****';
- $mysql['database'] = '*****';
-
mysql_connect($mysql['server'], $mysql['username'], $mysql['password']);
mysql_select_db($mysql['database']);

0 comments on commit 51157cd

Please sign in to comment.