From a097ff31ba6ab58e7e03365da64efc7a789a2a7e Mon Sep 17 00:00:00 2001 From: Banana Date: Sun, 20 Aug 2017 19:26:07 +0200 Subject: [PATCH] new config file --- documentation/installation.txt | 2 +- webroot/config.default.php | 38 ++++++++++++++++++++++++++++++++++ webroot/index.php | 2 +- 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 webroot/config.default.php diff --git a/documentation/installation.txt b/documentation/installation.txt index b0d480a..d3b6581 100644 --- a/documentation/installation.txt +++ b/documentation/installation.txt @@ -8,7 +8,7 @@ Read this first!! Unpack the archive 4. -Modify webroot/config.php +Modify webroot/config.default.php and rename it to webroot/config.php 5. Copy and modify documentation/insipid-edit-me.sql and replace the placeholder. diff --git a/webroot/config.default.php b/webroot/config.default.php new file mode 100644 index 0000000..a5369e5 --- /dev/null +++ b/webroot/config.default.php @@ -0,0 +1,38 @@ + + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0. + * + */ + +# database config +define('DB_HOST','127.0.0.1'); +define('DB_USERNAME','user'); +define('DB_PASSWORD','test'); +define('DB_NAME','insipid'); +define('DB_PREFIX','insipid'); # a _ is added automatically as seperation + +# user config +define('FRONTEND_USERNAME','luke'); +define('FRONTEND_PASSWORD','thefather'); \ No newline at end of file diff --git a/webroot/index.php b/webroot/index.php index c782545..b289320 100644 --- a/webroot/index.php +++ b/webroot/index.php @@ -45,7 +45,7 @@ if(!empty($_urlToParse)) { ## set the error reporting ini_set('log_errors',true); -ini_set('error_log','/error.log'); +ini_set('error_log','error.log'); if(DEBUG === true) { ini_set('display_errors',true); } -- 2.39.5