SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | - | $signs = [null, "aries", "taurus", "gemini", "cancer", "leo", "virgo", "libra", "scorpio", "sagittarius", "capricorn", "aquarius", "pisces"]; |
2 | + | |
3 | - | $sign = array_search(strtolower("gemini"), $signs); |
3 | + | |
4 | - | if(!$sign) die("bad thing"); |
4 | + | replace stuff from old version to this stuff |
5 | ||
6 | ///////////////////////////////////*/ | |
7 | - | just copy the stuff below here b4 the print idk |
7 | + | |
8 | - | u know what 2 do |
8 | + | |
9 | $horo = trim(explode('</p>',explode('<p class="mobile">', explode('</b> - ', $page)[1])[0])[0]); | |
10 | $chances = explode('text-right">', explode('<div class="row non-mobile">', explode('ratings">', $page)[1])[0]); | |
11 | array_shift($chances); | |
12 | foreach($chances as $i=>$chance) $chances[$i] = explode('</h4>', explode("<h4>", $chance)[1])[0]." ".$percent[explode('-stars', explode('ratings/', $chance)[1])[0]]; | |
13 | - | $horo = trim(explode('<br><br>', explode('</b> - ', $page)[1])[0]); |
13 | + | |
14 | ||
15 | // | |
16 | ?> |