config.inc.sample 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <?php
  2. /**
  3. * Copyright 2021, 2024 5 Mode
  4. *
  5. * This file is part of Homomm.
  6. *
  7. * Homomm 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. * Homomm 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 Homomm. If not, see <https://www.gnu.org/licenses/>.
  19. *
  20. * config.inc
  21. *
  22. * Homomm 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', "Homomm");
  29. define('APP_SPLASH', true);
  30. define('APP_PATH', "/var/www/YourWebApp/Public/static");
  31. define('APP_SCRIPT_PATH', "/var/www/YourWebApp/Private/scripts");
  32. define('APP_AJAX_PATH', "/var/www/YourWebApp/Private/scripts_ajax");
  33. define('APP_ERROR_PATH', "/var/www/YourWebApp/Private/error");
  34. define('APP_SALT', "yoursalt");
  35. define('APP_REPO_PATH', "/var/www/YourWebApp/Private/Repo");
  36. define('APP_PIC_PATH', "/var/www/YourWebApp/Public/static/hmm-img");
  37. // Timezone in +N format (without leading zero)
  38. define('APP_SERVER_TIMEZONE', "+2");
  39. define('CMDLINE_VALIDCMDS', "~|sendmsg|refreshbrd|delmsg|delpic|openpic|");
  40. define('HISTORY_MAX_ITEMS', 50);
  41. // SMS by using your Twilio account
  42. define('SMS_API_URL', "");
  43. // Set here your Account SID
  44. define('SMS_USERNAME', "");
  45. // Set here your Auth Token
  46. define('SMS_PASSWORD', "");
  47. // Set here the Message Service to send message from..
  48. define('SMS_MESSAGING_SERVICE', "");
  49. // Set here the Message body
  50. define('SMS_BODY', "You have a new message on http://homomm.org");
  51. $CONFIG = [
  52. 'DEBUG' => true,
  53. 'APP' => [
  54. 'NAME' => "Homomm",
  55. 'SPLASH' => true,
  56. 'PATH' => "/var/www/YourWebApp/Public/static",
  57. 'SCRIPT_PATH' => "/var/www/YourWebApp/Private/scripts",
  58. 'AJAX_PATH' => "/var/www/YourWebApp/Private/scripts_ajax",
  59. 'ERROR_PATH' => "/var/www/YourWebApp/Private/error",
  60. 'SALT' => "yoursalt",
  61. 'REPO_PATH' => "/var/www/YourWebApp/Private/Repo",
  62. 'PIC_PATH' => "/var/www/YourWebApp/Public/static/hmm-img",
  63. // Timezone in +N format (without leading zero)
  64. 'SERVER_TIMEZONE' => "+2"
  65. ],
  66. 'AUTH' => [
  67. 'MASTER' => [
  68. 'USERNAME' => "Dan",
  69. 'PHONE' => "+160612345567",
  70. 'REPO_FOLDER' => "master",
  71. 'PIC_FOLDER' => "master",
  72. // password: yourpassword
  73. // salt: yoursalt
  74. 'HASH' => "",
  75. // Timezone in +N format (without leading zero)
  76. 'TIMEZONE' => "+2",
  77. // Language, in two letters format
  78. 'LOCALE' => "EN"
  79. ],
  80. 'FRIEND_0' => [
  81. 'USERNAME' => "John",
  82. 'PHONE' => "+16061234567",
  83. 'REPO_FOLDER' => "user",
  84. 'PIC_FOLDER' => "user",
  85. // password: yourpassword
  86. // salt: yoursalt
  87. 'HASH' => "",
  88. // Timezone in +N format (without leading zero)
  89. 'TIMEZONE' => "+2",
  90. // Language, in two letters format
  91. 'LOCALE' => "EN"
  92. ],
  93. 'FRIEND_1' => [
  94. 'USERNAME' => "Nickname",
  95. 'PHONE' => "+16061234567",
  96. 'REPO_FOLDER' => "user",
  97. 'PIC_FOLDER' => "user",
  98. // password: yourpassword
  99. // salt: yoursalt
  100. 'HASH' => "",
  101. // Timezone in +N format (without leading zero)
  102. 'TIMEZONE' => "+2",
  103. // Language, in two letters format
  104. 'LOCALE' => "EN"
  105. ],
  106. 'FRIEND_2' => [
  107. 'USERNAME' => "Nickname",
  108. 'PHONE' => "+16061234567",
  109. 'REPO_FOLDER' => "user",
  110. 'PIC_FOLDER' => "user",
  111. // password: yourpassword
  112. // salt: yoursalt
  113. 'HASH' => "",
  114. // Timezone in +N format (without leading zero)
  115. 'TIMEZONE' => "+2",
  116. // Language, in two letters format
  117. 'LOCALE' => "EN"
  118. ]
  119. ],
  120. 'CMDLINE' => [
  121. 'VALIDCMDS' => "~|sendmsg|refreshbrd|delmsg|delpic|openpic|"
  122. ],
  123. 'HISTORY' => [
  124. 'MAX_ITEMS' => 50
  125. ],
  126. 'SMS' => [
  127. 'API_URL' => "",
  128. 'USERNAME' => "",
  129. 'PASSWORD' => "",
  130. 'MESSAGING_SERVICE' => "",
  131. 'BODY' => "You have a new message on http://homomm.org"
  132. ]
  133. ];
  134. $LOCALE = [
  135. 'CN' => [
  136. 'Monday' => "星期一",
  137. 'Tuesday' => "星期二",
  138. 'Wednesday' => "星期三",
  139. 'Thursday' => "星期四",
  140. 'Friday' => "星期五",
  141. 'Saturday' => "星期六",
  142. 'Sunday' => "星期天",
  143. 'January' => "一月",
  144. 'February' => "二月",
  145. 'March' => "三月",
  146. 'April' => "四月",
  147. 'May' => "五月",
  148. 'June' => "六月",
  149. 'July' => "七月",
  150. 'August' => "八月",
  151. 'September' => "九月",
  152. 'October' => "十月",
  153. 'November' => "十一月",
  154. 'December' => "十二月",
  155. 'Friends' => "朋友",
  156. 'Message board' => "留言板",
  157. 'Message' => "消息",
  158. 'Go' => "发送",
  159. 'Hash me' => "哈希这个",
  160. 'Try the Beep' => '试试哔声'
  161. ],
  162. 'DE' => [
  163. 'Monday' => "Montag",
  164. 'Tuesday' => "Dienstag",
  165. 'Wednesday' => "Mittwoch",
  166. 'Thursday' => "Donnerstag",
  167. 'Friday' => "Freitag",
  168. 'Saturday' => "Samstag",
  169. 'Sunday' => "Sonntag",
  170. 'January' => "Januar",
  171. 'February' => "Februar",
  172. 'March' => "März",
  173. 'April' => "April",
  174. 'May' => "Mai",
  175. 'June' => "Juni",
  176. 'July' => "Juli",
  177. 'August' => "August",
  178. 'September' => "September",
  179. 'October' => "Oktober",
  180. 'November' => "November",
  181. 'December' => "Dezember",
  182. 'Friends' => "Freunde",
  183. 'Message board' => "Brett",
  184. 'Message' => "Nachricht",
  185. 'Go' => "Go",
  186. 'Hash me' => "Hash mich",
  187. 'Try the Beep' => "Teste den Bip"
  188. ],
  189. 'ES' => [
  190. 'Monday' => "Lunes",
  191. 'Tuesday' => "Martes",
  192. 'Wednesday' => "Miércoles",
  193. 'Thursday' => "Jueves",
  194. 'Friday' => "Viernes",
  195. 'Saturday' => "Sábado",
  196. 'Sunday' => "Domingo",
  197. 'January' => "Enero",
  198. 'February' => "Febrero",
  199. 'March' => "Marzo",
  200. 'April' => "Abril",
  201. 'May' => "Mayo",
  202. 'June' => "Junio",
  203. 'July' => "Julio",
  204. 'August' => "Agosto",
  205. 'September' => "Septiembre",
  206. 'October' => "Octubre",
  207. 'November' => "Noviembre",
  208. 'December' => "Diciembre",
  209. 'Friends' => "Amigos",
  210. 'Message board' => "Mensajeria",
  211. 'Message' => "Mensaje",
  212. 'Go' => "Go",
  213. 'Hash me' => "Hash me",
  214. 'Try The Beep' => "Prueba el Bip"
  215. ],
  216. 'FR' => [
  217. 'Monday' => "Lundi",
  218. 'Tuesday' => "Mardi",
  219. 'Wednesday' => "Mercredi",
  220. 'Thursday' => "Jeudi",
  221. 'Friday' => "Vendredi",
  222. 'Saturday' => "Samedi",
  223. 'Sunday' => "Dimanche",
  224. 'January' => "Janvier",
  225. 'February' => "Février",
  226. 'March' => "Mars",
  227. 'April' => "Avril",
  228. 'May' => "Mai",
  229. 'June' => "Juin",
  230. 'July' => "Juillet",
  231. 'August' => "Août",
  232. 'September' => "Septembre",
  233. 'October' => "Octobre",
  234. 'November' => "Novembre",
  235. 'December' => "Décembre",
  236. 'Friends' => "Amis",
  237. 'Message board' => "Messagerie",
  238. 'Message' => "Message",
  239. 'Go' => "Go",
  240. 'Hash me' => "Hash cet",
  241. 'Try the Beep' => "Lancer le Bip"
  242. ],
  243. 'IT' => [
  244. 'Monday' => "Lunedì",
  245. 'Tuesday' => "Martedì",
  246. 'Wednesday' => "Mercoledì",
  247. 'Thursday' => "Giovedì",
  248. 'Friday' => "Venerdì",
  249. 'Saturday' => "Sabato",
  250. 'Sunday' => "Domenica",
  251. 'January' => "Gennaio",
  252. 'February' => "Febbraio",
  253. 'March' => "Marzo",
  254. 'April' => "Aprile",
  255. 'May' => "Maggio",
  256. 'June' => "Giugno",
  257. 'July' => "Luglio",
  258. 'August' => "Agosto",
  259. 'September' => "Settembre",
  260. 'October' => "Ottobre",
  261. 'November' => "Novembre",
  262. 'December' => "Dicembre",
  263. 'Friends' => "Amici",
  264. 'Message board' => "Messaggeria",
  265. 'Message' => "Messaggio",
  266. 'Go' => "Vai",
  267. 'Hash me' => "Hashmi",
  268. 'Try the Beep' => "Prova il Bip"
  269. ]
  270. ];
  271. $EMOTICONS = [
  272. '[:-)]' => "&#128578;",
  273. '[:-p]' => "&#129297;",
  274. '[:c)]' => "&#128512;",
  275. '[;-)]' => "&#128521;",
  276. '[:-J]' => "&#128527;",
  277. '[;-P]' => "&#128540;",
  278. '[:-/]' => "&#128533;",
  279. '[@-)]' => "&#128531;",
  280. '[B-)]' => "&#128526;",
  281. '[=]]' => '&#128515;',
  282. '[=)]' => "&#128516;",
  283. '[*-)]' => "&#128525;"
  284. ];