<?php /*------------------------- * Developed by Maicros * GNU/GPL v2 Licensed * ------------------------*/ include_once "../../config/config.php"; include_once "../../util/VideoUtil.php"; if (isset($_GET["item"])) { $url = base64_decode($_GET["item"]); fetchMovie($url); } else { if (isset($_GET["episode"])) { $episode = base64_decode($_GET["episode"]); fetchSerie($episode); } else { echo "ERROR"; } } /** * Prints first available movie link. */ function fetchMovie($item) { //Parse movie page if (!strpos($item, "//kino.to")) { $item = "http://kino.to" . $item; } $content = file_get_contents($item, false, getExplorerContext(getSiteHash())); //Get Mirror list $mirrorList = strstr($content, "HosterList");
fetchSerieSeason($type, $season); } else { if (isset($_GET["item"])) { // Show items ------------------------------ $type = $_GET["type"]; $item = base64_decode($_GET["item"]); $title = base64_decode($_GET["title"]); switch ($type) { case "doc": fetchDocumentary($type, $item, $title); break; case "mov": fetchMovie($type, $item, $title); break; case "ser": fetchSerie($type, $item, $title); break; } } else { if (isset($_GET["cat"])) { //Category view ---------------------------- $type = $_GET["type"]; $category = base64_decode($_GET["cat"]); $title = base64_decode($_GET["title"]); switch ($type) { case "doc": fetchDocumentaryCategoryItems($type, $category, $title); break; case "mov": fetchMovieCategoryItems($type, $category, $title); break;
include_once '../../action/rss/SaveBookmarkAction.php'; include_once '../../action/rss/DeleteBookmarkAction.php'; define("SCRAPER_URL", SERVER_HOST_AND_PATH . "php/scraper/10starmovies/"); if (isset($_GET["download"])) { $downloadfile = "/tmp/xvod_links.txt"; if (file_exists($downloadfile)) { $extension = " > /dev/null 2>&1 & echo \$!"; $outputdir = "/tmp/hdd/volumes/HDD1/movie/"; $command = "/opt/bin/wget -i{$downloadfile} -P {$outputdir}"; exec($command . $extension, $op); } } else { 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(); } } }