config.inc.sample 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. /**
  3. * Copyright 2021, 2024 5 Mode
  4. *
  5. * This file is part of MacSwap.
  6. *
  7. * MacSwap 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. * MacSwap 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 MacSwap. If not, see <https://www.gnu.org/licenses/>.
  19. *
  20. * config.inc
  21. *
  22. * MacSwap configuration settings.
  23. *
  24. * @author Daniele Bonini <my25mb@aol.com>
  25. * @copyrights (c) 2021, 2024, 5 Mode
  26. */
  27. define('DEBUG', true);
  28. define('APP_NAME', "MacSwap");
  29. // password:
  30. // salt:
  31. define('APP_HASH', "");
  32. define('APP_SPLASH', true);
  33. define('APP_HOST', "YourMacSwap-site.com");
  34. define('APP_PATH', "/var/www/YourWebApp/Public");
  35. define('APP_SCRIPT_PATH', "/var/www/YourWebApp/Private/scripts");
  36. define('APP_AJAX_PATH', "/var/www/YourWebApp/Private/scripts_ajax");
  37. define('APP_ERROR_PATH', "/var/www/YourWebApp/Private/error");
  38. define('APP_SALT', "yoursalt");
  39. define('APP_TEMPLATE_PATH', "/var/www/YourWebApp/Private/Private/templates");
  40. define('APP_DATA_PATH', "/var/www/YourWebApp/Private/data");
  41. // Default Locale, in two letters format
  42. define('APP_LOCALE', "EN");
  43. define('APP_MAX_BURGERS', 10);
  44. define('BUSINESS_TYPE', "Burger");
  45. define('BUSINESS_CITY', "Bologna");
  46. define('BUSINESS_COUNTRY', "Italy");
  47. // sha256 password
  48. // pw: password
  49. define('EDITOR_PASSWORD', "");
  50. $CONFIG = [
  51. 'DEBUG' => true,
  52. 'APP' => [
  53. 'NAME' => "MacSwap",
  54. // password:
  55. // salt:
  56. 'HASH' => "",
  57. 'SPLASH' => true,
  58. 'HOST' => "YourMacSwap-site.com",
  59. 'PATH' => "/var/www/YourWebApp/Public",
  60. 'SCRIPT_PATH' => "/var/www/YourWebApp/Private/scripts",
  61. 'AJAX_PATH' => "/var/www/YourWebApp/Private/scripts_ajax",
  62. 'ERROR_PATH' => "/var/www/YourWebApp/Private/error",
  63. 'SALT' => "yoursalt",
  64. 'TEMPLATE_PATH' => "/var/www/YourWebApp/Private/templates",
  65. 'DATA_PATH' => "/var/www/YourWebApp/Private/data",
  66. // Default Locale, in two letters format
  67. 'LOCALE' => "EN",
  68. 'MAX_BURGERS' => 10
  69. ],
  70. 'BUSINESS' => [
  71. 'TYPE' => "Sushi",
  72. 'CITY' => "Bologna",
  73. 'COUNTRY' => "Italy"
  74. ],
  75. 'EDITOR' => [
  76. // sha256 password
  77. // pw: password
  78. 'PASSWORD' => ""
  79. ]
  80. ];