config.inc.sample 8.6 KB

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