config.inc.sample 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. /**
  3. * Copyright 2021, 2024 5 Mode
  4. *
  5. * This file is part of StarWorth.
  6. *
  7. * StarWorth 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. * StarWorth 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 StarWorth. If not, see <https://www.gnu.org/licenses/>.
  19. *
  20. * config.inc
  21. *
  22. * StarWorth 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', "StarWorth");
  29. define('APP_TITLE', "StarWorth: bitting the stars.");
  30. define('APP_DESCRIPTION', "StarWorth! Next stars..");
  31. define('APP_KEYWORDS', "StarWorth, stars, events, happenings");
  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', "");
  42. // App uses: PRIVATE or BUSINESS
  43. define('APP_USE', "PRIVATE");
  44. define('APP_GUEST_MSG', "This is a private event list, please login");
  45. define('APP_WELCOME_MSG', "Welcome to your event list:");
  46. // Max signs from a single client
  47. define('APP_MAX_FROM_IP', 5);
  48. define('APP_MAX_AGE', 3600);
  49. // Default Context: 'PRIVATE' or 'PUBLIC'
  50. define('APP_DEFAULT_CONTEXT', "PUBLIC");
  51. define('DISPLAY_DATE_FONT', "Yuji Boku");
  52. define('DISPLAY_SUBMIT_BUTTON', "Log event");
  53. define('DISPLAY_BODY_CSS', "font-family: Monospace, Verdana, Serif;");
  54. define('CMDLINE_VALIDCMDS', "~|sign|del|conf|set|refresh|");
  55. define('HISTORY_MAX_ITEMS', 1000);
  56. $CONFIG = [
  57. 'DEBUG' => true,
  58. 'APP' => [
  59. 'NAME' => "StarWorth",
  60. 'TITLE' => "StarWorth: bitting the stars.",
  61. 'DESCRIPTION' => "StarWorth! Next stars..",
  62. 'KEYWORDS' => "StarWorth, stars, events, happenings",
  63. // password: yourpassword
  64. // salt: yoursalt
  65. 'HASH' => "",
  66. 'SPLASH' => true,
  67. 'PATH' => "/var/www/YourWebApp",
  68. 'DATA_PATH' => "/var/www/YourWebApp/data",
  69. 'SALT' => "yoursalt",
  70. // Default Locale, in two letters format
  71. 'LOCALE' => "EN",
  72. 'CUSTOM_HEADER' => "",
  73. // App use: PRIVATE or BUSINESS
  74. 'USE' => "PRIVATE",
  75. // App use: EVENTS(0) or CALENDAR(1)
  76. 'GUEST_MSG' => "This is a private event list, please login",
  77. 'WELCOME_MSG' => "Welcome to your event list:",
  78. // Max signs from a single client
  79. 'MAX_FROM_IP' => 5,
  80. 'MAX_AGE' => 3600,
  81. // Default Context: 'PRIVATE' or 'PUBLIC'
  82. 'DEFAULT_CONTEXT' => "PUBLIC"
  83. ],
  84. 'DISPLAY' => [
  85. 'NAME_FONT' => "Yuji Boku",
  86. 'SUBMIT_BUTTON' => "Log event",
  87. 'BODY_CSS' => "font-family: Monospace, Verdana, Serif;"
  88. ],
  89. 'CMDLINE' => [
  90. 'VALIDCMDS' => "~|sign|del|conf|set|refresh|"
  91. ],
  92. 'HISTORY' => [
  93. 'MAX_ITEMS' => 1000
  94. ]
  95. ];