variables.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <?php
  2. /*
  3. * Copyright (C) 2021 Echedey López Romero <elr@disroot.org>
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. $UserButton = '';
  19. $TopButtons = '';
  20. $UserName = 'EchedeyLR';
  21. $UserPassword = '1234';
  22. $LoginErrors = [];
  23. $Page = '';
  24. $Products = [
  25. [
  26. 'id' => '001',
  27. 'name' => 'EOMA68 Computing Devices',
  28. 'description' => 'An Earth-friendly way to easily upgrade and fix your own computer',
  29. 'price' => '1200',
  30. 'image' => './images/eoma68.webp'
  31. ], [
  32. 'id' => '002',
  33. 'name' => 'GnuBee Personal Cloud 2',
  34. 'description' => 'A low-cost, low-power NAS for 3.5\'\' drives',
  35. 'price' => '175',
  36. 'image' => './images/gnubee2.webp'
  37. ], [
  38. 'id' => '003',
  39. 'name' => 'Watchy',
  40. 'description' => 'A fully open source & customizable E-Ink watch',
  41. 'price' => '59',
  42. 'image' => './images/watchy.webp'
  43. ], [
  44. 'id' => '004',
  45. 'name' => 'DiceKeys',
  46. 'description' => 'Security keys you create by rolling dice',
  47. 'price' => '25',
  48. 'image' => './images/dicekeys.webp'
  49. ], [
  50. 'id' => '005',
  51. 'name' => 'Home Assistant Amber',
  52. 'description' => 'Take control of your home as never before',
  53. 'price' => '169',
  54. 'image' => './images/amber.webp'
  55. ]
  56. ];
  57. $Viewed = [];
  58. $Favourites = [];
  59. $Cart = [];
  60. $CartShowed = false;
  61. $Costs = [];
  62. $Countries = [
  63. [
  64. 'id' => 'spain',
  65. 'name' => 'Spain'
  66. ]
  67. ];
  68. $ProvincesFilter = [
  69. [
  70. 'provincia_id' => '35'
  71. ],
  72. [
  73. 'provincia_id' => '38'
  74. ]
  75. ];
  76. $Provinces = DumpCanaryData('./data/provincias.json', $ProvincesFilter, 'provincia_id');
  77. $Municipalities = DumpCanaryData('./data/municipios_islas.json', $Provinces, 'provincia_id');
  78. $ZIPCodes = DumpCanaryData('./data/codigos_postales_municipios.json', $Municipalities, 'municipio_id', true, 'cp_id');
  79. $RoadTypes = [
  80. [
  81. 'id' => 'avenue',
  82. 'name' => 'Avenue'
  83. ],
  84. [
  85. 'id' => 'street',
  86. 'name' => 'Street'
  87. ],
  88. [
  89. 'id' => 'road',
  90. 'name' => 'Road'
  91. ],
  92. [
  93. 'id' => 'other',
  94. 'name' => 'Other'
  95. ],
  96. [
  97. 'id' => 'promenade',
  98. 'name' => 'Promenade'
  99. ],
  100. [
  101. 'id' => 'square',
  102. 'name' => 'Square'
  103. ],
  104. [
  105. 'id' => 'round',
  106. 'name' => 'Round'
  107. ],
  108. [
  109. 'id' => 'crosswalk',
  110. 'name' => 'Crosswalk'
  111. ],
  112. [
  113. 'id' => 'urbanization',
  114. 'name' => 'Urbanization'
  115. ]
  116. ];
  117. $Replies = [
  118. 'firstname' => '',
  119. 'lastname' => '',
  120. 'telephone' => '',
  121. 'information' => '',
  122. 'country' => '',
  123. 'province' => '',
  124. 'municipality' => '',
  125. 'zipcode' => '',
  126. 'roadtype' => '',
  127. 'roadname' => '',
  128. 'number' => '',
  129. 'complement' => ''
  130. ];
  131. $Selects = [];
  132. $CheckoutErrors = [];