示例#1
0
     $b = new Book();
     $book = $b->getBookInfo($data['bookinfoid']);
 }
 $con = '';
 if ($data['consoleinfoid'] != '') {
     $c = new Console();
     $con = $c->getConsoleInfo($data['consoleinfoid']);
 }
 $AniDBAPIArray = '';
 if ($data["anidbid"] > 0) {
     $AniDB = new AniDB(['Settings' => $releases->pdo]);
     $AniDBAPIArray = $AniDB->getAnimeInfo($data["anidbid"]);
 }
 $predbQuery = '';
 if ($data["preid"] > 0) {
     $PreDB = new PreDB();
     $predbQuery = $PreDB->getByID($data["preid"]);
 }
 $prehash = new PreHash();
 $pre = $prehash->getForRelease($data["prehashid"]);
 $rf = new ReleaseFiles();
 $releasefiles = $rf->get($data["id"]);
 $page->smarty->assign('releasefiles', $releasefiles);
 $page->smarty->assign('release', $data);
 $page->smarty->assign('reVideo', $reVideo);
 $page->smarty->assign('reAudio', $reAudio);
 $page->smarty->assign('reSubs', $reSubs);
 $page->smarty->assign('nfo', $nfo);
 $page->smarty->assign('rage', $rage);
 $page->smarty->assign('movie', $mov);
 $page->smarty->assign('xxx', $xxx);
<?php

require_once WWW_DIR . '/lib/predb.php';
if (!$users->isLoggedIn() || $page->userdata["canpre"] != 1) {
    $page->show403();
}
if (!isset($_REQUEST['searchname'])) {
    $page->show404();
}
$PreDB = new PreDB(true);
$preRow = $PreDB->getByDirname($_REQUEST['searchname']);
print "<table class=\"ui-tooltip-newznab\">\n";
print "<tr><th>Date:</th><td>" . htmlentities(date('Y-m-d H:i:s', $preRow['ctime']), ENT_QUOTES) . "</td></tr>\n";
print "<tr><th>Category:</th><td>" . htmlentities($preRow['category'], ENT_QUOTES) . "</td></tr>\n";
if (!empty($preRow['filesize'])) {
    print "<tr><th>Filesize:</th><td>" . htmlentities($preRow['filesize'] . 'MB', ENT_QUOTES) . "</td></tr>\n";
}
if (!empty($preRow['filecount'])) {
    print "<tr><th>Filecount:</th><td>" . htmlentities($preRow['filecount'] . 'F', ENT_QUOTES) . "</td></tr>\n";
}
if (!empty($preRow['filename'])) {
    print "<tr><th>Filename:</th><td>" . htmlentities($preRow['filename'], ENT_QUOTES) . "</td></tr>\n";
}
if ($preRow['nuketype'] && !empty($preRow['nukereason'])) {
    print "\n<tr><th>" . $preRow['nuketype'] . ":</th><td>" . htmlentities($preRow['nukereason'], ENT_QUOTES) . "</td></tr>\n";
}
print "</table>";
示例#3
0
<?php

require_once "config.php";
$p = new PreDB(true);
$p->nzpreUpdate();
if (isset($argv[1]) && $argv[1] == true) {
    $p->processReleases($daysback = isset($argv[2]) ? $argv[2] : 3);
}
示例#4
0
<?php

require_once dirname(__FILE__) . '/../../www/config.php';
$p = new PreDB(true);
$p->nzpreUpdate();
$p->processReleases(2000);
<?php

require_once WWW_DIR . '/lib/predb.php';
$PreDB = new PreDB();
if (!$users->isLoggedIn() || $page->userdata["canpre"] != 1) {
    $page->show403();
}
$page->title = 'PreDB';
$page->meta_title = 'View PreDB';
$page->meta_keywords = 'view,predb,scene,release,information';
$page->meta_description = 'View PreDB';
$query = isset($_GET['q']) && !empty($_GET['q']) ? $_GET['q'] : '';
$category = isset($_GET['c']) && !empty($_GET['c']) ? $_GET['c'] : '';
$preCount = $PreDB->getPreCount($query, $category);
$offset = isset($_REQUEST['offset']) && ctype_digit($_REQUEST['offset']) ? $_REQUEST['offset'] : 0;
$results = $PreDB->getPreRange($offset, ITEMS_PER_PAGE, $query, $category);
$page->smarty->assign('pagertotalitems', $preCount);
$page->smarty->assign('pageroffset', $offset);
$page->smarty->assign('pageritemsperpage', ITEMS_PER_PAGE);
$page->smarty->assign('pagerquerybase', WWW_TOP . "/predb?q=" . $query . "&amp;c=" . $category . "&amp;offset=");
$page->smarty->assign('pagerquerysuffix', "#results");
$pager = $page->smarty->fetch("pager.tpl");
$page->smarty->assign('pager', $pager);
$page->smarty->assign('results', $results);
$page->smarty->assign('query', $query);
$page->smarty->assign('category', $category);
$page->content = $page->smarty->fetch('viewprelist.tpl');
$page->render();