variables.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. // Initialize variables
  19. $Result = '<span class="d-block text-center">--</span>' . PHP_EOL;
  20. $Day = '';
  21. $Month = '';
  22. $Selected = '';
  23. $Days = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
  24. 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31];
  25. $Months = [
  26. 'January' => $Days[30],
  27. 'February' => $Days[28], // Año bisiesto
  28. 'March' => $Days[30],
  29. 'April' => $Days[29],
  30. 'May' => $Days[30],
  31. 'June' => $Days[29],
  32. 'July' => $Days[30],
  33. 'August' => $Days[30],
  34. 'September' => $Days[29],
  35. 'October' => $Days[30],
  36. 'November' => $Days[29],
  37. 'December' => $Days[30]
  38. ];
  39. $Horoscope = [
  40. 'Aries' => [
  41. 'symbol' => '&#x2648;',
  42. 'message' => 'Add a bit of spice in your life by engaging in '
  43. . 'spontaneous activities. It\'s time to get out and enjoy more of the '
  44. . 'world.',
  45. 'range' => [
  46. array_keys($Months)[2] => $Days[20],
  47. array_keys($Months)[3] => $Days[19]
  48. ]
  49. ],
  50. 'Taurus' => [
  51. 'symbol' => '&#x2649;',
  52. 'message' => 'There may be some emotional strain and tension in your '
  53. . 'world, but this can be remedied when you look at things in '
  54. . 'perspective.',
  55. 'range' => [
  56. array_keys($Months)[3] => $Days[20],
  57. array_keys($Months)[4] => $Days[20]
  58. ]
  59. ],
  60. 'Gemini' => [
  61. 'symbol' => '&#x264A;',
  62. 'message' => 'People may be bearing down hard on you. They will have '
  63. . 'some facts to back themselves up.',
  64. 'range' => [
  65. array_keys($Months)[4] => $Days[21],
  66. array_keys($Months)[5] => $Days[20]
  67. ]
  68. ],
  69. 'Cancer' => [
  70. 'symbol' => '&#x264B;',
  71. 'message' => 'This is a great day for you. You may feel like you can '
  72. . 'exercise more of your freedom.',
  73. 'range' => [
  74. array_keys($Months)[5] => $Days[21],
  75. array_keys($Months)[6] => $Days[21]
  76. ]
  77. ],
  78. 'Leo' => [
  79. 'symbol' => '&#x264C;',
  80. 'message' => 'You\'re in a sticky emotional battle in which someone is '
  81. . 'trying to twist your words to make you look like the bad guy.',
  82. 'range' => [
  83. array_keys($Months)[6] => $Days[22],
  84. array_keys($Months)[7] => $Days[21]
  85. ]
  86. ],
  87. 'Virgo' => [
  88. 'symbol' => '&#x264D;',
  89. 'message' => 'Friendships go surprisingly well for you now, so look to '
  90. . 'them for the support you seek. Future plans may be uncertain, so '
  91. . 'don\'t worry about them now.',
  92. 'range' => [
  93. array_keys($Months)[7] => $Days[22],
  94. array_keys($Months)[8] => $Days[21]
  95. ]
  96. ],
  97. 'Libra' => [
  98. 'symbol' => '&#x264E;',
  99. 'message' => 'Lessons may come in odd shapes and sizes today, so '
  100. . 'don\'t feel like you need to make immediate sense of every little '
  101. . 'thing.',
  102. 'range' => [
  103. array_keys($Months)[8] => $Days[22],
  104. array_keys($Months)[9] => $Days[22]
  105. ]
  106. ],
  107. 'Scorpio' => [
  108. 'symbol' => '&#x264F;',
  109. 'message' => 'You\'re in for some unexpected surprises, but don\'t '
  110. . 'worry, because most of them will be exciting and welcome.',
  111. 'range' => [
  112. array_keys($Months)[9] => $Days[23],
  113. array_keys($Months)[10] => $Days[21]
  114. ]
  115. ],
  116. 'Sagittarius' => [
  117. 'symbol' => '&#x2650;',
  118. 'message' => 'You may feel like you\'re driving on a highway and '
  119. . 'suddenly all the lanes merge. This bottleneck should cause you '
  120. . 'tension and difficulty.',
  121. 'range' => [
  122. array_keys($Months)[10] => $Days[22],
  123. array_keys($Months)[11] => $Days[20]
  124. ]
  125. ],
  126. 'Capricorn' => [
  127. 'symbol' => '&#x2651;',
  128. 'message' => 'You\'ll be at an advantage if you can learn to distance '
  129. . 'yourself from the emotional crux of the matter. Maintain a neutral '
  130. . 'viewpoint.',
  131. 'range' => [
  132. array_keys($Months)[11] => $Days[21],
  133. array_keys($Months)[0] => $Days[19]
  134. ]
  135. ],
  136. 'Aquarius' => [
  137. 'symbol' => '&#x2652;',
  138. 'message' => 'You may feel like a mouse trying to get the cheese in '
  139. . 'the middle of the kitchen floor. From your corner, you can see the '
  140. . 'cheese in the distance. Yet you know a cat lurks nearby.',
  141. 'range' => [
  142. array_keys($Months)[0] => $Days[20],
  143. array_keys($Months)[1] => $Days[18]
  144. ]
  145. ],
  146. 'Pisces' => [
  147. 'symbol' => '&#x2653;',
  148. 'message' => 'Your emotions receive a boost of support from those '
  149. . 'around you. Be careful that you don\'t let this energy go to your '
  150. . 'head.',
  151. 'range' => [
  152. array_keys($Months)[1] => $Days[19],
  153. array_keys($Months)[2] => $Days[19]
  154. ]
  155. ]
  156. ];