config.inc.sample 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. /**
  3. * Copyright 2021, 2024 5 Mode
  4. *
  5. * This file is part of DropIn.
  6. *
  7. * DropIn 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. * DropIn 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 DropIn. If not, see <https://www.gnu.org/licenses/>.
  19. *
  20. * config.inc
  21. *
  22. * DropIn configuration settings.
  23. *
  24. * @author Daniele Bonini <my25mb@aol.com>
  25. * @copyrights (c) 2021, 2024, 5 Mode
  26. */
  27. define('DEBUG', true);
  28. define('APP_NAME', "DropIn");
  29. define('APP_TITLE', "DropIn");
  30. define('APP_DESCRIPTION', "Welcome to DropIn! Let everyone drop their own stuff.");
  31. define('APP_KEYWORDS', "exerpt,logger,list,on-premise,solution");
  32. // password: yourpassword
  33. // salt: yoursalt
  34. define('APP_HASH', "");
  35. define('APP_SPLASH', true);
  36. define('APP_PATH', "/var/www/YourWebApp");
  37. define('APP_DATA_PATH', "/var/www/YourWebApp/data");
  38. define('APP_SALT', "yoursalt");
  39. // Default Locale, in two letters format
  40. define('APP_LOCALE', "EN");
  41. define('APP_CUSTOM_HEADER', "&nbsp;&nbsp;<a href='http://5mode.com'><img src='/DI_res/5mode.png' style='width:950px;'></a>");
  42. // App uses: PRIVATE or BUSINESS
  43. define('APP_USE', "PRIVATE");
  44. // App context: EVENTS(0) or CALENDAR(1)
  45. define('APP_MODE', 0);
  46. define('APP_GUEST_MSG', "This is a private exerpt list, please login");
  47. define('APP_WELCOME_MSG', "your exerpt list:");
  48. // Max signs from a single client
  49. define('APP_MAX_FROM_IP', 5);
  50. // Default Context: 'PRIVATE' or 'PUBLIC'
  51. define('APP_DEFAULT_CONTEXT', "PUBLIC");
  52. define('APP_FILE_MAX_SIZE', 496000);
  53. define('APP_CATS', "(PHP|HTML|JS|SHELL|TCL-TK)");
  54. define('DISPLAY_SHOW_HEADER', true);
  55. define('DISPLAY_SHOW_DATETIME', true);
  56. define('DISPLAY_DATE_FONT', "Yuji Boku");
  57. define('DISPLAY_SUBMIT_BUTTON', "Log event");
  58. define('CMDLINE_VALIDCMDS', "~|sign|del|conf|refresh|");
  59. define('HISTORY_MAX_ITEMS', 1000);
  60. $CONFIG = [
  61. 'DEBUG' => true,
  62. 'APP' => [
  63. 'NAME' => "DropIn",
  64. 'TITLE' => "DropIn",
  65. 'DESCRIPTION' => "Welcome to DropIn! Let everyone drop their own stuff.",
  66. 'KEYWORDS' => "exerpt,logger,list,on-premise,solution",
  67. // password: yourpassword
  68. // salt: yoursalt
  69. 'HASH' => "",
  70. 'PATH' => "/var/www/YourWebApp",
  71. 'DATA_PATH' => "/var/www/YourWebApp/data",
  72. 'SALT' => "yoursalt",
  73. // Default Locale, in two letters format
  74. 'LOCALE' => "EN",
  75. 'CUSTOM_HEADER' => "&nbsp;&nbsp;<a href='http://5mode.com'><img src='/DI_res/5mode.png' style='width:950px;'></a>",
  76. // App use: PRIVATE or BUSINESS
  77. 'USE' => "PRIVATE",
  78. 'GUEST_MSG' => "This is a private exerpt list, please login",
  79. 'WELCOME_MSG' => "your exerpt list:",
  80. // Max signs from a single client
  81. 'MAX_FROM_IP' => 5,
  82. // Default Context: 'PRIVATE' or 'PUBLIC'
  83. 'DEFAULT_CONTEXT' => "PUBLIC",
  84. 'FILE_MAX_SIZE' => 496000,
  85. 'CATS' => "(PHP|HTML|JS|SHELL|TCL-TK)"
  86. ],
  87. 'DISPLAY' => [
  88. 'SHOW_DATETIME' => true,
  89. 'SHOW_HEADER' => true,
  90. 'NAME_FONT' => "Yuji Boku",
  91. 'SUBMIT_BUTTON' => "Log event"
  92. ],
  93. 'CMDLINE' => [
  94. 'VALIDCMDS' => "~|sign|del|conf|refresh|"
  95. ],
  96. 'HISTORY' => [
  97. 'MAX_ITEMS' => 1000
  98. ]
  99. ];