diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-17 17:13:41 -0600 |
---|---|---|
committer | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-17 17:13:41 -0600 |
commit | 0b045d57b2164b5ce003955d79627ae506a153eb (patch) | |
tree | 87caa1a7c232140313ed5eec8ba8ef88409fab83 /includes | |
parent | e0cbb459e043e931d7ab2d27744b4f3dbb90c0ca (diff) |
Change location of config file
The config has been moved inside the project dir and .gitignored.
This makes the project work on Windows because Windows does not have
a /var directory.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/db_inc.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/includes/db_inc.php b/includes/db_inc.php index 10740d8..b7c361d 100644 --- a/includes/db_inc.php +++ b/includes/db_inc.php @@ -1,13 +1,5 @@ <?php -/* -# Example config values -[mysql_credentials] -server = "localhost" -database = "forum" -user = "root" -password = "admin" -*/ -$cfg_ini = parse_ini_file('/var/www/cflip.ini', true); +$cfg_ini = parse_ini_file('config.ini', true); $dbcfg = $cfg_ini['mysql_credentials']; $db_server = $dbcfg['server']; |