config2.inc.sample 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. // password: yourpassword
  30. // salt: yoursalt
  31. define('APP_HASH', "");
  32. define('APP_SPLASH', true);
  33. define('APP_PATH', "/var/www/YourWebApp/Public/static");
  34. define('APP_SCRIPT_PATH', "/var/www/YourWebApp/Private/scripts");
  35. define('APP_ERROR_PATH', "/var/www/YourWebApp/Private/error");
  36. define('APP_SALT', "yoursalt");
  37. define('APP_REPO_PATH', "/var/www/YourWebApp/Private/Repo");
  38. define('APP_PIC_PATH', "/var/www/YourWebApp/Public/static/hmm-img");
  39. define('CMDLINE_VALIDCMDS', "~|sendmsg|");
  40. define('HISTORY_MAX_ITEMS', 50);
  41. // SMS by using your Twilio account
  42. define('SMS_API_URL', "https://api.twilio.com/2010-04-01/Accounts/AC16724046b4b8f124d37c86003b222b16/Messages.json");
  43. // Set here your Account SID
  44. define('SMS_USERNAME', "");
  45. // Set here your Auth Token
  46. define('SMS_PASSWORD', "");
  47. // Set here the Message Service to send message from..
  48. define('SMS_MESSAGING_SERVICE', "");
  49. // Set here the Message body
  50. define('SMS_BODY', "You have a new message on http://homomm.prg");
  51. $CONFIG = [
  52. 'DEBUG' => true,
  53. 'APP' => [
  54. 'NAME' => "Homomm",
  55. 'HASH' => "",
  56. 'SPLASH' => true,
  57. 'PATH' => "/var/www/YourWebApp/Public/static",
  58. 'SCRIPT_PATH' => "/var/www/YourWebApp/Private/scripts",
  59. 'ERROR_PATH' => "/var/www/YourWebApp/Private/error",
  60. 'SALT' => "yoursalt",
  61. 'REPO_PATH' => "/var/www/YourWebApp/Private/Repo",
  62. 'PIC_PATH' => "/var/www/YourWebApp/Public/static/hmm-img"
  63. ],
  64. 'AUTH' => [
  65. 'MASTER' => [
  66. 'USERNAME' => "John",
  67. 'PHONE' => "+160612345567",
  68. 'REPO_FOLDER' => "master",
  69. 'PIC_FOLDER' => "master",
  70. // password: yourpassword
  71. // salt: yoursalt
  72. 'HASH' => ""
  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. ],
  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. ],
  92. 'FRIEND_2' => [
  93. 'USERNAME' => "John",
  94. 'PHONE' => "+16061234567",
  95. 'REPO_FOLDER' => "user",
  96. 'PIC_FOLDER' => "user",
  97. // password: yourpassword
  98. // salt: yoursalt
  99. 'HASH' => ""
  100. ],
  101. ],
  102. 'CMDLINE' => [
  103. 'VALIDCMDS' => "~|sendmsg|"
  104. ],
  105. 'HISTORY' => [
  106. 'MAX_ITEMS' => 50
  107. ],
  108. 'SMS' => [
  109. 'API_URL' => "https://api.twilio.com/2010-04-01/Accounts/AC16724046b4b8f124d37c86003b222b16/Messages.json",
  110. 'USERNAME' => "",
  111. 'PASSWORD' => "",
  112. 'MESSAGING_SERVICE' => "",
  113. 'BODY' => "You have a new message on http://homomm.org"
  114. ]
  115. ];