123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <?php
- /*
- * Copyright (C) 2021 Echedey López Romero <elr@disroot.org>
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- // Initialize variables
- $Result = '<span class="d-block text-center">--</span>' . PHP_EOL;
- $Day = '';
- $Month = '';
- $Selected = '';
- $Days = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
- 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31];
- $Months = [
- 'January' => $Days[30],
- 'February' => $Days[28], // Año bisiesto
- 'March' => $Days[30],
- 'April' => $Days[29],
- 'May' => $Days[30],
- 'June' => $Days[29],
- 'July' => $Days[30],
- 'August' => $Days[30],
- 'September' => $Days[29],
- 'October' => $Days[30],
- 'November' => $Days[29],
- 'December' => $Days[30]
- ];
- $Horoscope = [
- 'Aries' => [
- 'symbol' => '♈',
- 'message' => 'Add a bit of spice in your life by engaging in '
- . 'spontaneous activities. It\'s time to get out and enjoy more of the '
- . 'world.',
- 'range' => [
- array_keys($Months)[2] => $Days[20],
- array_keys($Months)[3] => $Days[19]
- ]
- ],
- 'Taurus' => [
- 'symbol' => '♉',
- 'message' => 'There may be some emotional strain and tension in your '
- . 'world, but this can be remedied when you look at things in '
- . 'perspective.',
- 'range' => [
- array_keys($Months)[3] => $Days[20],
- array_keys($Months)[4] => $Days[20]
- ]
- ],
- 'Gemini' => [
- 'symbol' => '♊',
- 'message' => 'People may be bearing down hard on you. They will have '
- . 'some facts to back themselves up.',
- 'range' => [
- array_keys($Months)[4] => $Days[21],
- array_keys($Months)[5] => $Days[20]
- ]
- ],
- 'Cancer' => [
- 'symbol' => '♋',
- 'message' => 'This is a great day for you. You may feel like you can '
- . 'exercise more of your freedom.',
- 'range' => [
- array_keys($Months)[5] => $Days[21],
- array_keys($Months)[6] => $Days[21]
- ]
- ],
- 'Leo' => [
- 'symbol' => '♌',
- 'message' => 'You\'re in a sticky emotional battle in which someone is '
- . 'trying to twist your words to make you look like the bad guy.',
- 'range' => [
- array_keys($Months)[6] => $Days[22],
- array_keys($Months)[7] => $Days[21]
- ]
- ],
- 'Virgo' => [
- 'symbol' => '♍',
- 'message' => 'Friendships go surprisingly well for you now, so look to '
- . 'them for the support you seek. Future plans may be uncertain, so '
- . 'don\'t worry about them now.',
- 'range' => [
- array_keys($Months)[7] => $Days[22],
- array_keys($Months)[8] => $Days[21]
- ]
- ],
- 'Libra' => [
- 'symbol' => '♎',
- 'message' => 'Lessons may come in odd shapes and sizes today, so '
- . 'don\'t feel like you need to make immediate sense of every little '
- . 'thing.',
- 'range' => [
- array_keys($Months)[8] => $Days[22],
- array_keys($Months)[9] => $Days[22]
- ]
- ],
- 'Scorpio' => [
- 'symbol' => '♏',
- 'message' => 'You\'re in for some unexpected surprises, but don\'t '
- . 'worry, because most of them will be exciting and welcome.',
- 'range' => [
- array_keys($Months)[9] => $Days[23],
- array_keys($Months)[10] => $Days[21]
- ]
- ],
- 'Sagittarius' => [
- 'symbol' => '♐',
- 'message' => 'You may feel like you\'re driving on a highway and '
- . 'suddenly all the lanes merge. This bottleneck should cause you '
- . 'tension and difficulty.',
- 'range' => [
- array_keys($Months)[10] => $Days[22],
- array_keys($Months)[11] => $Days[20]
- ]
- ],
- 'Capricorn' => [
- 'symbol' => '♑',
- 'message' => 'You\'ll be at an advantage if you can learn to distance '
- . 'yourself from the emotional crux of the matter. Maintain a neutral '
- . 'viewpoint.',
- 'range' => [
- array_keys($Months)[11] => $Days[21],
- array_keys($Months)[0] => $Days[19]
- ]
- ],
- 'Aquarius' => [
- 'symbol' => '♒',
- 'message' => 'You may feel like a mouse trying to get the cheese in '
- . 'the middle of the kitchen floor. From your corner, you can see the '
- . 'cheese in the distance. Yet you know a cat lurks nearby.',
- 'range' => [
- array_keys($Months)[0] => $Days[20],
- array_keys($Months)[1] => $Days[18]
- ]
- ],
- 'Pisces' => [
- 'symbol' => '♓',
- 'message' => 'Your emotions receive a boost of support from those '
- . 'around you. Be careful that you don\'t let this energy go to your '
- . 'head.',
- 'range' => [
- array_keys($Months)[1] => $Days[19],
- array_keys($Months)[2] => $Days[19]
- ]
- ]
- ];
|