config.default.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. /**
  3. * Insipid
  4. * Personal web-bookmark-system
  5. *
  6. * Copyright 2016-2023 Johannes Keßler
  7. *
  8. * Development starting from 2011: Johannes Keßler
  9. * https://www.bananas-playground.net/projekt/insipid/
  10. *
  11. * creator:
  12. * Luke Reeves <luke@neuro-tech.net>
  13. *
  14. * This program is free software: you can redistribute it and/or modify
  15. * it under the terms of the GNU General Public License as published by
  16. * the Free Software Foundation, either version 3 of the License, or
  17. * (at your option) any later version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
  26. *
  27. */
  28. # database config
  29. const DB_HOST = '127.0.0.1'; # Address of the database server
  30. const DB_USERNAME = 'user'; # Username to access the database server and database itself
  31. const DB_PASSWORD = 'test'; # Password for username
  32. const DB_NAME = 'insipid'; # Database name on your database server
  33. const DB_PREFIX = 'insipid'; # a _ is added automatically as separation
  34. # user config
  35. const FRONTEND_USERNAME = 'han';
  36. const FRONTEND_PASSWORD = 'solo';
  37. # absolute path of webroot
  38. const ABSOLUTE_PATH = '/path/to/insipid/webroot';
  39. const LOGFILE = ABSOLUTE_PATH.'/insipid.log';
  40. # relative to absolute path the name of the storage folder
  41. const LOCAL_STORAGE = 'localdata';
  42. # complete restricted access, not only the private links or the edit functions
  43. # username and password see above
  44. const USE_PAGE_AUTH = false;
  45. # results per page
  46. const RESULTS_PER_PAGE = 12;
  47. # language setting
  48. # default is eng
  49. # valid values to match the files are: https://de.wikipedia.org/wiki/ISO_639#ISO_639-3
  50. const FRONTEND_LANGUAGE = 'eng';
  51. # if the location of email-import.php needs to be in a web accessible folder
  52. # you can protect it by setting EMAIL_JOB_PROTECT to true
  53. # and EMAIL_JOB_PROTECT_SECRET to a special secret string
  54. # AND remove the default provided .htaccess file in the job folder
  55. const EMAIL_JOB_PROTECT = false; # Default false
  56. const EMAIL_JOB_PROTECT_SECRET = 'YOUR_SOME_SECRET_STRING'; # Your own secret string
  57. # settings for importing from e-mail
  58. # SSL/TLS only
  59. # IMAP (reading), SMTP (sending)
  60. const EMAIL_SERVER = '';
  61. const EMAIL_SERVER_USER = '';
  62. const EMAIL_SERVER_PASS = '';
  63. const EMAIL_SERVER_PORT_IMAP = 993;
  64. const EMAIL_SERVER_PORT_SMTP = 465;
  65. const EMAIL_SERVER_MAILBOX = 'INBOX'; # default INBOX
  66. const EMAIL_MARKER = 'to-insipid- ';
  67. const EMAIL_ARCHIVE_FOLDER = 'archive';
  68. const EMAIL_REPORT_BACK = false;
  69. const EMAIL_REPLY_BACK_VALID = '';
  70. const EMAIL_REPLY_BACK_ADDRESS = '';
  71. const EMAIL_REPLY_BACK_SUBJECT = 'Insipid email import response';
  72. # Use ... to create a whole page screenshot of a given link
  73. const COMPLETE_PAGE_SCREENSHOT = false;
  74. const COMPLETE_PAGE_SCREENSHOT_COMMAND = '/absolute/path/to/command';
  75. # debug
  76. const DEBUG = false;
  77. const QUERY_DEBUG = false;