config.inc.sample 5.5 KB

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