config.inc.sample 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. define('APP_TITLE', "MacSwap, swapping everything but burgers..");
  30. // password:
  31. // salt:
  32. define('APP_HASH', "");
  33. define('APP_SPLASH', true);
  34. define('APP_HOST', "YourMacSwap-site.com");
  35. define('APP_PATH', "/var/www/YourWebApp/Public");
  36. define('APP_SCRIPT_PATH', "/var/www/YourWebApp/Private/scripts");
  37. define('APP_AJAX_PATH', "/var/www/YourWebApp/Private/scripts_ajax");
  38. define('APP_ERROR_PATH', "/var/www/YourWebApp/Private/error");
  39. define('APP_SALT', "yoursalt");
  40. define('APP_TEMPLATE_PATH', "/var/www/YourWebApp/Private/Private/templates");
  41. define('APP_DATA_PATH', "/var/www/YourWebApp/Private/data");
  42. // Default Locale, in two letters format
  43. define('APP_LOCALE', "EN");
  44. define('APP_MAX_BURGERS', 10);
  45. define('BUSINESS_TYPE', "Burger");
  46. define('BUSINESS_CITY', "Bologna");
  47. define('BUSINESS_COUNTRY', "Italy");
  48. // sha256 password
  49. // pw: password
  50. define('EDITOR_PASSWORD', "");
  51. $CONFIG = [
  52. 'DEBUG' => true,
  53. 'APP' => [
  54. 'NAME' => "MacSwap",
  55. 'TITLE' => "MacSwap, swapping everything but burgers..",
  56. // password:
  57. // salt:
  58. 'HASH' => "",
  59. 'SPLASH' => true,
  60. 'HOST' => "YourMacSwap-site.com",
  61. 'PATH' => "/var/www/YourWebApp/Public",
  62. 'SCRIPT_PATH' => "/var/www/YourWebApp/Private/scripts",
  63. 'AJAX_PATH' => "/var/www/YourWebApp/Private/scripts_ajax",
  64. 'ERROR_PATH' => "/var/www/YourWebApp/Private/error",
  65. 'SALT' => "yoursalt",
  66. 'TEMPLATE_PATH' => "/var/www/YourWebApp/Private/templates",
  67. 'DATA_PATH' => "/var/www/YourWebApp/Private/data",
  68. // Default Locale, in two letters format
  69. 'LOCALE' => "EN",
  70. 'MAX_BURGERS' => 10
  71. ],
  72. 'BUSINESS' => [
  73. 'TYPE' => "Sushi",
  74. 'CITY' => "Bologna",
  75. 'COUNTRY' => "Italy"
  76. ],
  77. 'EDITOR' => [
  78. // sha256 password
  79. // pw: password
  80. 'PASSWORD' => ""
  81. ]
  82. ];