config.inc.sample 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?php
  2. /**
  3. * Copyright 2021, 2024 5 Mode
  4. *
  5. * This file is part of SnipSwap.
  6. *
  7. * SnipSwap 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. * SnipSwap 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 SnipSwap. If not, see <https://www.gnu.org/licenses/>.
  19. *
  20. * config.inc
  21. *
  22. * Configuration settings.
  23. *
  24. * @author Daniele Bonini <my25mb@aol.com>
  25. * @copyrights (c) 2016, 2024, 5 Mode
  26. */
  27. define('DEBUG', true);
  28. define('TESTING', false);
  29. //define('CACHE_HOST', "172.20.0.3");
  30. //define('CACHE_PORT', "11211");
  31. //define('CACHE_EXPIRE', 24);
  32. //define('CACHE_APP_PREFIX', "SS_tosqefv0ct_");
  33. define('APP_NAME', "SnipSwap");
  34. define('APP_HOST', "yourname-snipwap.com");
  35. define('APP_PATH', "/var/www/YourWebApp/Public");
  36. define('APP_SCRIPT_PATH', "/var/www/YourWebApp/Private/scripts");
  37. define('APP_AJAX_PATH', "/var/www/YourWebApp/Private/scripts_ajax");
  38. define('APP_ERROR_PATH', "/var/www/YourWebApp/Private/error");
  39. define('APP_DATA_PATH', "/var/www/YourWebApp/Private/repo");
  40. define('APP_TEMPLATE_PATH', "/var/www/YourWebApp/Private/templates");
  41. define('APP_SCRIPTS_WITHOUT_HEADER', "~||");
  42. define('APP_SCRIPTS_WITHOUT_SEARCH_MENU', "~|err-401|err-404|");
  43. define('APP_LICENSE', <<<LICENSETEXT
  44. Copyright 2021, 2024 5 Mode
  45. This file is part of SnipSwap.
  46. SnipSwap is free software: you can redistribute it and/or modify
  47. it under the terms of the GNU General Public License as published by
  48. the Free Software Foundation, either version 3 of the License, or
  49. (at your option) any later version.
  50. SnipSwap is distributed in the hope that it will be useful,
  51. but WITHOUT ANY WARRANTY; without even the implied warranty of
  52. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  53. GNU General Public License for more details.
  54. You should have received a copy of the GNU General Public License
  55. along with SnipSwap. If not, see <https://www.gnu.org/licenses/>.
  56. LICENSETEXT
  57. );
  58. define('APP_DEF_LANG', "en-US");
  59. define('APP_LOCALE', "EN");
  60. define('APP_MAX_DFT_NEW_SNIPS', 15);
  61. define('SESSION_NAME', "SS_3445501");
  62. define('SESSION_TIMEOUT', 1800);
  63. define('BUSINESS_DFT_LABEL', "5 Mode");
  64. define('BUSINESS_DFT_LINK', "5mode.com");
  65. define('BUSINESS_DFT_EMAIL', "my25mb@aol.com");
  66. // sha256 password
  67. // pw: password
  68. define('EDITOR_PASSWORD', "");
  69. define('SEARCH_WORD_EXCLUSION_LIST_en-US', "~|a|an|of|at|in|on|inside|from|by|to|the|for|with|within|many|much|few|some|any|and|or|how|like|where|what|who|when|which|why|whose|that|this|these|those|about|");
  70. define('SEARCH_WORD_EXCLUSION_LIST_zh-CN', "~|一个|一双|一只|一本|一台|一块|一堆|一听|一串|一条|一盏|的|在|里|上|从|自|到|为|给|很多|很少|一些|任何|和|或者|怎么样|像|哪里|什么时候|什么|谁|哪个|为什么|谁的|那个|这个|这些|那些|关于|");
  71. define('SEARCH_WORD_EXCLUSION_LIST_es-ES', "~|un|una|uno|de|en|sobre|dentro|desde|del|dela|dele|delo|a|para|el|la|lo|los|las|por|tras|muchos|mucho|unos|unas|como|donde|que|quien|cuando|cual|cuyo|cuya|este|estos|esta|estas|esto|aquel|aquellos|aquella|aquellas|aquello|acerca|");
  72. define('SEARCH_WORD_EXCLUSION_LIST_it-IT', "~|un|una|uno|di|del|dell|dello|della|delle||degli|dei|a|ad|al|all|allo|alla|alle|agli|ai|in|nel|nello|nella|nelle|nell|negli|nei|su|sul|sullo|sulla|sulle|sugli|sui|dentro|da|dal|dall|dallo|dalla|dalle|dagli|dai|i|il|lo|la|le|gli|con|col|per|via|tra|fra|molti|molto|alcuni|e|ed|o|come|dove|cosa|chi|quando|quale|quali|perche|purche|cui|che|questo|quello|quei|quegli|circa|");
  73. define('SEARCH_WORD_EXCLUSION_LIST_fr-FR', "~|un|une|de|a|en|dans|sur|dedans|des|depuit|le|la|les|pour|entre|beaucoup|tres|comme|comment|que|qui|quand|quel|quelle|quelles|pourquoi|ce|ces|cet|cette|");
  74. $CONFIG = [
  75. 'DEBUG' => true,
  76. 'TESTING' => false,
  77. // 'CACHE' => [
  78. // 'HOST' => "172.20.0.3",
  79. // 'PORT' => "11211",
  80. // 'EXPIRE' => 45,
  81. // 'APP_PREFIX' => "SS_tosqefv0ct_",
  82. // ],
  83. 'APP' => [
  84. 'NAME' => "SnipSwap",
  85. 'HOST' => "youname-snipswap.com",
  86. 'PATH' => "/var/www/YourWebApp/Public",
  87. 'SCRIPT_PATH' => "/var/www/YourWebApp/Private/scripts",
  88. 'AJAX_PATH' => "/var/www/YourWebApp/Private/scripts_ajax",
  89. 'ERROR_PATH' => "/var/www/YourWebApp/Private/error",
  90. 'DATA_PATH' => "/var/www/YourWebApp/Private/repo",
  91. 'TEMPLATE_PATH' => "/var/www/YourWebApp/Private/templates",
  92. 'SCRIPTS_WITHOUT_HEADER' => "~||",
  93. 'SCRIPTS_WITHOUT_SEARCH_MENU' => "~|err-401|err-404|",
  94. 'LICENSE' => <<<LICENSETEXT
  95. Copyright 2021, 2024 5 Mode
  96. This file is part of SnipSwap.
  97. SnipSwap is free software: you can redistribute it and/or modify
  98. it under the terms of the GNU General Public License as published by
  99. the Free Software Foundation, either version 3 of the License, or
  100. (at your option) any later version.
  101. SnipSwap is distributed in the hope that it will be useful,
  102. but WITHOUT ANY WARRANTY; without even the implied warranty of
  103. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  104. GNU General Public License for more details.
  105. You should have received a copy of the GNU General Public License
  106. along with SnipSwap. If not, see <https://www.gnu.org/licenses/>.
  107. LICENSETEXT
  108. ,
  109. 'DEF_LANG' => "en-US",
  110. 'LOCALE' => "EN",
  111. 'MAX_DFT_NEW_SNIPS' => 15
  112. ],
  113. 'SESSION' => [
  114. 'NAME' => "SS_3445501",
  115. 'TIMEOUT' => 1800
  116. ],
  117. 'BUSINESS' => [
  118. 'DFT_LABEL' => "5 Mode",
  119. 'DFT_LINK' => "5mode.com",
  120. 'DFT_EMAIL' => "my25mb@aol.com"
  121. ],
  122. 'EDITOR' => [
  123. // sha256 password
  124. // pw: password
  125. 'PASSWORD' => ""
  126. ],
  127. 'SEARCH' => [
  128. 'WORD_EXCLUSION_LIST_en-US' => "~|a|an|of|at|in|on|inside|from|by|to|the|for|with|within|many|much|few|some|any|and|or|how|like|where|what|who|when|which|why|whose|that|this|these|those|about|",
  129. 'WORD_EXCLUSION_LIST_zh-CN' => "~|一个|一双|一只|一本|一台|一块|一堆|一听|一串|一条|一盏|的|在|里|上|从|自|到|为|给|很多|很少|一些|任何|和|或者|怎么样|像|哪里|什么时候|什么|谁|哪个|为什么|谁的|那个|这个|这些|那些|关于|",
  130. 'WORD_EXCLUSION_LIST_es-ES' => "~|un|una|uno|de|en|sobre|dentro|desde|del|dela|dele|delo|a|para|el|la|lo|los|las|por|tras|muchos|mucho|unos|unas|como|donde|que|quien|cuando|cual|cuyo|cuya|este|estos|esta|estas|esto|aquel|aquellos|aquella|aquellas|aquello|acerca|",
  131. 'WORD_EXCLUSION_LIST_it-IT' => "~|un|una|uno|di|del|dell|dello|della|delle|degli|dei|a|ad|al|all|allo|alla|alle|agli|ai|in|nel|nello|nella|nelle|nell|negli|nei|su|sul|sullo|sulla|sulle|sugli|sui|dentro|da|dal|dall|dallo|dalla|dalle|dagli|dai|i|il|lo|la|le|gli|con|col|per|via|tra|fra|molti|molto|alcuni|e|ed|o|come|dove|cosa|chi|quando|quale|quali|perche|purche|cui|che|questo|quello|quei|quegli|circa|",
  132. 'WORD_EXCLUSION_LIST_fr-FR' => "~|un|une|de|a|en|dans|sur|dedans|des|depuit|le|la|les|pour|entre|beaucoup|tres|comme|comment|que|qui|quand|quel|quelle|quelles|pourquoi|ce|ces|cet|cette|"
  133. ]
  134. ];