require 'config.php';
function printSeries($series) {
global $EXISTS_FILES;
global $CONTENT_FILES;
# Ensure our series name is reasonable
$series_html = htmlspecialchars($series);
if (!seriesExists($series)) {
die('Unknown series: ' . $series_html);
}
# Grab the flag and season data
$flags = readFlags($series);
$seasons = findSeasons($series);
# Header
echo '
';
# Header
echo '
';
echo '
UberZach TV
';
echo '';
# Wrap all the sorted/filtered content
echo '
';
# Display the sorter
echo '
';
echo '
';
echo '- #
';
foreach (range('A', 'Z') as $char) {
echo '- ' . $char . '
';
}
echo '
';
echo '
';
# Sort by "sortTitle" -- an approximation of the Plex sort title
$sorted_series = array();
foreach ($all_series as $series => $seasons) {
$sorted_series[ $series ] = sortTitle($series);
}
asort($sorted_series);
# Display all series
echo '
';
# End the sorted/filtered content
echo '
';
# Add a series
echo '
';
# End the jquery section
echo '
';
}
?>