config.inc.sample 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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. 'SERVER_TIMEZONE' => "+2"
  61. ],
  62. 'AUTH' => [
  63. 'MASTER' => [
  64. 'USERNAME' => "Dan",
  65. 'PHONE' => "+160612345567",
  66. 'REPO_FOLDER' => "master",
  67. 'PIC_FOLDER' => "master",
  68. // password: yourpassword
  69. // salt: yoursalt
  70. 'HASH' => "",
  71. 'TIMEZONE' => "+2",
  72. 'LOCALE' => "EN"
  73. ],
  74. 'FRIEND_0' => [
  75. 'USERNAME' => "John",
  76. 'PHONE' => "+16061234567",
  77. 'REPO_FOLDER' => "user",
  78. 'PIC_FOLDER' => "user",
  79. // password: yourpassword
  80. // salt: yoursalt
  81. 'HASH' => "",
  82. 'TIMEZONE' => "+2",
  83. 'LOCALE' => "EN"
  84. ],
  85. 'FRIEND_1' => [
  86. 'USERNAME' => "Nickname",
  87. 'PHONE' => "+16061234567",
  88. 'REPO_FOLDER' => "user",
  89. 'PIC_FOLDER' => "user",
  90. // password: yourpassword
  91. // salt: yoursalt
  92. 'HASH' => "",
  93. 'TIMEZONE' => "+2",
  94. 'LOCALE' => "EN"
  95. ],
  96. 'FRIEND_2' => [
  97. 'USERNAME' => "Nickname",
  98. 'PHONE' => "+16061234567",
  99. 'REPO_FOLDER' => "user",
  100. 'PIC_FOLDER' => "user",
  101. // password: yourpassword
  102. // salt: yoursalt
  103. 'HASH' => "",
  104. 'TIMEZONE' => "+2",
  105. 'LOCALE' => "EN"
  106. ]
  107. ],
  108. 'CMDLINE' => [
  109. 'VALIDCMDS' => "~|sendmsg|refreshbrd|delmsg|delpic|openpic|"
  110. ],
  111. 'HISTORY' => [
  112. 'MAX_ITEMS' => 50
  113. ],
  114. 'SMS' => [
  115. 'API_URL' => "",
  116. 'USERNAME' => "",
  117. 'PASSWORD' => "",
  118. 'MESSAGING_SERVICE' => "",
  119. 'BODY' => "You have a new message on http://homomm.org"
  120. ]
  121. ];
  122. $LOCALE = [
  123. 'CN' => [
  124. 'Monday' => "星期一",
  125. 'Tuesday' => "星期二",
  126. 'Wednesday' => "星期三",
  127. 'Thursday' => "星期四",
  128. 'Friday' => "星期五",
  129. 'Saturday' => "星期六",
  130. 'Sunday' => "星期天",
  131. 'January' => "一月",
  132. 'February' => "二月",
  133. 'March' => "三月",
  134. 'April' => "四月",
  135. 'May' => "五月",
  136. 'June' => "六月",
  137. 'July' => "七月",
  138. 'August' => "八月",
  139. 'September' => "九月",
  140. 'October' => "十月",
  141. 'November' => "十一月",
  142. 'December' => "十二月",
  143. 'Friends' => "朋友",
  144. 'Message board' => "留言板",
  145. 'Message' => "消息",
  146. 'Go' => "发送",
  147. 'Hash me' => "散列这个"
  148. ],
  149. 'DE' => [
  150. 'Monday' => "Montag",
  151. 'Tuesday' => "Dienstag",
  152. 'Wednesday' => "Mittwoch",
  153. 'Thursday' => "Donnerstag",
  154. 'Friday' => "Freitag",
  155. 'Saturday' => "Samstag",
  156. 'Sunday' => "Sonntag",
  157. 'January' => "Januar",
  158. 'February' => "Februar",
  159. 'March' => "März",
  160. 'April' => "April",
  161. 'May' => "Mai",
  162. 'June' => "Juni",
  163. 'July' => "Juli",
  164. 'August' => "August",
  165. 'September' => "September",
  166. 'October' => "Oktober",
  167. 'November' => "November",
  168. 'December' => "Dezember",
  169. 'Friends' => "Freunde",
  170. 'Message board' => "Brett",
  171. 'Message' => "Nachricht",
  172. 'Go' => "Go",
  173. 'Hash me' => "Hash mich"
  174. ],
  175. 'IT' => [
  176. 'Monday' => "Lunedì",
  177. 'Tuesday' => "Martedì",
  178. 'Wednesday' => "Mercoledì",
  179. 'Thursday' => "Giovedì",
  180. 'Friday' => "Venerdì",
  181. 'Saturday' => "Sabato",
  182. 'Sunday' => "Domenica",
  183. 'January' => "Gennaio",
  184. 'February' => "Febbraio",
  185. 'March' => "Marzo",
  186. 'April' => "Aprile",
  187. 'May' => "Maggio",
  188. 'June' => "Giugno",
  189. 'July' => "Luglio",
  190. 'August' => "Agosto",
  191. 'September' => "Settembre",
  192. 'October' => "Ottobre",
  193. 'November' => "Novembre",
  194. 'December' => "Dicembre",
  195. 'Friends' => "Amici",
  196. 'Message board' => "Messaggeria",
  197. 'Message' => "Messaggio",
  198. 'Go' => "Vai",
  199. 'Hash me' => "Hashmi"
  200. ]
  201. ];
  202. $EMOTICONS = [
  203. '[:-)]' => "&#128578;",
  204. '[:-p]' => "&#129297;",
  205. '[:c)]' => "&#128512;",
  206. '[;-)]' => "&#128521;",
  207. '[:-J]' => "&#128527;",
  208. '[;-P]' => "&#128540;",
  209. '[:-/]' => "&#128533;",
  210. '[@-)]' => "&#128531;",
  211. '[B-)]' => "&#128526;",
  212. '[=]]' => '&#128515;',
  213. '[=)]' => "&#128516;",
  214. '[*-)]' => "&#128525;"
  215. ];