HC_config.inc.sample 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /**
  3. * Copyright 2021, 2024 5 Mode
  4. *
  5. * This file is part of Http Console.
  6. *
  7. * Http Console 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. * Http Console 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 Http Console. If not, see <https://www.gnu.org/licenses/>.
  19. *
  20. * HC_config.inc
  21. *
  22. * Http Console configuration settings.
  23. *
  24. * @author Daniele Bonini <my25mb@aol.com>
  25. * @copyrights (c) 2021, 2024, 5 Mode
  26. */
  27. define('HC_DEBUG', true);
  28. define('HC_APP_NAME', "Http Console");
  29. // password: yourpassword
  30. // salt: yoursalt
  31. define('HC_APP_HASH', "");
  32. define('HC_APP_SPLASH', true);
  33. define('HC_APP_PATH', "/var/www/YourWebApp/Private/HttpConsole");
  34. define('HC_APP_PROMPT', "HC:~ $1$");
  35. define('HC_APP_SALT', "yoursalt");
  36. define('HC_APP_STAGE_PATH', "/var/www/YourWebApp/Public/stage");
  37. define('HC_CMDLINE_VALIDCMDS', "~|help|ls|ls -lsa|pwd|cd|cd ..|cp|mv|");
  38. define('HC_HISTORY_MAX_ITEMS', 50);
  39. define('HC_RECALL_HISTORY_MAX_ITEMS', 50);
  40. define('HC_WEBSITE_WEBROOT', "/var/www/YourWebApp/Public");
  41. $HC_CONFIG = [
  42. 'HC_DEBUG' => true,
  43. 'HC_APP' => [
  44. 'NAME' => "Http Console",
  45. 'HASH' => "",
  46. 'SPLASH' => true,
  47. 'PATH' => "/var/www/YourWebApp/Private/HttpConsole",
  48. 'PROMPT' => "HC:~ $1$",
  49. 'SALT' => "yoursalt",
  50. 'STAGE_PATH' => "/var/www/YourWebApp/Public/stage"
  51. ],
  52. 'HC_CMDLINE' => [
  53. 'VALIDCMDS' => "~|help|ls|ls -lsa|pwd|cd|cd ..|cp|mv|"
  54. ],
  55. 'HC_HISTORY' => [
  56. 'MAX_ITEMS' => 50
  57. ],
  58. 'HC_RECALL_HISTORY' => [
  59. 'MAX_ITEMS' => 50
  60. ],
  61. 'HC_WEBSITE' => [
  62. 'WEBROOT' => "/var/www/YourWebApp/Public"
  63. ]
  64. ];