'; echo '

' . $series_html . '

'; echo 'Back'; if (authenticated()) { echo 'Logout: ' . username() . ''; } else { echo 'Login'; } echo ''; # Wrap all the content echo '
'; # Form echo '
'; echo ''; # Series flags echo '

Series Parameters

'; echo '
'; foreach ($EXISTS_FILES as $file) { if ($file == 'skip' || !$flags['skip']) { $file_html = htmlspecialchars($file); echo ''; echo '
'; } } echo '
'; if (!$flags['skip']) { echo '
'; foreach ($CONTENT_FILES as $file) { $file_html = htmlspecialchars($file); echo ''; echo ''; } echo '
'; } # Save button echo '

'; # Seasons if (!$flags['skip']) { echo '

Season Parameters

'; # Existing seasons echo '
'; foreach ($seasons as $season => $monitored) { $season_html = htmlspecialchars($season); $episodes = findEpisodes($series, $season); $count = count($episodes); $max = @max(array_keys($episodes)); if (!$max) { $max = 0; } echo '

Season ' . $season_html . '

'; if ($season) { echo ''; } if ($count) { echo '
'; echo ''; echo ''; echo '
'; } else { echo '
'; } } echo '
'; # Save button echo '

'; # Add a season echo '

Add Season

'; $next_season = @max(array_keys($seasons)) + 1; echo '
'; echo ''; echo ''; echo '
'; } # End Form echo '
'; echo '
'; # TheTVDB Frame $url_html = htmlspecialchars(TVDBURL($flags['tvdb-id'], $flags['tvdb-lid'])); echo '

The TVDB

'; echo '

' . $url_html . '

'; echo ''; echo ''; } # Print a DL of all series and note the available and monitored seasons function printAllSeries() { require 'config.php'; global $TV_PATH; $all_series = allSeriesSeasons($TV_PATH); # Header echo '
'; echo '

UberZach TV

'; if (authenticated()) { echo 'Logout: ' . username() . ''; } else { echo 'Login'; } echo '
'; # Wrap all the content 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, SORT_FLAG_CASE | SORT_NATURAL); # Display all series echo ''; # End the sorted/filtered content echo '
'; # Add a series echo '
'; echo '

'; echo ''; echo ''; echo '

'; echo '
'; } ?>