config.inc.sample 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. ];