config.inc.sample 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <?php
  2. /**
  3. * Copyright 2021, 2026 5 Mode
  4. *
  5. * This file is part of Grande Puffo.
  6. *
  7. * GrandePuffo 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. * GrandePuffo 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 GrandePuffo. If not, see <https://www.gnu.org/licenses/>.
  19. *
  20. * config.inc
  21. *
  22. * Configuration settings.
  23. *
  24. * @author Daniele Bonini <my25mb@has.im>
  25. * @copyrights (c) 2016, 2026, 5 Mode
  26. */
  27. define('DEBUG', true);
  28. define('APP_NAME', "GrandePuffo");
  29. define('APP_HOST', "grandepuffo.org");
  30. define('APP_PATH', "/path/to/GrandePuffo");
  31. define('APP_PRIVATE_PATH', "/path/to/GrandePuffo/Private");
  32. define('APP_PUBLIC_PATH', "/path/to/GrandePuffo/Public");
  33. define('APP_SECRETS_FOLDER',"scr");
  34. define('APP_ROUTE_PATH', "/path/to/GrandePuffo/Private/routes");
  35. define('APP_ERROR_PATH', "/path/to/GrandePuffo/Private/error");
  36. define('APP_LICENSE', <<<LICENSETEXT
  37. Copyright 2021, 2024 5 Mode
  38. This file is part of GrandePuffo.
  39. GrandePuffo is free software: you can redistribute it and/or modify
  40. it under the terms of the GNU General Public License as published by
  41. the Free Software Foundation, either version 3 of the License, or
  42. (at your option) any later version.
  43. GrandePuffo is distributed in the hope that it will be useful,
  44. but WITHOUT ANY WARRANTY; without even the implied warranty of
  45. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  46. GNU General Public License for more details.
  47. You should have received a copy of the GNU General Public License
  48. along with GrandePuffo. If not, see <https://www.gnu.org/licenses/>.
  49. LICENSETEXT
  50. );
  51. define('COOKIE_PREFIX', "GRANDEP_");
  52. define('COOKIE_PATH', "/");
  53. define('COOKIE_DOMAIN', "grandepuffo.org");
  54. define('COOKIE_EXPIRE', 86400); // One day
  55. define('ROUTING_RES0', "/res/topbanner1.png");
  56. define('ROUTING_RES1', "/res/logo.png");
  57. define('ROUTING_RES2', "/res/sidebanner3.png");
  58. define('ROUTING_RES3', "/res/scriplet1.js");
  59. define('ROUTING_RES4', "/res/pix5.png");
  60. $CONFIG = [
  61. 'DEBUG' => true,
  62. 'APP' => [
  63. 'NAME' => "GrandePuffo",
  64. 'HOST' => "grandepuffo.org",
  65. 'PATH' => "/path/to/GrandePuffo/Public",
  66. 'PRIVATE_PATH' => "/path/to/GrandePuffo/Private",
  67. 'PUBLIC_PATH' => "/path/to/GrandePuffo/Public",
  68. 'SECRETS_FOLDER' => "scr",
  69. 'ROUTE_PATH' => "/path/to/GrandePuffo/Private/routes",
  70. 'ERROR_PATH' => "/path/to/GrandePuffo/Private/error",
  71. 'LICENSE' => <<<LICENSETEXT
  72. Copyright 2021, 2024 5 Mode
  73. This file is part of GrandePuffo.
  74. GrandePuffo is free software: you can redistribute it and/or modify
  75. it under the terms of the GNU General Public License as published by
  76. the Free Software Foundation, either version 3 of the License, or
  77. (at your option) any later version.
  78. GrandePuffo is distributed in the hope that it will be useful,
  79. but WITHOUT ANY WARRANTY; without even the implied warranty of
  80. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  81. GNU General Public License for more details.
  82. You should have received a copy of the GNU General Public License
  83. along with GrandePuffo. If not, see <https://www.gnu.org/licenses/>.
  84. LICENSETEXT
  85. ],
  86. 'COOKIE' => [
  87. 'PREFIX', "GRANDEP_",
  88. 'PATH', "/",
  89. 'DOMAIN', "grandepuffo.org",
  90. 'EXPIRE', 86400
  91. ]
  92. ];
  93. $ROUTING = [
  94. 'RES_ROUTER_PREFIX' => [
  95. 0 => [1000000, 1199999],
  96. 1 => [1200000, 1399999],
  97. 2 => [1400000, 1599999]
  98. ],
  99. 'RES_ROUTER' => [
  100. 0 => "idxpage1img.php",
  101. 1 => "idxpage1html.php",
  102. 2 => "idxpage1js.php"
  103. ],
  104. 'RES_PASSWORD' => [
  105. 0 => "res_password1",
  106. 1 => "res_password2",
  107. 2 => "res_password3",
  108. 3 => "res_password4",
  109. 4 => "res_password5"
  110. ],
  111. 'RES_SALT' => [
  112. 0 => "res_salt1",
  113. 1 => "res_salt2",
  114. 2 => "res_salt3",
  115. 3 => "res_salt4",
  116. 4 => "res_salt5"
  117. ],
  118. 'RES' => [
  119. 0 => "/res/topbanner1.png",
  120. 1 => "/res/logo.png",
  121. 2 => "/res/sidebanner3.png",
  122. 3 => "/res/scriplet1.js",
  123. 4 => "/res/pix5.png"
  124. ],
  125. 'RES_TYPE' => [
  126. 0 => "image",
  127. 1 => "image",
  128. 2 => "image",
  129. 3 => "script",
  130. 4 => "image"
  131. ],
  132. 'RES_DISPLAIED_SHA' => [
  133. 0 => "d1493e2ef9cdeaa559bbf49c5865bd4777eec2117186db53b0698b7d2105ca10",
  134. 1 => "ba78c55eae177c8e6749fa6aded78757ccfb10c85121cb4fbbb76b9ce3ef4db2",
  135. 2 => "100977ab07dc32e7fa389ccc8555a0e08b62ee052149cf00e706fa08275fcc53",
  136. 3 => "b0586a9e50b39f16f0584948f1574cf9ccce0194b71c95b5a624cf906d0d6b06",
  137. 4 => "3121b07e1fabb8751fbd1c8957281f6cbfefeb391de5da072c00ecd0b6577be1"
  138. ],
  139. 'RES_SHA' => [
  140. 0 => "d1493e2ef9cdeaa559bbf49c5865bd4777eec2117186db53b0698b7d2105ca10",
  141. 1 => "ba78c55eae177c8e6749fa6aded78757ccfb10c85121cb4fbbb76b9ce3ef4db2",
  142. 2 => "100977ab07dc32e7fa389ccc8555a0e08b62ee052149cf00e706fa08275fcc53",
  143. 3 => "b0586a9e50b39f16f0584948f1574cf9ccce0194b71c95b5a624cf906d0d6b06",
  144. 4 => "3121b07e1fabb8751fbd1c8957281f6cbfefeb391de5da072c00ecd0b6577be1"
  145. ],
  146. 'WEBPAGE_ELEMENT' => [
  147. 0 => "funnyctrl1",
  148. 1 => "funnyctrl2",
  149. 2 => "funnyctrl3",
  150. 3 => "funnyctrl4",
  151. 4 => "funnyctrl5"
  152. ]
  153. ];