config.php.default 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * scientia
  4. *
  5. * Copyright 2023 - 2024 Johannes Keßler
  6. *
  7. * https://www.bananas-playground.net/projekt/scientia/
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation, either version 3 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
  21. */
  22. # set to true if you need debug messages in error log file
  23. const DEBUG = true;
  24. # set to ture if you need query log messages in error log file.
  25. const QUERY_DEBUG = true;
  26. # timezone settings
  27. const TIMEZONE = 'Europe/Berlin';
  28. # language settings
  29. const FRONTEND_LANGUAGE = 'en';
  30. # path settings
  31. const PATH_ABSOLUTE = '/path/to/scientia/webroot';
  32. const PATH_SYSTEMOUT = PATH_ABSOLUTE . '/systemout';
  33. const PATH_WEBROOT = '/code/scientia/webroot';
  34. # Installation Domain. Webrootpath will be added automatically
  35. const INSTALL_URL = 'http://www.example.tld';
  36. # database config
  37. const DB_HOST = '127.0.0.1';
  38. const DB_USERNAME = 'user';
  39. const DB_PASSWORD = 'test';
  40. const DB_NAME = 'scientia';
  41. const DB_PREFIX = 'sc'; # a _ is added automatically as separation
  42. # username and password for authentication
  43. const FRONTEND_USERNAME = 'user';
  44. const FRONTEND_PASSWORD = 'pass';
  45. # API config
  46. # this is your installation secret. Could be anything.
  47. # Think of it as a key. Change it often to avoid any abuse.
  48. # The description will be used in the log files
  49. const UPLOAD_SECRET = array(
  50. 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret #1',
  51. 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret #2'
  52. );