config.inc.sample 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <?php
  2. /**
  3. * Copyright 2021, 2024 5 Mode
  4. *
  5. * This file is part of FloatingBuds.
  6. *
  7. * FloatingBuds 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. * FloatingBuds 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 FloatingBuds. If not, see <https://www.gnu.org/licenses/>.
  19. *
  20. * config.inc
  21. *
  22. * FloatingBuds configuration settings.
  23. *
  24. * @author Daniele Bonini <my25mb@aol.com>
  25. * @copyrights (c) 2021, 2024, 5 Mode
  26. */
  27. define('DEBUG', false);
  28. define('ADMIN_VIEW', "1");
  29. define('PUBLIC_VIEW', "2");
  30. define('APP_NAME', "FloatingBuds");
  31. define('APP_TITLE', "Floating Buds: everyone its conversation.");
  32. define('APP_SALT', "yoursalt");
  33. define('APP_HOST', "YourConversation.com");
  34. define('APP_PATH', "/var/www/YourWebApp/Public");
  35. define('APP_HOME_PATH', "/var/www/YourWebApp/Public/home.html");
  36. define('APP_PRIVATE_PATH', "/var/www/YourWebApp/Private");
  37. define('APP_SCRIPT_PATH', "/var/www/YourWebApp/Private/scripts");
  38. define('APP_AJAX_PATH', "/var/www/YourWebApp/Private/scripts_ajax");
  39. define('APP_ERROR_PATH', "/var/www/YourWebApp/Private/error");
  40. define('APP_DATA_PATH', "/var/www/YourWebApp/Private/data");
  41. define('APP_LICENSE', <<<LICENSETEXT
  42. Copyright (c) 2016, 2024, 5 Mode
  43. All rights reserved.
  44. This file is part of FloatingBuds.
  45. FloatingBuds is free software: you can redistribute it and/or modify
  46. it under the terms of the GNU General Public License as published by
  47. the Free Software Foundation, either version 3 of the License, or
  48. (at your option) any later version.
  49. FloatingBuds is distributed in the hope that it will be useful,
  50. but WITHOUT ANY WARRANTY; without even the implied warranty of
  51. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  52. GNU General Public License for more details.
  53. You should have received a copy of the GNU General Public License
  54. along with FloatingBuds. If not, see <https://www.gnu.org/licenses/>.
  55. https://opensource.org/licenses/GPL-3.0
  56. LICENSETEXT
  57. );
  58. // Default Locale, in two letters format
  59. define('APP_DEF_LANG', "en-US");
  60. define('APP_DEF_PROFILE_PIC', "/res/pic1.png");
  61. define('APP_FILE_MAX_SIZE', 496000);
  62. define('APP_BLOG_MAX_POSTS', 20);
  63. define('APP_PAGINATION', false);
  64. $CONFIG = [
  65. 'DEBUG' => true,
  66. 'ADMIN_VIEW' => "1",
  67. 'PUBLIC_VIEW' => "2",
  68. 'APP' => [
  69. 'NAME' => "FloatingBuds",
  70. 'TITLE' => "Floating Buds: everyone its conversation.",
  71. 'SALT' => "yoursalt",
  72. 'HOST' => "YourConversation.com",
  73. 'PATH' => "/var/www/YourWebApp/Public",
  74. 'HOME_PATH' => "/var/www/YourWebApp/Public/home.html",
  75. 'PRIVATE_PATH' => "/var/www/YourWebApp/Private",
  76. 'SCRIPT_PATH' => "/var/www/YourWebApp/Private/scripts",
  77. 'AJAX_PATH' => "/var/www/YourWebApp/Private/scripts_ajax",
  78. 'ERROR_PATH' => "/var/www/YourWebApp/Private/error",
  79. 'DATA_PATH' => "/var/www/YourWebApp/Private/data",
  80. 'LICENSE' => <<<LICENSETEXT
  81. Copyright (c) 2016, 2024, 5 Mode
  82. All rights reserved.
  83. This file is part of Floating Buds.
  84. FloatingBuds is free software: you can redistribute it and/or modify
  85. it under the terms of the GNU General Public License as published by
  86. the Free Software Foundation, either version 3 of the License, or
  87. (at your option) any later version.
  88. FloatingBuds is distributed in the hope that it will be useful,
  89. but WITHOUT ANY WARRANTY; without even the implied warranty of
  90. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  91. GNU General Public License for more details.
  92. You should have received a copy of the GNU General Public License
  93. along with FloatingBuds. If not, see <https://www.gnu.org/licenses/>.
  94. https://opensource.org/licenses/GPL-3.0
  95. LICENSETEXT
  96. ,
  97. 'DEF_LANG' => "en-US",
  98. 'DEF_PROFILE_PIC' => "/res/pic1.png",
  99. 'FILE_MAX_SIZE' => 496000,
  100. 'BLOG_MAX_POSTS' => 20,
  101. 'PAGINATION' => false
  102. ]
  103. 'AUTH' => [
  104. 'FRIEND_0' => [
  105. 'NICKNAME' => "Friend 0",
  106. 'COLOR' => "blue",
  107. 'PROFILE_PIC' => "/pic/Friend0.png",
  108. // password:
  109. // salt:
  110. 'HASH' => "",
  111. // Timezone in +N format (without leading zero)
  112. 'TIMEZONE' => "+2",
  113. // Language, in two letters format
  114. 'LOCALE' => "en-US"
  115. ],
  116. 'FRIEND_1' => [
  117. 'NICKNAME' => "Friend 1",
  118. 'COLOR' => "#202020",
  119. 'PROFILE_PIC' => "/pic/Friend1.png",
  120. // password:
  121. // salt:
  122. 'HASH' => "",
  123. // Timezone in +N format (without leading zero)
  124. 'TIMEZONE' => "+2",
  125. // Language, in two letters format
  126. 'LOCALE' => "en-US"
  127. ],
  128. 'FRIEND_2' => [
  129. 'NICKNAME' => "Friend 2",
  130. 'COLOR' => "orange",
  131. 'PROFILE_PIC' => "/pic/Friend2.png",
  132. // password:
  133. // salt:
  134. 'HASH' => "",
  135. // Timezone in +N format (without leading zero)
  136. 'TIMEZONE' => "+2",
  137. // Language, in two letters format
  138. 'LOCALE' => "en-US"
  139. ]
  140. ]
  141. ];
  142. $LOCALE = [
  143. 'it-IT' => [
  144. '/home.php' => [
  145. 'ping' => "pong",
  146. 'How-to: Manage your avatars in FloatingBuds' => "How-to: Gestire i tuoi avatar in FloatingBuds",
  147. 'CV' => "CV",
  148. 'Sample' => "Esempio",
  149. 'My Network' => "Network",
  150. 'Hello from 5 Mode' => "Ciao da 5 Mode",
  151. 'This is just an example of blog entry' => "Questo e' giusto un esempio di post nel blog",
  152. 'Drag-n-drop .txt files to shape the blog' => "Drag-n-drop file .txt per aggiungere al tuo blog",
  153. 'Drag-n-drop .png or .jpg files to shape the gallery' => "Drag-n-drop file .png e .jpg per aggiungere alla galleria",
  154. 'The other files will land in the *magic pot*' => "Tutti gli altri file che carichi finiranno nella *magic pot*",
  155. 'Attention: everyone who know the blog uri can partecipate or watch by loggin-in' => "Attenzione: tutti coloro che conoscono l'uri del blog possono partecipare o leggere loggandosi",
  156. 'Go' => "Vai",
  157. 'Hash Me' => "Codificami",
  158. 'Some rights reserved' => "Alcuni diritti riservati"
  159. ],
  160. '/js/home-js.php' => [
  161. 'ping' => "pong",
  162. 'Please set your hash in the config file with this value' => "Puoi impostare il tuo hash nel file config con questo valore"
  163. ]
  164. ],
  165. 'zh-CN' => [
  166. '/home.php' => [
  167. 'ping' => "pong",
  168. 'How-to: Manage your avatars in FloatingBuds' => "HOW-TO: 免费管理您的化身",
  169. 'CV' => "简历",
  170. 'Sample' => "样本",
  171. 'My Network' => "我的网络",
  172. 'Hello from 5 Mode' => "您好5 MODE",
  173. 'This is just an example of blog entry' => "这只是博客条目的一个例子",
  174. 'This is just an example of blog entry' => "这只是博客条目的一个例子",
  175. 'Drag-n-drop .txt files to shape the blog' => "删除文件.txt以添加到您的博客",
  176. 'Drag-n-drop .png or .jpg files to shape the gallery' => "删除.png或.jpg文件以塑造画廊",
  177. 'The other files will land in the *magic pot*' => "所有其他文件将降落在 *magic pot*",
  178. 'Attention: everyone who know the blog uri can partecipate or watch by loggin-in' => "注意:知道博客网址的都可以通过登录参与或观看",
  179. 'Go' => "去",
  180. 'Hash Me' => "哈希我",
  181. 'Some rights reserved' => "保留一些权利"
  182. ],
  183. '/js/home-js.php' => [
  184. 'ping' => "pong",
  185. 'Please set your hash in the config file with this value' => "请在配置文件中设置您的哈希"
  186. ]
  187. ]
  188. ];
  189. $EMOTICONS = [
  190. '[:-)]' => "&#128578;",
  191. '[:-p]' => "&#129297;",
  192. '[:c)]' => "&#128512;",
  193. '[;-)]' => "&#128521;",
  194. '[:-J]' => "&#128527;",
  195. '[;-P]' => "&#128540;",
  196. '[:-/]' => "&#128533;",
  197. '[@-)]' => "&#128531;",
  198. '[B-)]' => "&#128526;",
  199. '[=]]' => '&#128515;',
  200. '[=)]' => "&#128516;",
  201. '[*-)]' => "&#128525;"
  202. ];