config.inc.sample 8.4 KB

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