本文整理汇总了PHP中Releases::getReleaseNfo方法的典型用法代码示例。如果您正苦于以下问题:PHP Releases::getReleaseNfo方法的具体用法?PHP Releases::getReleaseNfo怎么用?PHP Releases::getReleaseNfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Releases
的用法示例。
在下文中一共展示了Releases::getReleaseNfo方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showApiError
//
// get nfo
//
//
// get nfo
//
case "gn":
if (!isset($_GET["id"])) {
showApiError(200);
}
$users->addApiRequest($uid, $_SERVER['REQUEST_URI'], $hosthash);
$reldata = $releases->getByGuid($_GET["id"]);
if (!$reldata) {
showApiError(300);
}
$nfo = $releases->getReleaseNfo($reldata["ID"], true);
if (!$nfo) {
showApiError(300);
}
$nforaw = cp437toUTF($nfo["nfo"]);
$page->smarty->assign('release', $reldata);
$page->smarty->assign('nfo', $nfo);
$page->smarty->assign('nfoutf', $nforaw);
if (isset($_GET["raw"])) {
header("Content-type: text/x-nfo");
header("Content-Disposition: attachment; filename=" . str_replace(" ", "_", $reldata["searchname"]) . ".nfo");
echo $nforaw;
die;
} else {
$page->smarty->assign('rsstitle', "NFO");
$page->smarty->assign('rssdesc', "NFO");
示例2: Releases
if (!$page->users->isLoggedIn()) {
$page->show403();
}
if (isset($_GET["id"])) {
$releases = new Releases(['Settings' => $page->settings]);
$rc = new ReleaseComments();
$re = new ReleaseExtra();
$data = $releases->getByGuid($_GET["id"]);
if (!$data) {
$page->show404();
}
if ($page->isPostBack()) {
$rc->addComment($data["id"], $data["gid"], $_POST["txtAddComment"], $page->users->currentUserId(), $_SERVER['REMOTE_ADDR']);
}
$nfo = $releases->getReleaseNfo($data["id"], false);
$reVideo = $re->getVideo($data["id"]);
$reAudio = $re->getAudio($data["id"]);
$reSubs = $re->getSubs($data["id"]);
$comments = $rc->getCommentsByGid($data["gid"]);
$rage = '';
if ($data["rageid"] != '') {
$tvrage = new TvAnger();
$rageinfo = $tvrage->getByRageID($data["rageid"]);
if (count($rageinfo) > 0) {
$seriesnames = $seriesdescription = $seriescountry = $seriesgenre = $seriesimg = $seriesid = array();
foreach ($rageinfo as $r) {
$seriesnames[] = $r['releasetitle'];
if (!empty($r['description'])) {
$seriesdescription[] = $r['description'];
}
示例3: Releases
<?php
if (!$page->users->isLoggedIn()) {
$page->show403();
}
if (isset($_GET['id'])) {
$releases = new Releases(['Settings' => $page->settings]);
$data = $releases->getByGuid($_GET['id']);
if (!$data) {
$page->show404();
}
$rc = new ReleaseComments($page->settings);
if ($page->isPostBack()) {
$rc->addComment($data['id'], $_POST['txtAddComment'], $page->users->currentUserId(), $_SERVER['REMOTE_ADDR']);
}
$nfo = $releases->getReleaseNfo($data['id'], false);
$re = new ReleaseExtra($page->settings);
$reVideo = $re->getVideo($data['id']);
$reAudio = $re->getAudio($data['id']);
$reSubs = $re->getSubs($data['id']);
$comments = $rc->getComments($data['id']);
$similars = $releases->searchSimilar($data['id'], $data['searchname'], 6, $page->userdata['categoryexclusions']);
$rage = $ani = $mov = $mus = $con = $game = $xxx = $boo = '';
if ($data['rageid'] != '') {
$tvrage = new TvRage(['Settings' => $page->settings]);
$rageinfo = $tvrage->getByRageID($data['rageid']);
if (count($rageinfo) > 0) {
$seriesnames = $seriesdescription = $seriescountry = $seriesgenre = $seriesimg = $seriesid = array();
foreach ($rageinfo as $r) {
$seriesnames[] = $r['releasetitle'];
if (!empty($r['description'])) {
示例4: Releases
<?php
use newznab\utility\Utility;
$releases = new Releases();
if (!$page->users->isLoggedIn()) {
$page->show403();
}
if (isset($_GET["id"])) {
$rel = $releases->getByGuid($_GET["id"]);
if (!$rel) {
$page->show404();
}
$nfo = $releases->getReleaseNfo($rel['id']);
$nfo['nfoUTF'] = Utility::cp437toUTF($nfo['nfo']);
$page->smarty->assign('rel', $rel);
$page->smarty->assign('nfo', $nfo);
$page->title = "NFO File";
$page->meta_title = "View Nfo";
$page->meta_keywords = "view,nzb,nfo,description,details";
$page->meta_description = "View Nfo File";
$modal = false;
if (isset($_GET['modal'])) {
$modal = true;
$page->smarty->assign('modal', true);
}
$page->content = $page->smarty->fetch('viewnfo.tpl');
if ($modal) {
echo $page->content;
} else {
$page->render();
}
示例5: readgzfile
}
if (isset($_GET["id"])) {
$reldata = $rel->getByGuid($_GET["id"]);
$nzbpath = $nzb->getNZBPath($_GET["id"], $page->site->nzbpath);
$nfo = "";
if (!file_exists($nzbpath)) {
$page->show404();
}
if ($reldata) {
$rel->updateGrab($_GET["id"]);
$users->addDownloadRequest($uid, $hosthash, $_GET["id"]);
$users->incrementGrabs($uid);
if (isset($_GET["del"]) && $_GET["del"] == 1) {
$users->delCartByUserAndRelease($_GET["id"], $uid);
}
$nfo = $rel->getReleaseNfo($reldata["ID"]);
if ($nfo) {
if (!$users->isLoggedIn()) {
$nfo = $page->serverurl . "api?t=getnfo&id=" . $reldata["guid"] . "&raw=1&i=" . $uid . "&r=" . $rsstoken;
} else {
$nfo = $page->serverurl . "api?t=getnfo&id=" . $reldata["guid"] . "&raw=1";
}
}
} else {
$page->show404();
}
ob_start();
readgzfile($nzbpath);
header("Content-type: application/x-nzb");
header("Content-Length: " . ob_get_length());
header("X-DNZB-Name: " . $reldata["searchname"]);
示例6: Releases
<?php
require_once WWW_DIR . "/lib/releases.php";
require_once WWW_DIR . "/lib/util.php";
$releases = new Releases();
if (!$users->isLoggedIn()) {
$page->show403();
}
if (isset($_GET["id"])) {
$rel = $releases->getByGuid($_GET["id"]);
if (!$rel) {
$page->show404();
}
$nfo = $releases->getReleaseNfo($rel['ID']);
$nfo['nfoUTF'] = cp437toUTF($nfo['nfo']);
$page->smarty->assign('rel', $rel);
$page->smarty->assign('nfo', $nfo);
$page->title = "NFO File";
$page->meta_title = "View Nfo";
$page->meta_keywords = "view,nzb,nfo,description,details";
$page->meta_description = "View Nfo File";
$modal = false;
if (isset($_GET['modal'])) {
$modal = true;
$page->smarty->assign('modal', true);
}
$page->content = $page->smarty->fetch('viewnfo.tpl');
if ($modal) {
echo $page->content;
} else {
$page->render();
示例7: showApiError
//
// get nfo
//
//
// get nfo
//
case "gn":
if (!isset($_GET["id"])) {
showApiError(200);
}
$page->users->addApiRequest($uid, $_SERVER['REQUEST_URI']);
$relData = $releases->getByGuid($_GET["id"]);
if (!$relData) {
showApiError(300);
}
$nfo = $releases->getReleaseNfo($relData["id"], true);
if (!$nfo) {
showApiError(300);
}
$nforaw = Utility::cp437toUTF($nfo["nfo"]);
$page->smarty->assign('release', $relData);
$page->smarty->assign('nfo', $nfo);
$page->smarty->assign('nfoutf', $nforaw);
if (isset($_GET["raw"])) {
header("Content-type: text/x-nfo");
header("Content-Disposition: attachment; filename=" . str_replace(" ", "_", $relData["searchname"]) . ".nfo");
echo $nforaw;
die;
} else {
$page->smarty->assign('rsstitle', "NFO");
$page->smarty->assign('rssdesc', "NFO");