Last active
September 2, 2015 09:23
-
-
Save ElliottLandsborough/377ff540caefdf8366b7 to your computer and use it in GitHub Desktop.
X-Files Monster of the Week Episodes Array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* X Files Episode Range | |
*/ | |
$episodes = array(); | |
$episodes[1] = array(0,23); // Sometimes $episodes[1] = array(1,24); (depends on pilot numbering) | |
$episodes[2] = array(1,25); | |
$episodes[3] = array(1,24); | |
$episodes[4] = array(1,24); | |
$episodes[5] = array(1,20); | |
$episodes[6] = array(1,22); | |
$episodes[7] = array(1,22); | |
$episodes[8] = array(1,21); | |
$episodes[9] = array(1,20); | |
$ep_json = json_encode($episodes); // {"1":[0,23],"2":[1,25],"3":[1,24],"4":[1,24],"5":[1,20],"6":[1,22],"7":[1,22],"8":[1,21],"9":[1,20]}; | |
/* | |
* X Files Monster of the week episodes array | |
*/ | |
$motw = array(); | |
$motw[1] = array(2,4,5,6,7,8,10,11,12,13,14,15,17,18,19,20,21,22); | |
$motw[2] = array(2,3,7,9,11,12,13,14,15,18,19,20,21,22,23,24); | |
$motw[3] = array(3,4,5,6,7,8,11,12,13,14,17,18,19,20,21,22); | |
$motw[4] = array(2,3,4,5,6,8,11,12,13,16,19,20,22); | |
$motw[5] = array(4,6,8,9,10,11,12,16,17,18,19); | |
$motw[6] = array(2,3,6,7,8,9,13,14,15,16,17,18,21); | |
$motw[7] = array(1,2,5,6,7,8,9,12,13,14,16,17,18,19,20,21); | |
$motw[8] = array(3,4,5,6,7,9,10,12,13,17); | |
$motw[9] = array(3,4,5,6,7,9,12,13,14,16,18); | |
$motw_json = json_encode($motw); // {"1":[2,4,5,6,7,8,10,11,12,13,14,15,17,18,19,20,21,22],"2":[2,3,7,9,11,12,13,14,15,18,19,20,21,22,23,24],"3":[3,4,5,6,7,8,11,12,13,14,17,18,19,20,21,22],"4":[2,3,4,5,6,8,11,12,13,16,19,20,22],"5":[4,6,8,9,10,11,12,16,17,18,19],"6":[2,3,6,7,8,9,13,14,15,16,17,18,21],"7":[1,2,5,6,7,8,9,12,13,14,16,17,18,19,20,21],"8":[3,4,5,6,7,9,10,12,13,17],"9":[3,4,5,6,7,9,12,13,14,16,18]} | |
?> | |
<script type='text/javascript'> | |
<?php | |
echo "var eps = ". $ep_json . ";\n"; | |
echo "var motw = ". $motw_json . ";\n"; | |
?> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment