]> git.mxchange.org Git - simple-upload.git/commitdiff
Support for local configuration file added + ignored config-local.php
authorRoland Häder <roland@mxchange.org>
Tue, 29 Mar 2016 12:10:09 +0000 (14:10 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 29 Mar 2016 12:10:09 +0000 (14:10 +0200)
.gitignore [new file with mode: 0644]
index.php

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..059a02c
--- /dev/null
@@ -0,0 +1 @@
+config-local.php
index a5f62f569c4b994ef5f0a1e65dde5c2162cb7292..c1606d151cff401a4d8751bf4e8e8ca52c1badc1 100644 (file)
--- a/index.php
+++ b/index.php
        );
        // =============={ Configuration End }==============
 
+       // Is the local config file there?
+       if (file_exists('config-local.php')) {
+               // Load it then
+               include('config-local.php');
+       }
+
        // Enabling error reporting
        if ($settings['debug']) {
                error_reporting(E_ALL);