From 51d61aacf239b0f14e740395ff7817a2d86ea482 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Ke=C3=9Fler?= Date: Fri, 2 Sep 2022 22:40:34 +0200 Subject: [PATCH] default config --- webroot/config/.gitignore | 1 + webroot/config/config.php | 4 +-- webroot/config/config.php.default | 42 +++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 webroot/config/.gitignore create mode 100644 webroot/config/config.php.default diff --git a/webroot/config/.gitignore b/webroot/config/.gitignore new file mode 100644 index 0000000..4f4773f --- /dev/null +++ b/webroot/config/.gitignore @@ -0,0 +1 @@ +config.php diff --git a/webroot/config/config.php b/webroot/config/config.php index e2943a6..5c28238 100644 --- a/webroot/config/config.php +++ b/webroot/config/config.php @@ -33,8 +33,8 @@ const PATH_LOGDIRECTORY = PATH_ABSOLUTE . '/log'; const DB_HOST = '127.0.0.1'; const DB_USERNAME = 'user'; const DB_PASSWORD = 'test'; -const DB_NAME = 'bibliotheca'; -const DB_PREFIX = 'bib'; # a _ is added automatically as separation +const DB_NAME = 'emere'; +const DB_PREFIX = 'emere'; # a _ is added automatically as separation # session const SESSION_LIFETIME = 43200; // 8 hours diff --git a/webroot/config/config.php.default b/webroot/config/config.php.default new file mode 100644 index 0000000..5c28238 --- /dev/null +++ b/webroot/config/config.php.default @@ -0,0 +1,42 @@ +. + */ +# set to true if you need debug messages in error log file +const DEBUG = true; +# set to ture if you need query log messages in error log file. +const QUERY_DEBUG = true; + +# timezone settings +const TIMEZONE = 'Europe/Berlin'; + +# path settings +const PATH_ABSOLUTE = '/home/some/path/emere/'; +const PATH_LOGDIRECTORY = PATH_ABSOLUTE . '/log'; + +# database config +const DB_HOST = '127.0.0.1'; +const DB_USERNAME = 'user'; +const DB_PASSWORD = 'test'; +const DB_NAME = 'emere'; +const DB_PREFIX = 'emere'; # a _ is added automatically as separation + +# session +const SESSION_LIFETIME = 43200; // 8 hours +const SESSION_NAME = "emere-session"; +const SESSION_SAVE_PATH = PATH_LOGDIRECTORY . '/session'; -- 2.39.5