Пример #1
0
<!DOCTYPE html>
<html>

<? include('inc/header.inc.php'); ?>

<body>

<?php 
include 'inc/navbar.inc.php';
?>

<div class="container">

<?php 
if (isset($_GET['episode']) && !empty($_GET['episode'])) {
    $viki = new vikiAPI();
    $adfly = new adflyApi();
    ?>

<!-- Start add banner -->
<?php 
    $propaganda = new propaganda();
    $propaganda->printCurrAdd();
    ?>
<!-- End add banner -->

<!-- EpisodeResults -->
<div class="page-header">
<h1>Select your download preferences</h1>

</div>
Пример #2
0
?>
<!DOCTYPE html>
<html>

<? include('inc/header.inc.php'); ?>

<body>

<?php 
include 'inc/navbar.inc.php';
?>

<div class="container">
<?php 
if (isset($_GET['serie']) && !empty($_GET['serie'])) {
    $viki = new vikiAPI();
    if (!isset($_GET['page'])) {
        $_GET['page'] = 1;
    }
    $_GET['page'] = (int) $_GET['page'];
    ?>

<!-- Start add banner -->
<?php 
    $propaganda = new propaganda();
    $propaganda->printCurrAdd();
    ?>
<!-- End add banner -->

<!-- SerieResults -->
<div class="page-header">
Пример #3
0
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

************************/
include 'inc/functions.inc.php';
include 'inc/viki.inc.php';
if (isset($_GET['id']) && isset($_GET['quality'])) {
    $viki = new vikiAPI();
    $vikiStreams = $viki->streams($_GET['id']);
    $count = count($vikiStreams);
    if ($count) {
        if (isset($vikiStreams[$_GET['quality']])) {
            $url = $vikiStreams[$_GET['quality']]['http']['url'];
            $ch = @curl_init();
            @curl_setopt($ch, CURLOPT_URL, $url);
            @curl_setopt($ch, CURLOPT_RETURNTRANSFER, FALSE);
            @curl_setopt($ch, CURLOPT_NOBODY, TRUE);
            //curl_setopt($ch, CURLOPT_HEADER, FALSE);
            @curl_exec($ch);
            $info = @curl_getinfo($ch);
            @curl_close($ch);
            @header("Cache-Control: no-cache, must-revalidate");
            @header("Pragma: no-cache");
Пример #4
0
$propaganda = new propaganda();
$propaganda->printRandAdd();
?>
<!-- End add banner -->

<!-- SearchResults -->
<div class="page-header">
<h1>Search results <small>for <?php 
echo htmlentities($q);
?>
</small></h1>
</div>

<?php 
if (!empty($q)) {
    $viki = new vikiAPI();
    if (!isset($_GET['page'])) {
        $_GET['page'] = 1;
    }
    $_GET['page'] = (int) $_GET['page'];
    $vikiSearch = $viki->search($q, $_GET['page']);
    $count = count($vikiSearch['response']);
    if ($count) {
        for ($i = 0; $i < $count; $i++) {
            $id = $vikiSearch['response'][$i]['id'];
            $title = $vikiSearch['response'][$i]['titles']['en'];
            $poster = $vikiSearch['response'][$i]['images']['poster']['url'];
            $episodes = $vikiSearch['response'][$i]['episodes']['count'];
            $description = substr($vikiSearch['response'][$i]['descriptions']['en'], 0, 140);
            if (!empty($episodes)) {
                echo "<div class='hero-unit text-center'>\r\n";