config.inc.sample 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. /**
  3. * Copyright 2021, 2024 5 Mode
  4. *
  5. * This file is part of Homogram.
  6. *
  7. * Homogram 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. * Homogram 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 Homogram. If not, see <https://www.gnu.org/licenses/>.
  19. *
  20. * config.inc
  21. *
  22. * Homogram 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', "Homogram");
  29. // password: yourpassword
  30. // salt: yoursalt
  31. define('APP_HASH', "");
  32. define('APP_SPLASH', true);
  33. define('APP_PATH', "/var/www/YourWebApp/Public/static");
  34. define('APP_DATA_PATH', "/var/www/YourWebApp/Private/data");
  35. define('APP_SCRIPT_PATH', "/var/www/YourWebApp/Private/scripts");
  36. define('APP_ERROR_PATH', "/var/www/YourWebApp/Private/error");
  37. define('APP_SALT', "yoursalt");
  38. define('APP_REPO_PATH', "/var/www/YourWebApp/Public/static/HGRepo");
  39. // Default Locale, in two letters format
  40. define('APP_LOCALE', "EN");
  41. // Default Context: 'PRIVATE' or 'PUBLIC'
  42. define('APP_DEFAULT_CONTEXT', "PUBLIC");
  43. // Last undescore check parsing the image title
  44. define('APP_LAST_UNDERSCORE_CHECK', false);
  45. define('CMDLINE_VALIDCMDS', "~|privatify|publicify|del|makedir|refresh|openpic|");
  46. $CONFIG = [
  47. 'DEBUG' => true,
  48. 'APP' => [
  49. 'NAME' => "Homegram",
  50. 'HASH' => "",
  51. 'SPLASH' => true,
  52. 'PATH' => "/var/www/YourWebApp/Public/static",
  53. 'DATA_PATH' => "/var/www/YourWebApp/Private/data",
  54. 'SCRIPT_PATH' => "/var/www/YourWebApp/Private/scripts",
  55. 'ERROR_PATH' => "/var/www/YourWebApp/Private/error",
  56. 'SALT' => "yoursalt",
  57. 'REPO_PATH' => "/var/www/YourWebApp/Public/static/HGRepo",
  58. // Default Locale, in two letters format
  59. 'LOCALE' => "EN",
  60. // Default Context: 'PRIVATE' or 'PUBLIC'
  61. 'DEFAULT_CONTEXT' => "PUBLIC",
  62. // Last undescore check parsing the image title
  63. 'LAST_UNDERSCORE_CHECK' => false
  64. ],
  65. 'CMDLINE' => [
  66. 'VALIDCMDS' => "~|privatify|publicify|del|makedir|refresh|openpic|"
  67. ]
  68. ];
  69. $LOCALE = [
  70. 'IT' => [
  71. 'Monday' => 'Lunedi',
  72. 'You are in' => "Sei in",
  73. ' as ' => " come ",
  74. 'owner' => "owner",
  75. 'guest' => "guest",
  76. 'Parent' => "Padre",
  77. 'Add' => "Aggiungi",
  78. 'folder' => "cartella",
  79. ' Go ' => " Vai ",
  80. 'Hash me' => "Hashmi",
  81. 'Upload' => "Carica"
  82. ]
  83. ];