本文整理汇总了PHP中Releases::getMyMoviesRss方法的典型用法代码示例。如果您正苦于以下问题:PHP Releases::getMyMoviesRss方法的具体用法?PHP Releases::getMyMoviesRss怎么用?PHP Releases::getMyMoviesRss使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Releases
的用法示例。
在下文中一共展示了Releases::getMyMoviesRss方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
}
// Valid or logged in user, get them the requested feed.
$userRage = $userAnidb = -1;
if (isset($_GET["rage"])) {
$userRage = $_GET["rage"] == 0 ? -1 : $_GET["rage"] + 0;
} elseif (isset($_GET["anidb"])) {
$userAnidb = $_GET["anidb"] == 0 ? -1 : $_GET["anidb"] + 0;
}
$userCat = isset($_GET['t']) ? $_GET['t'] == 0 ? -1 : $_GET['t'] : -1;
$userNum = isset($_GET["num"]) && is_numeric($_GET['num']) ? abs($_GET['num']) : 100;
$userAirDate = isset($_GET["airdate"]) && is_numeric($_GET['airdate']) ? abs($_GET["airdate"]) : -1;
$page->smarty->assign(['dl' => isset($_GET['dl']) && $_GET['dl'] == '1' ? '1' : '0', 'del' => isset($_GET['del']) && $_GET['del'] == '1' ? '1' : '0', 'uid' => $uid, 'rsstoken' => $rssToken]);
if ($userCat == -3) {
$relData = $releases->getShowsRss($userNum, $uid, $page->users->getCategoryExclusion($uid), $userAirDate);
} elseif ($userCat == -4) {
$relData = $releases->getMyMoviesRss($userNum, $uid, $page->users->getCategoryExclusion($uid));
} else {
$relData = $releases->getRss(explode(',', $userCat), $userNum, $uid, $userRage, $userAnidb, $userAirDate);
}
$userfilter = -1;
if (isset($_GET["uFilter"])) {
$userfilter = $_GET["uFilter"];
}
if ($userfilter != -1) {
$catexclusions = $page->users->getCategoryExclusion($uid);
$page->title = "Search results:" . $userfilter;
$categoryId = array();
$categoryId[] = -1;
if (isset($_REQUEST['t'])) {
$categoryId = explode(',', $_REQUEST['t']);
}
示例2: elseif
if (isset($_GET["rage"])) {
$userrage = $_GET["rage"] == 0 ? -1 : $_GET["rage"] + 0;
} elseif (isset($_GET["anidb"])) {
$useranidb = $_GET["anidb"] == 0 ? -1 : $_GET["anidb"] + 0;
}
$usernum = 100;
if (isset($_GET["num"])) {
$usernum = $_GET["num"] + 0;
}
if (isset($_GET["del"]) && $_GET["del"] == "1") {
$page->smarty->assign("del", "1");
}
$userairdate = -1;
if (isset($_GET["airdate"])) {
$userairdate = $_GET["airdate"] + 0;
}
$page->smarty->assign('uid', $uid);
$page->smarty->assign('rsstoken', $rsstoken);
if ($usercat == -3) {
$catexclusions = $users->getCategoryExclusion($uid);
$reldata = $releases->getShowsRss($usernum, $uid, $catexclusions, $userairdate);
} elseif ($usercat == -4) {
$catexclusions = $users->getCategoryExclusion($uid);
$reldata = $releases->getMyMoviesRss($usernum, $uid, $catexclusions);
} else {
$reldata = $releases->getRss(explode(",", $usercat), $usernum, $uid, $userrage, $useranidb, $userairdate);
}
$page->smarty->assign('releases', $reldata);
header("Content-type: text/xml");
echo trim($page->smarty->fetch('rss.tpl'));
}