示例#1
0
 }
 // 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
0
文件: rss.php 项目: ehsanguru/nnplus
    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'));
}