--- /dev/null
+1.1 - Vortex Rikers ()
+ * Cleanup and merge to one config file. Read upgrade
+ * Missing changelog file
+ * api has its own log file now.
+
+1.0 - Castle - (20210106)
+ * First usable version
+ * Using as a collection management software will work
+ * Rights management needs tweeking, so use the admin account for a start
+ * Documentation covers the basics
+ * Use it and give feedback.
+ * Also, make backups.
-1.0 - Castle - (20210106)
- * First usable version
- * Using as a collection management software will work
- * Rights management needs tweeking, so use the admin account for a start
- * Documentation covers the basics
- * Use it and give feedback.
- * Also, make backups.
+1.1 - Vortex Rikers ()
+# Migration of the config files into one config file
+Please copy the new config/config.php.default to config/config.php and adapt the settings which you
+have on the old config files. After that you can delete config/database|path|system files.
/**
* Bibliotheca webclient
*
- * Copyright 2018-2020 Johannes Keßler
+ * Copyright 2018-2021 Johannes Keßler
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*/
-# set to true if you need debug messages in error log file
-define('DEBUG',false);
-# set to ture if you need query log messages in error log file.
-define('QUERY_DEBUG',false);
+require_once './config/config.php';
-require_once './config/path.php';
-require_once './config/system.php';
-require_once './config/database.php';
+mb_http_output('UTF-8');
+mb_internal_encoding('UTF-8');
+ini_set('error_reporting',-1); // E_ALL & E_STRICT
+
+# check request
+$_urlToParse = filter_var($_SERVER['QUERY_STRING'],FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW);
+if(!empty($_urlToParse)) {
+ # see http://de2.php.net/manual/en/regexp.reference.unicode.php
+ if(preg_match('/[\p{C}\p{M}\p{Sc}\p{Sk}\p{So}\p{Zl}\p{Zp}]/u',$_urlToParse) === 1) {
+ die('Malformed request. Make sure you know what you are doing.');
+ }
+}
+
+# set the error reporting
+ini_set('log_errors',true);
+ini_set('error_log',PATH_SYSTEMOUT.'/api.log');
+if(DEBUG === true) {
+ ini_set('display_errors',true);
+}
+else {
+ ini_set('display_errors',false);
+}
+
+# time settings
+date_default_timezone_set(TIMEZONE);
# static helper class
require_once 'lib/summoner.class.php';
--- /dev/null
+<?php
+/**
+ * Bibliotheca webclient
+ *
+ * Copyright 2018-2021 Johannes Keßler
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+# set to true if you need debug messages in error log file
+define('DEBUG',true);
+# set to ture if you need query log messages in error log file.
+define('QUERY_DEBUG',true);
+
+# timezone settings
+define('TIMEZONE','Europe/Berlin');
+
+# path settings
+define('PATH_ABSOLUTE','/home/some/path/bibliotheca/webclient');
+define('PATH_SYSTEMOUT',PATH_ABSOLUTE.'/systemout');
+define('PATH_STORAGE',PATH_ABSOLUTE.'/storage');
+define('PATH_WEB_STORAGE','storage');
+
+# database config
+define('DB_HOST','127.0.0.1');
+define('DB_USERNAME','user');
+define('DB_PASSWORD','test');
+define('DB_NAME','bibliotheca');
+define('DB_PREFIX','bib'); # a _ is added automatically as seperation
+
+## theme support
+# fallback is default theme
+define('UI_THEME', 'default');
+
+# session
+define('SESSION_LIFETIME', 43200); // 8 hours
+define('SESSION_NAME', "bibliotheca-session");
+define('SESSION_SAVE_PATH', PATH_SYSTEMOUT.'/session');
+
+# usersettings
+define('USER_DEFAULT_RIGHTS_STRING','rwxrwx---');
+define('ADMIN_GROUP_ID','1');
+define('ANON_USER_ID','2');
+define('ANON_GROUP_ID','3');
+
+# view options
+define('RESULTS_PER_PAGE',24);
+++ /dev/null
-<?php
-/**
- * Bibliotheca webclient
- *
- * Copyright 2018-2020 Johannes Keßler
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-# database config
-define('DB_HOST','127.0.0.1');
-define('DB_USERNAME','user');
-define('DB_PASSWORD','test');
-define('DB_NAME','bibliotheca');
-define('DB_PREFIX','bib'); # a _ is added automatically as separation
+++ /dev/null
-<?php
-/**
- * Bibliotheca webclient
- *
- * Copyright 2018-2020 Johannes Keßler
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-# path settings
-define('PATH_ABSOLUTE','/home/some/path/bibliotheca/webclient');
-define('PATH_SYSTEMOUT',PATH_ABSOLUTE.'/systemout');
-define('PATH_STORAGE',PATH_ABSOLUTE.'/storage');
-define('PATH_WEB_STORAGE','storage');
+++ /dev/null
-<?php
-/**
- * Bibliotheca webclient
- *
- * Copyright 2018-2020 Johannes Keßler
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-mb_http_output('UTF-8');
-mb_internal_encoding('UTF-8');
-ini_set('error_reporting',-1); // E_ALL & E_STRICT
-
-## check request
-$_urlToParse = filter_var($_SERVER['QUERY_STRING'],FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW);
-if(!empty($_urlToParse)) {
- # see http://de2.php.net/manual/en/regexp.reference.unicode.php
- if(preg_match('/[\p{C}\p{M}\p{Sc}\p{Sk}\p{So}\p{Zl}\p{Zp}]/u',$_urlToParse) === 1) {
- die('Malformed request. Make sure you know what you are doing.');
- }
-}
-
-## set the error reporting
-ini_set('log_errors',true);
-ini_set('error_log',PATH_SYSTEMOUT.'/error.log');
-if(DEBUG === true) {
- ini_set('display_errors',true);
-}
-else {
- ini_set('display_errors',false);
-}
-
-# time settings
-date_default_timezone_set('Europe/Berlin');
-
-# theme support
-# fallback support to default
-define('UI_THEME', 'default');
-
-# session
-define('SESSION_LIFETIME', 43200); // 8 hours
-define('SESSION_NAME', "bibliotheca-session");
-define('SESSION_SAVE_PATH', PATH_SYSTEMOUT.'/session');
-
-# usersettings
-define('USER_DEFAULT_RIGHTS_STRING','rwxrwx---');
-define('ADMIN_GROUP_ID','1');
-define('ANON_USER_ID','2');
-define('ANON_GROUP_ID','3');
-
-# view options
-define('RESULTS_PER_PAGE',24);
/**
* Bibliotheca webclient
*
- * Copyright 2018-2020 Johannes Keßler
+ * Copyright 2018-2021 Johannes Keßler
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*/
-# set to true if you need debug messages in error log file
-define('DEBUG',false);
-# set to ture if you need query log messages in error log file.
-define('QUERY_DEBUG',false);
+require_once './config/config.php';
-require_once './config/path.php';
-require_once './config/system.php';
-require_once './config/database.php';
+mb_http_output('UTF-8');
+mb_internal_encoding('UTF-8');
+ini_set('error_reporting',-1); // E_ALL & E_STRICT
+
+# check request
+$_urlToParse = filter_var($_SERVER['QUERY_STRING'],FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW);
+if(!empty($_urlToParse)) {
+ # see http://de2.php.net/manual/en/regexp.reference.unicode.php
+ if(preg_match('/[\p{C}\p{M}\p{Sc}\p{Sk}\p{So}\p{Zl}\p{Zp}]/u',$_urlToParse) === 1) {
+ die('Malformed request. Make sure you know what you are doing.');
+ }
+}
+
+# set the error reporting
+ini_set('log_errors',true);
+ini_set('error_log',PATH_SYSTEMOUT.'/error.log');
+if(DEBUG === true) {
+ ini_set('display_errors',true);
+}
+else {
+ ini_set('display_errors',false);
+}
+
+# time settings
+date_default_timezone_set(TIMEZONE);
# static helper class
require_once 'lib/summoner.class.php';