Пример #1
0
    if (isset($_GET["serie"])) {
        $serieLink = base64_decode($_GET["serie"]);
        $serieTitle = base64_decode($_GET["title"]);
        fetchSerie($serieLink, $serieTitle);
    } else {
        if (isset($_GET["season"])) {
            $season = $_GET["season"];
            fetchSeason($season);
        } else {
            if (isset($_GET["episode"])) {
                $season = $_GET["seasonNum"];
                $episode = $_GET["episode"];
                $episodeName = base64_decode($_GET["episodeName"]);
                fetchEpisode($season, $episode, $episodeName);
            } else {
                fetchSeries();
            }
        }
    }
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
function fetchEpisode($season, $episode, $episodeName)
{
    $template = new TenstarmoviesTemplate();
    if (isset($_GET["PHPSESID"])) {
        session_id($_GET["PHPSESID"]);
        session_start();
        $serie = unserialize($_SESSION["serie"]);
        $coverImage = $_SESSION["coverImage"];
        $title = $_SESSION["title"];
Пример #2
0
            fetchMovieCategory();
            break;
            //        case "ser":
            //            fetchSerieCategory();
            //            break;
    }
} else {
    if (isset($_GET["type"])) {
        // Category list view ---------------------
        $type = $_GET["type"];
        switch ($type) {
            case "mov":
                fetchMovieCategories($type);
                break;
            case "ser":
                fetchSeries($type);
                break;
        }
    } else {
        // Show home principal view ---------------------------------------
        fetchHome();
    }
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
/**
 * -------------------------------------------------------------------------
 */
function fetchHome()
{
    $template = new SupertelafilmesTemplate();