<?php if (isset($_GET['ajax'])) { include 'functions.php'; $showid = addslashes($_GET['showid']); $show = new Show($showid, NO_EPISODE_CHECK); } else { include 'header.php'; $showid = addslashes($_GET['showid']); $show = new Show($showid); } if ($_GET['update'] == '1') # Force update $show->updateShow(1); ?> <div class="seriesdetails"> <div class="imagecontainer"> <a href="show.php?showid=<?=$show->getID()?>"><img class="thumbnail" alt="<?=$show->getTitle()?>" src="cache/<?=$show->getID()?>-poster.jpg" /></a> </div> <?=addSubscribeText($show->isSubscribed(), $show->getID(), 1)?> <a href="show.php?showid=<?=$show->getID()?>&update=1" class="updatethis">Force Update</a> <h2><a id="showtitle" href="show.php?showid=<?=$show->getID()?>"><?=$show->getTitle()?></a></h2> <div class="plot"><?=$show->getPlot()?></div> </div> <?php if (!isset($_GET['ajax'])) { ?> <div class="fullcontent"> <div class="contentleft"> <?php $seasonSplit = $show->splitSeasons(); foreach ($seasonSplit[0] as $season) { if (!isset($season[0])) break; // PHP BUG?!?! ?> <div class="contentbox normalbox seasons"> <h3>Season <?php printf("%02d", $season[0]->getSeason())?> <a href="show.php?showid=<?=$season[0]->getShowID()?>" class="subscribe dldmissingeps"><span>Download missing episodes</span></a></h3>
<?php $showid = intval(addslashes($_GET['showid'])); $season = intval(addslashes($_GET['season'])); $episode = intval(addslashes($_GET['id'])); if (isset($_GET['ajax'])) { include 'functions.php'; $show = new Show($showid, NO_EPISODE_CHECK); } else { include 'header.php'; $show = new Show($showid); } ?> <div class="episodedetails"> <div class="imagecontainer"> <a href="show.php?showid=<?=$show->getID()?>"><img class="thumbnail" alt="<?=$show->getTitle()?> - <?php printf("%02d", $show->getEpisode($season.'x'.$episode)->getSeason())?>x<?=printf("%02d", $show->getEpisode($season.'x'.$episode)->getEpisodeID())?> - <?=$show->getEpisode($season.'x'.$episode)->getTitle()?>" src="thumbnail.php?showid=<?=$showid?>&season=<?=$season?>&id=<?=$episode?>" /></a> </div> <?=addSubscribeText($show->isSubscribed(), $show->getID(), 1)?> <a href="show.php?showid=<?=$show->getID()?>&update=1" class="updatethis">Force Update</a> <h2><a id="showtitle" href="show.php?showid=<?=$show->getID()?>"><?=$show->getTitle()?></a> » <a href="episode.php?showid=<?=$show->getID()?>&season=<?=$show->getEpisode($season.'x'.$episode)->getSeason()?>&id=<?=$show->getEpisode($season.'x'.$episode)->getEpisodeID()?>"><?php printf("%02d", $show->getEpisode($season.'x'.$episode)->getSeason())?>x<?php printf("%02d", $show->getEpisode($season.'x'.$episode)->getEpisodeID()); ?> - <?=$show->getEpisode($season.'x'.$episode)->getTitle()?></a></h2> <div class="plot"><?=$show->getEpisode($season.'x'.$episode)->getPlot()?></div> </div> <?php if (!isset($_GET['ajax'])) { ?> <div class="fullcontent"> <div class="contentleft"> <?php $seasonSplit = $show->splitSeasons(); foreach ($seasonSplit[0] as $season) { if (!isset($season[0])) break; // PHP BUG?!?! ?> <div class="contentbox normalbox seasons"> <h3>Season <?php printf("%02d", $season[0]->getSeason())?> <a href="show.php?showid=<?=$season[0]->getShowID()?>" class="subscribe dldmissingeps"><span>Download missing episodes</span></a></h3> <ul>