config.inc.sample 6.1 KB

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