From: Johannes Keßler Date: Fri, 2 Sep 2022 20:40:34 +0000 (+0200) Subject: default config X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=51d61aacf239b0f14e740395ff7817a2d86ea482;p=emere.git default config --- 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';