1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- /**
- * Bibliotheca
- *
- * Copyright 2018-2024 Johannes Keßler
- *
- * 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.
- */
- # set to true if you need debug messages in error log file
- const DEBUG = false;
- # set to ture if you need query log messages in error log file.
- const QUERY_DEBUG = false;
- # timezone settings
- const TIMEZONE = '~timezone~';
- # language setting
- # see i18n.md file for syntax
- const FRONTEND_LANGUAGE = array('iso3' => 'eng', 'iso2' => 'en');
- # path settings
- const PATH_ABSOLUTE = '~pathabsolute~';
- const PATH_SYSTEMOUT = PATH_ABSOLUTE.'/systemout';
- const PATH_STORAGE = PATH_ABSOLUTE.'/storage';
- const PATH_WEB_STORAGE = 'storage';
- const LOGFILE = PATH_SYSTEMOUT.'/bibliotheca.log';
- # database config
- const DB_HOST = '~dbhost~';
- const DB_USERNAME = '~dbuser~';
- const DB_PASSWORD = '~dbpassword~';
- const DB_NAME = '~dbname~';
- const DB_PREFIX = '~dbprefix~'; # a _ is added automatically as separation
- ## theme support
- # available values are: default, 98, compact
- # fallback is default theme
- const UI_THEME = 'default';
- # additional config for each theme with fallback
- const UI_THEME_CONFIG = array(
- 'default' => array(
- 'coverImageMaxWidth' => 260 // in pixel. Supports image/jpeg, image/png, image/webp
- ),
- '98' => array(
- 'coverImageMaxWidth' => 500 // in pixel. Supports image/jpeg, image/png, image/webp
- )
- );
- # session
- const SESSION_LIFETIME = 43200; // 8 hours
- const SESSION_NAME = "bibliotheca-session";
- const SESSION_SAVE_PATH = PATH_SYSTEMOUT.'/session';
- # usersettings
- const ADMIN_GROUP_ID = '1';
- const ANON_USER_ID = '2';
- const ANON_GROUP_ID = '3';
- # view options
- const RESULTS_PER_PAGE = 24;
- # CURL browser settings
- const BROWSER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0';
- const BROWSER_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8';
- const BROWSER_ACCEPT_LANG = 'en-US,en;q=0.5';
|