config.inc.sample 5.4 KB

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