From: Roland Häder Date: Tue, 29 Mar 2016 12:10:09 +0000 (+0200) Subject: Support for local configuration file added + ignored config-local.php X-Git-Url: https://git.mxchange.org/?p=simple-upload.git;a=commitdiff_plain;h=9e789a4b2915934ff104f530125e6e8d276ffaa2 Support for local configuration file added + ignored config-local.php --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..059a02c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +config-local.php diff --git a/index.php b/index.php index a5f62f5..c1606d1 100644 --- a/index.php +++ b/index.php @@ -71,6 +71,12 @@ ); // =============={ 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);