config.inc.sample 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <?php
  2. /**
  3. * Copyright 2021, 2024 5 Mode
  4. *
  5. * This file is part of Avatar Free.
  6. *
  7. * Avatar Free 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. * Avatar Free 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 Avatar Free. If not, see <https://www.gnu.org/licenses/>.
  19. *
  20. * config.inc
  21. *
  22. * Avatar Free configuration settings.
  23. *
  24. * @author Daniele Bonini <my25mb@aol.com>
  25. * @copyrights (c) 2021, 2024, 5 Mode
  26. */
  27. define('DEBUG', false);
  28. define('ADMIN_VIEW', "1");
  29. define('PUBLIC_VIEW', "2");
  30. define('APP_NAME', "AvatarFree");
  31. define('APP_TITLE', "Avatar Free: everyone its social presence.");
  32. // password: your_password
  33. // salt: your_salt
  34. define('APP_HASH', "");
  35. define('APP_SALT', "yoursalt");
  36. define('APP_HOST', "YourAvatarFree.com");
  37. define('APP_PATH', "/var/www/YourWebApp/Public");
  38. define('APP_PRIVATE_PATH', "/var/www/YourWebApp/Private");
  39. define('APP_SCRIPT_PATH', "/var/www/YourWebApp/Private/scripts");
  40. define('APP_AJAX_PATH', "/var/www/YourWebApp/Private/scripts_ajax");
  41. define('APP_ERROR_PATH', "/var/www/YourWebApp/Private/error");
  42. define('APP_DATA_PATH', "/var/www/YourWebApp/Private/data");
  43. define('APP_LICENSE', <<<LICENSETEXT
  44. Copyright (c) 2016, 2024, 5 Mode
  45. All rights reserved.
  46. This file is part of Avatar Free.
  47. Avatar Free is free software: you can redistribute it and/or modify
  48. it under the terms of the GNU General Public License as published by
  49. the Free Software Foundation, either version 3 of the License, or
  50. (at your option) any later version.
  51. Avatar Free is distributed in the hope that it will be useful,
  52. but WITHOUT ANY WARRANTY; without even the implied warranty of
  53. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  54. GNU General Public License for more details.
  55. You should have received a copy of the GNU General Public License
  56. along with Avatar Free. If not, see <https://www.gnu.org/licenses/>.
  57. https://opensource.org/licenses/GPL-3.0
  58. LICENSETEXT
  59. );
  60. // Default Locale, in two letters format
  61. define('APP_DEF_LANG', "en-US");
  62. define('APP_DEF_PROFILE_PIC', "/res/pic1.png");
  63. define('APP_FILE_MAX_SIZE', 496000);
  64. define('APP_BLOG_MAX_POSTS', 20);
  65. $CONFIG = [
  66. 'DEBUG' => true,
  67. 'ADMIN_VIEW' => "1",
  68. 'PUBLIC_VIEW' => "2",
  69. 'APP' => [
  70. 'NAME' => "AvatarFree",
  71. 'TITLE' => "Avatar Free: everyone its social presence.",
  72. // password: your_password
  73. // salt: your_salt
  74. 'HASH' => "",
  75. 'SALT' => "yoursalt",
  76. 'HOST' => "YourAvatarFree.com",
  77. 'PATH' => "/var/www/YourWebApp/Public",
  78. 'PRIVATE_PATH' => "/var/www/YourWebApp/Private",
  79. 'SCRIPT_PATH' => "/var/www/YourWebApp/Private/scripts",
  80. 'AJAX_PATH' => "/var/www/YourWebApp/Private/scripts_ajax",
  81. 'ERROR_PATH' => "/var/www/YourWebApp/Private/error",
  82. 'DATA_PATH' => "/var/www/YourWebApp/Private/data",
  83. 'LICENSE' => <<<LICENSETEXT
  84. Copyright (c) 2016, 2024, 5 Mode
  85. All rights reserved.
  86. This file is part of Avatar Free.
  87. Avatar Free is free software: you can redistribute it and/or modify
  88. it under the terms of the GNU General Public License as published by
  89. the Free Software Foundation, either version 3 of the License, or
  90. (at your option) any later version.
  91. Avatar Free is distributed in the hope that it will be useful,
  92. but WITHOUT ANY WARRANTY; without even the implied warranty of
  93. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  94. GNU General Public License for more details.
  95. You should have received a copy of the GNU General Public License
  96. along with Avatar Free. If not, see <https://www.gnu.org/licenses/>.
  97. https://opensource.org/licenses/GPL-3.0
  98. LICENSETEXT
  99. ,
  100. 'DEF_LANG' => "en-US",
  101. 'DEF_PROFILE_PIC' => "/res/pic1.png",
  102. 'FILE_MAX_SIZE' => 496000,
  103. 'BLOG_MAX_POSTS' => 20
  104. ]
  105. ];
  106. $LOCALE = [
  107. 'it-IT' => [
  108. '/home.php' => [
  109. 'ping' => "pong",
  110. 'How-to: Manage your avatars in Avatar Free' => "How-to: Gestire i tuoi avatar in Avatar Free",
  111. 'CV' => "CV",
  112. 'Sample' => "Esempio",
  113. 'My Network' => "Network",
  114. 'Hello from 5 Mode' => "Ciao da 5 Mode",
  115. 'This is just an example of blog entry' => "Questo e' giusto un esempio di post nel blog",
  116. 'Go' => "Vai",
  117. 'Hash Me' => "Codificami",
  118. 'Some rights reserved' => "Alcuni diritti riservati"
  119. ],
  120. '/js/home-js.php' => [
  121. 'ping' => "pong",
  122. 'Please set your hash in the config file with this value' => "Puoi impostare il tuo hash nel file config con questo valore"
  123. ]
  124. ],
  125. 'zh-CN' => [
  126. '/home.php' => [
  127. 'ping' => "pong",
  128. 'How-to: Manage your avatars in Avatar Free' => "HOW-TO: 免费管理您的化身",
  129. 'CV' => "简历",
  130. 'Sample' => "样本",
  131. 'My Network' => "我的网络",
  132. 'Hello from 5 Mode' => "您好5 MODE",
  133. 'This is just an example of blog entry' => "这只是博客条目的一个例子",
  134. 'Go' => "去",
  135. 'Hash Me' => "哈希我",
  136. 'Some rights reserved' => "保留一些权利"
  137. ],
  138. '/js/home-js.php' => [
  139. 'ping' => "pong",
  140. 'Please set your hash in the config file with this value' => "请在配置文件中设置您的哈希"
  141. ]
  142. ]
  143. ];
  144. $EMOTICONS = [
  145. '[:-)]' => "&#128578;",
  146. '[:-p]' => "&#129297;",
  147. '[:c)]' => "&#128512;",
  148. '[;-)]' => "&#128521;",
  149. '[:-J]' => "&#128527;",
  150. '[;-P]' => "&#128540;",
  151. '[:-/]' => "&#128533;",
  152. '[@-)]' => "&#128531;",
  153. '[B-)]' => "&#128526;",
  154. '[=]]' => '&#128515;',
  155. '[=)]' => "&#128516;",
  156. '[*-)]' => "&#128525;"
  157. ];