config.inc.sample 8.0 KB

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