config.php.default 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /**
  3. * Bibliotheca
  4. *
  5. * Copyright 2018-2024 Johannes Keßler
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
  19. */
  20. # set to true if you need debug messages in error log file
  21. const DEBUG = false;
  22. # set to ture if you need query log messages in error log file.
  23. const QUERY_DEBUG = false;
  24. # timezone settings
  25. const TIMEZONE = '~timezone~';
  26. # language setting
  27. # see i18n.md file for syntax
  28. const FRONTEND_LANGUAGE = array('iso3' => 'eng', 'iso2' => 'en');
  29. # path settings
  30. const PATH_ABSOLUTE = '~pathabsolute~';
  31. const PATH_SYSTEMOUT = PATH_ABSOLUTE.'/systemout';
  32. const PATH_STORAGE = PATH_ABSOLUTE.'/storage';
  33. const PATH_WEB_STORAGE = 'storage';
  34. const LOGFILE = PATH_SYSTEMOUT.'/bibliotheca.log';
  35. # database config
  36. const DB_HOST = '~dbhost~';
  37. const DB_USERNAME = '~dbuser~';
  38. const DB_PASSWORD = '~dbpassword~';
  39. const DB_NAME = '~dbname~';
  40. const DB_PREFIX = '~dbprefix~'; # a _ is added automatically as separation
  41. ## theme support
  42. # available values are: default, 98, compact
  43. # fallback is default theme
  44. const UI_THEME = 'default';
  45. # additional config for each theme with fallback
  46. const UI_THEME_CONFIG = array(
  47. 'default' => array(
  48. 'coverImageMaxWidth' => 260 // in pixel. Supports image/jpeg, image/png, image/webp
  49. ),
  50. '98' => array(
  51. 'coverImageMaxWidth' => 500 // in pixel. Supports image/jpeg, image/png, image/webp
  52. )
  53. );
  54. # session
  55. const SESSION_LIFETIME = 43200; // 8 hours
  56. const SESSION_NAME = "bibliotheca-session";
  57. const SESSION_SAVE_PATH = PATH_SYSTEMOUT.'/session';
  58. # usersettings
  59. const ADMIN_GROUP_ID = '1';
  60. const ANON_USER_ID = '2';
  61. const ANON_GROUP_ID = '3';
  62. # view options
  63. const RESULTS_PER_PAGE = 24;
  64. # CURL browser settings
  65. const BROWSER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0';
  66. const BROWSER_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8';
  67. const BROWSER_ACCEPT_LANG = 'en-US,en;q=0.5';