config.inc.sample 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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|");
  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' => "John",
  65. 'PHONE' => "+160612345567",
  66. 'REPO_FOLDER' => "master",
  67. 'PIC_FOLDER' => "master",
  68. // password: yourpassword
  69. // salt: yoursalt
  70. 'HASH' => "",
  71. 'TIMEZONE' => "+2"
  72. ],
  73. 'FRIEND_0' => [
  74. 'USERNAME' => "John",
  75. 'PHONE' => "+16061234567",
  76. 'REPO_FOLDER' => "user",
  77. 'PIC_FOLDER' => "user",
  78. // password: yourpassword
  79. // salt: yoursalt
  80. 'HASH' => "",
  81. 'TIMEZONE' => "+2"
  82. ],
  83. 'FRIEND_1' => [
  84. 'USERNAME' => "John",
  85. 'PHONE' => "+16061234567",
  86. 'REPO_FOLDER' => "user",
  87. 'PIC_FOLDER' => "user",
  88. // password: yourpassword
  89. // salt: yoursalt
  90. 'HASH' => "",
  91. 'TIMEZONE' => "+2"
  92. ],
  93. 'FRIEND_2' => [
  94. 'USERNAME' => "John",
  95. 'PHONE' => "+16061234567",
  96. 'REPO_FOLDER' => "user",
  97. 'PIC_FOLDER' => "user",
  98. // password: yourpassword
  99. // salt: yoursalt
  100. 'HASH' => "",
  101. 'TIMEZONE' => "+2"
  102. ],
  103. ],
  104. 'CMDLINE' => [
  105. 'VALIDCMDS' => "~|sendmsg|refreshbrd|delmsg|delpic|"
  106. ],
  107. 'HISTORY' => [
  108. 'MAX_ITEMS' => 50
  109. ],
  110. 'SMS' => [
  111. 'API_URL' => "",
  112. 'USERNAME' => "",
  113. 'PASSWORD' => "",
  114. 'MESSAGING_SERVICE' => "",
  115. 'BODY' => "You have a new message on http://homomm.org"
  116. ]
  117. ];
  118. $LOCALE = [
  119. 'Monday' => "",
  120. 'Tuesday' => "",
  121. 'Wednesday' => "",
  122. 'Thursday' => "",
  123. 'Friday' => "",
  124. 'Saturday' => "",
  125. 'Sunday' => "",
  126. 'January' => "",
  127. 'February' => "",
  128. 'March' => "",
  129. 'April' => "",
  130. 'May' => "",
  131. 'June' => "",
  132. 'July' => "",
  133. 'August' => "",
  134. 'September' => "",
  135. 'October' => "",
  136. 'November' => "",
  137. 'December' => "",
  138. ];
  139. $EMOTICONS = [
  140. '[:-)]' => "&#128578;",
  141. '[:-p]' => "&#129297;",
  142. '[:c)]' => "&#128512;",
  143. '[;-)]' => "&#128521;",
  144. '[:-J]' => "&#128527;",
  145. '[;-P]' => "&#128540;",
  146. '[:-/]' => "&#128533;",
  147. "[:'-)]" => "&#128531;",
  148. '[B-)]' => "&#128526;",
  149. '[=]]' => '&#128515;',
  150. '[=)]' => "&#128516;",
  151. '[*-)]' => "&#128525;"
  152. ];