예제 #1
0
<?php

/*-------------------------
 *    Developed by Maicros
 *     GNU/GPL v2 Licensed
 * ------------------------*/
include_once "../../config/config.php";
include_once "../../util/VideoUtil.php";
if (isset($_GET["movieId"])) {
    $movieId = base64_decode($_GET["movieId"]);
    fetchMovie($movieId);
} else {
    echo "ERROR";
}
/**
 * Prints first available movie link.
 */
function fetchMovie($movieId)
{
    $content = file_get_contents($movieId);
    $newlines = array("\t", "\n", "\r", "  ", "", "\v");
    $content = str_replace($newlines, "", html_entity_decode($content));
    //<li class="online">
    //Get film avaible links
    if (strpos($content, "http://www.megavideo.com/v")) {
        preg_match_all("|www.megavideo.com\\/v\\/(.*)\"|U", $content, $links);
        if ($links && $links[1]) {
            $links = $links[1];
            $links = array_unique($links);
            foreach ($links as $value) {
                //Get megavideo id
예제 #2
0
    }
}
session_start();
//
if (isset($_GET["cat"])) {
    //Category movie view -----------------------------
    $category = base64_decode($_GET["cat"]);
    $title = base64_decode($_GET["title"]);
    fetchMovieCategoryItems($category, $title);
} else {
    if (isset($_GET["item"])) {
        //Movie detail view -------------------------------
        $item = base64_decode($_GET["item"]);
        $title = base64_decode($_GET["title"]);
        $image = base64_decode($_GET["image"]);
        fetchMovie($item, $title, $image);
    } else {
        // Show home view --------------------------
        fetchMovieCategories();
    }
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
/**
 */
function fetchMovieCategories()
{
    $template = new MarocTemplate();
    $content = @file_get_contents("http://www.01maroc.com/modules/films/index.php");
    $newlines = array("\t", "\n", "\r", "  ", "", "\v");
    $content = str_replace($newlines, "", html_entity_decode($content));
예제 #3
0
<?php

/*-------------------------
 *    Developed by Maicros
 *     GNU/GPL v2 Licensed
 * ------------------------*/
include_once "../../config/config.php";
include_once "../../util/VideoUtil.php";
if (isset($_GET["item"])) {
    $item = base64_decode($_GET["item"]);
    fetchMovie($item);
}
/**
 * Prints first available movie link.
 */
function fetchMovie($movie)
{
    $content = file_get_contents($movie);
    $newlines = array("\t", "\n", "\r", "  ", "", "\v");
    $content = str_replace($newlines, "", html_entity_decode($content, ENT_QUOTES, "UTF-8"));
    //Get megavideo id and link
    preg_match("/wwwstatic.megavideo.com\\/mv_player.swf(.*)&v=(.*)\"/siU", $content, $links);
    if ($links && $links[2]) {
        $megavideo_id = $links[2];
        if (COOKIE_STATE_ACTIVATED && $megavideo_id) {
            $array = VideoUtil::generateMegavideoPremiumLink($megavideo_id);
            if ($array) {
                echo $array[1];
                return;
            }
        }
예제 #4
0
     // Show serie season episodes--------------
     $type = $_GET["type"];
     $season = base64_decode($_GET["season"]);
     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;
예제 #5
0
                    if ($type == "est") {
                        fetchCategoryFirstRun();
                    } else {
                        if ($type == "doc") {
                            fetchCategoryFirstRun();
                        } else {
                            fetchCategoryLetters($type, $pageTitle);
                        }
                    }
                }
            }
        } else {
            if (isset($_GET["item"])) {
                $item = base64_decode($_GET["item"]);
                $title = base64_decode($_GET["title"]);
                fetchMovie($item, $title);
            } else {
                fetchCategories();
            }
        }
    }
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
/**
 * Show category list.
 */
function fetchCategories()
{
    $template = new KinotoTemplate();
    //Get site cookie hash
예제 #6
0
    $app->response->setStatus(200);
    $app->response->headers->set('Content-Type', 'text/html');
    $movies = $db->select("movie", "*", ["ORDER" => 'id DESC']);
    $app->render('index.php', array("movie" => $movies[0], "movies" => $movies));
});
/*
 * Returns all movies
 */
$app->get('/movies', function () use($app, $db) {
    listAllMovies($app, $db);
});
/*
 * Returns a movie
 */
$app->get('/movies/:id', function ($id) use($app, $db) {
    fetchMovie($id, $app, $db);
});
/*
 * Creates a new movie
 */
$app->post('/movies', function () use($app, $db) {
    addMovie($app, $db);
});
/*
 * Updates a movie
 */
$app->put('/movies/:id', function ($id) use($app, $db) {
    updateMovie($id, $app, $db);
});
/*
 * Deletes a movie
예제 #7
0
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 } else {
     if (isset($_GET["item"])) {
         //Movie detail view -------------------------------
         $item = base64_decode($_GET["item"]);
         $title = base64_decode($_GET["title"]);
         $image = base64_decode($_GET["image"]);
         fetchMovie($item, $title, $image, $context);
         if (empty($_GET["downloadmsg"])) {
             file_put_contents($tmpcache, $serverquery);
         }
     } else {
         if (isset($_GET["letter"])) {
             $letter = $_GET["letter"];
             fetchAllMovieItems($letter, $context);
         } else {
             if (isset($_GET["search"])) {
                 $type = $_GET["search"];
                 fetchSearch($type, $context);
             } else {
                 // Show home view --------------------------
                 $template = new HdboxTemplate();
                 $template->setSearch(array(resourceString("search_by") . "...", resourceString("search_by") . "...", "rss_command://search", SCRAPER_URL . "index.php?search=%s" . URL_AMP . "type={$type}" . URL_AMP . "title=" . base64_encode("Search by"), ""));
예제 #8
0
<?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");
예제 #9
0
                        $category = base64_decode($_GET["cat"]);
                        $title = base64_decode($_GET["title"]);
                        fetchMovieCategoryItems($category, $title);
                    }
                }
            }
        }
    }
} else {
    if (isset($_GET["item"])) {
        //Movie detail view -------------------------------
        $item = base64_decode($_GET["item"]);
        $title = base64_decode($_GET["title"]);
        $image = base64_decode($_GET["image"]);
        $host = base64_decode($_GET["host"]);
        fetchMovie($item, $title, $image, $host);
    } else {
        if (isset($_GET["letter"])) {
            $letter = $_GET["letter"];
            fetchAllMovieItems($letter);
        } else {
            if (isset($_GET["search"])) {
                $type = $_GET["search"];
                fetchSearch($type);
            } else {
                // Show home view --------------------------
                $template = new Movie2kTemplate();
                $template->addItem("Alle Filme", "", SCRAPER_URL . "index.php?cat=all", "");
                $template->addItem("Top Filme", "", SCRAPER_URL . "index.php?cat=top", "");
                $template->addItem("Kinofilme", "", SCRAPER_URL . "index.php?cat=kin", "");
                $template->addItem("Genres", "", SCRAPER_URL . "index.php?cat=ov", "");
예제 #10
0
            $template->setUrl(SCRAPER_URL . "index.php?page=" . $_GET["page"] . URL_AMP . "type=" . $_GET["type"] . URL_AMP . "title=" . $_GET["title"]);
            $type = base64_decode($_GET["type"]);
            $page = base64_decode($_GET["page"]);
            $pageTitle = base64_decode($_GET["title"]);
            if (isset($_GET["view"])) {
                $view = $_GET["view"];
            } else {
                $view = "";
            }
            fetchCategoryPageMovies($type, $page, $pageTitle, $view);
        } else {
            if (isset($_GET["movieId"])) {
                $movieId = base64_decode($_GET["movieId"]);
                $pageTitle = base64_decode($_GET["title"]);
                $movieImage = base64_decode($_GET["image"]);
                fetchMovie($movieId, $pageTitle, $movieImage);
            } else {
                fetchCategories();
            }
        }
    }
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
function fetchCategories()
{
    global $template;
    //Get principal page and parse categories side bar
    $content = file_get_contents("http://www.watchnewfilms.com/");
    $newlines = array("\t", "\n", "\r", "  ", "", "\v");
    $input = str_replace($newlines, "", utf8_decode($content));
예제 #11
0
    } else {
        if (isset($_GET["page"])) {
            $page = $_GET["page"];
            $maxPages = $_GET["pages"];
            $category = base64_decode($_GET["cat"]);
            $title = base64_decode($_GET["title"]);
            $template->setActualPage($page);
            $template->setCategory($category);
            $template->setMaxPages($maxPages);
            fetchCategoryPageMovies($title, $page, $category, false, $maxPages);
        } else {
            if (isset($_GET["movieId"])) {
                $movieId = base64_decode($_GET["movieId"]);
                $title = base64_decode($_GET["title"]);
                $movieImage = base64_decode($_GET["image"]);
                fetchMovie($movieId, $title, $movieImage);
            } else {
                fetchCategories();
            }
        }
    }
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
function fetchCategories()
{
    global $template;
    //Get principal page and parse categories side bar
    $content = file_get_contents("http://www.myvod.tv");
    $newlines = array("\t", "\n", "\r", "  ", "", "\v");
    $content = str_replace($newlines, "", html_entity_decode($content));