config.inc.sample 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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('CMDLINE_VALIDCMDS', "~|sendmsg|refreshbrd|delmsg|delpic|");
  37. define('HISTORY_MAX_ITEMS', 50);
  38. // SMS by using your Twilio account
  39. define('SMS_API_URL', "");
  40. // Set here your Account SID
  41. define('SMS_USERNAME', "");
  42. // Set here your Auth Token
  43. define('SMS_PASSWORD', "");
  44. // Set here the Message Service to send message from..
  45. define('SMS_MESSAGING_SERVICE', "");
  46. // Set here the Message body
  47. define('SMS_BODY', "You have a new message on http://homomm.org");
  48. $CONFIG = [
  49. 'DEBUG' => true,
  50. 'APP' => [
  51. 'NAME' => "Homomm",
  52. 'SPLASH' => true,
  53. 'PATH' => "/var/www/YourWebApp/Public/static",
  54. 'SCRIPT_PATH' => "/var/www/YourWebApp/Private/scripts",
  55. 'ERROR_PATH' => "/var/www/YourWebApp/Private/error",
  56. 'SALT' => "yoursalt",
  57. 'REPO_PATH' => "/var/www/YourWebApp/Private/Repo",
  58. 'PIC_PATH' => "/var/www/YourWebApp/Public/static/hmm-img"
  59. ],
  60. 'AUTH' => [
  61. 'MASTER' => [
  62. 'USERNAME' => "John",
  63. 'PHONE' => "+160612345567",
  64. 'REPO_FOLDER' => "master",
  65. 'PIC_FOLDER' => "master",
  66. // password: yourpassword
  67. // salt: yoursalt
  68. 'HASH' => ""
  69. ],
  70. 'FRIEND_0' => [
  71. 'USERNAME' => "John",
  72. 'PHONE' => "+16061234567",
  73. 'REPO_FOLDER' => "user",
  74. 'PIC_FOLDER' => "user",
  75. // password: yourpassword
  76. // salt: yoursalt
  77. 'HASH' => ""
  78. ],
  79. 'FRIEND_1' => [
  80. 'USERNAME' => "John",
  81. 'PHONE' => "+16061234567",
  82. 'REPO_FOLDER' => "user",
  83. 'PIC_FOLDER' => "user",
  84. // password: yourpassword
  85. // salt: yoursalt
  86. 'HASH' => ""
  87. ],
  88. 'FRIEND_2' => [
  89. 'USERNAME' => "John",
  90. 'PHONE' => "+16061234567",
  91. 'REPO_FOLDER' => "user",
  92. 'PIC_FOLDER' => "user",
  93. // password: yourpassword
  94. // salt: yoursalt
  95. 'HASH' => ""
  96. ],
  97. ],
  98. 'CMDLINE' => [
  99. 'VALIDCMDS' => "~|sendmsg|refreshbrd|delmsg|delpic|"
  100. ],
  101. 'HISTORY' => [
  102. 'MAX_ITEMS' => 50
  103. ],
  104. 'SMS' => [
  105. 'API_URL' => "",
  106. 'USERNAME' => "",
  107. 'PASSWORD' => "",
  108. 'MESSAGING_SERVICE' => "",
  109. 'BODY' => "You have a new message on http://homomm.org"
  110. ]
  111. ];
  112. $LOCALE = [
  113. 'Monday' => "",
  114. 'Tuesday' => "",
  115. 'Wednesday' => "",
  116. 'Thursday' => "",
  117. 'Friday' => "",
  118. 'Saturday' => "",
  119. 'Sunday' => "",
  120. 'January' => "",
  121. 'February' => "",
  122. 'March' => "",
  123. 'April' => "",
  124. 'May' => "",
  125. 'June' => "",
  126. 'July' => "",
  127. 'August' => "",
  128. 'September' => "",
  129. 'October' => "",
  130. 'November' => "",
  131. 'December' => "",
  132. ];
  133. $EMOTICONS = [
  134. '[:-)]' => "&#128578;",
  135. '[:-p]' => "&#129297;",
  136. '[:c)]' => "&#128512;",
  137. '[;-)]' => "&#128521;",
  138. '[:-J]' => "&#128527;",
  139. '[;-P]' => "&#128540;",
  140. '[:-/]' => "&#128533;",
  141. "[:'-)]" => "&#128531;",
  142. '[B-)]' => "&#128526;",
  143. '[=]]' => '&#128515;',
  144. '[=)]' => "&#128516;",
  145. '[*-)]' => "&#128525;"
  146. ];