コード例 #1
0
ファイル: xxx.php プロジェクト: kaibosh/nZEDb
$category = Category::CAT_PARENT_XXX;
if (isset($_REQUEST['t']) && array_key_exists($_REQUEST['t'], $mtmp)) {
    $category = $_REQUEST['t'] + 0;
}
$catarray = array();
$catarray[] = $category;
$page->smarty->assign('catlist', $mtmp);
$page->smarty->assign('category', $category);
$browsecount = $movie->getXXXCount($catarray, -1, $page->userdata['categoryexclusions']);
$offset = isset($_REQUEST['offset']) && ctype_digit($_REQUEST['offset']) ? $_REQUEST["offset"] : 0;
$ordering = $movie->getXXXOrdering();
$orderby = isset($_REQUEST['ob']) && in_array($_REQUEST['ob'], $ordering) ? $_REQUEST['ob'] : '';
$results = $movies = array();
$results = $movie->getXXXRange($catarray, $offset, ITEMS_PER_COVER_PAGE, $orderby, -1, $page->userdata['categoryexclusions']);
foreach ($results as $result) {
    $result['genre'] = $movie->makeFieldLinks($result, 'genre');
    $result['actors'] = $movie->makeFieldLinks($result, 'actors');
    $result['director'] = $movie->makeFieldLinks($result, 'director');
    $result['failed'] = $fail->getFailedCount($result['grp_release_guid']);
    $movies[] = $result;
}
$title = isset($_REQUEST['title']) && !empty($_REQUEST['title']) ? stripslashes($_REQUEST['title']) : '';
$page->smarty->assign('title', stripslashes($title));
$actors = isset($_REQUEST['actors']) && !empty($_REQUEST['actors']) ? stripslashes($_REQUEST['actors']) : '';
$page->smarty->assign('actors', $actors);
$director = isset($_REQUEST['director']) && !empty($_REQUEST['director']) ? stripslashes($_REQUEST['director']) : '';
$page->smarty->assign('director', $director);
$genres = (array) $movie->getAllGenres(true);
$genre = isset($_REQUEST['genre']) && in_array($_REQUEST['genre'], $genres) ? $_REQUEST['genre'] : '';
$page->smarty->assign('genres', $genres);
$page->smarty->assign('genre', $genre);
コード例 #2
0
ファイル: details.php プロジェクト: kaibosh/nZEDb
         $mov['genre'] = $movie->makeFieldLinks($mov, 'genre');
         $mov['director'] = $movie->makeFieldLinks($mov, 'director');
         if ($page->settings->getSetting('trailers_display')) {
             $trailer = !isset($mov['trailer']) || empty($mov['trailer']) || $mov['trailer'] == '' ? $movie->getTrailer($data['imdbid']) : $mov['trailer'];
             if ($trailer) {
                 $mov['trailer'] = sprintf("<iframe width=\"%d\" height=\"%d\" src=\"%s\"></iframe>", $page->settings->getSetting('trailers_size_x'), $page->settings->getSetting('trailers_size_y'), $trailer);
             }
         }
     }
 }
 if ($data['xxxinfo_id'] != '' && $data['xxxinfo_id'] != 0) {
     $XXX = new XXX(['Settings' => $page->settings]);
     $xxx = $XXX->getXXXInfo($data['xxxinfo_id']);
     if ($xxx && isset($xxx['title'])) {
         $xxx['title'] = str_replace(['/', '\\'], '', $xxx['title']);
         $xxx['actors'] = $XXX->makeFieldLinks($xxx, 'actors');
         $xxx['genre'] = $XXX->makeFieldLinks($xxx, 'genre');
         $xxx['director'] = $XXX->makeFieldLinks($xxx, 'director');
         if (isset($xxx['trailers'])) {
             $xxx['trailers'] = $XXX->insertSwf($xxx['classused'], $xxx['trailers']);
         }
     } else {
         $xxx = false;
     }
 }
 $user = $page->users->getById($page->users->currentUserId());
 $re = new ReleaseExtra($page->settings);
 $page->smarty->assign(['anidb' => $data['anidbid'] > 0 ? (new AniDB(['Settings' => $page->settings]))->getAnimeInfo($data['anidbid']) : '', 'boo' => $data['bookinfoid'] != '' ? (new Books(['Settings' => $page->settings]))->getBookInfo($data['bookinfoid']) : '', 'con' => $data['consoleinfoid'] != '' ? (new Console(['Settings' => $page->settings]))->getConsoleInfo($data['consoleinfoid']) : '', 'game' => $data['gamesinfo_id'] != '' ? (new Games(['Settings' => $page->settings]))->getgamesInfo($data['gamesinfo_id']) : '', 'movie' => $mov, 'music' => $data['musicinfoid'] != '' ? (new Music(['Settings' => $page->settings]))->getMusicInfo($data['musicinfoid']) : '', 'pre' => (new PreDb(['Settings' => $page->settings]))->getForRelease($data['preid']), 'show' => $criteria, 'xxx' => $xxx, 'comments' => $rc->getComments($data['id']), 'cpapi' => $user['cp_api'], 'cpurl' => $user['cp_url'], 'nfo' => $releases->getReleaseNfo($data['id'], false), 'release' => $data, 'reAudio' => $re->getAudio($data['id']), 'reSubs' => $re->getSubs($data['id']), 'reVideo' => $re->getVideo($data['id']), 'similars' => $releases->searchSimilar($data['id'], $data['searchname'], 6, $page->userdata['categoryexclusions']), 'privateprofiles' => $page->settings->getSetting('privateprofiles') == 1 ? true : false, 'releasefiles' => (new ReleaseFiles($page->settings))->get($data['id']), 'searchname' => $releases->getSimilarName($data['searchname']), 'failed' => $fail->getFailedCount($data['guid'])]);
 $page->meta_title = 'View NZB';
 $page->meta_keywords = 'view,nzb,description,details';
 $page->meta_description = 'View NZB for' . $data['searchname'];
コード例 #3
0
ファイル: xxxmodal.php プロジェクト: zetas/nZEDb
<?php

use nzedb\XXX;
if (!$page->users->isLoggedIn()) {
    $page->show403();
}
if (isset($_GET['modal']) && isset($_GET["id"]) && ctype_digit($_GET["id"])) {
    $movie = new XXX(['Settings' => $page->settings]);
    $mov = $movie->getXXXInfo($_GET['id']);
    if (!$mov) {
        $page->show404();
    }
    $mov['actors'] = $movie->makeFieldLinks($mov, 'actors');
    $mov['genre'] = $movie->makeFieldLinks($mov, 'genre');
    $mov['director'] = $movie->makeFieldLinks($mov, 'director');
    $page->smarty->assign(['movie' => $mov, 'modal' => true]);
    $page->title = "Info for " . $mov['title'];
    $page->meta_title = "";
    $page->meta_keywords = "";
    $page->meta_description = "";
    $page->smarty->registerPlugin('modifier', 'ss', 'stripslashes');
    if (isset($_GET['modal'])) {
        $page->content = $page->smarty->fetch('viewxxx.tpl');
        $page->smarty->assign('modal', true);
        echo $page->content;
    } else {
        $page->content = $page->smarty->fetch('viewxxxfull.tpl');
        $page->render();
    }
} else {
    $page->render();