config.inc.sample 7.9 KB

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