config.inc.sample 6.0 KB

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