当前位置: 首页>>代码示例>>PHP>>正文


PHP Releases::getRss方法代码示例

本文整理汇总了PHP中Releases::getRss方法的典型用法代码示例。如果您正苦于以下问题:PHP Releases::getRss方法的具体用法?PHP Releases::getRss怎么用?PHP Releases::getRss使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Releases的用法示例。


在下文中一共展示了Releases::getRss方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Releases

        $rsstoken = $page->userdata["rsstoken"];
    }
    //
    // valid or logged in user, get them the requested feed
    //
    if (isset($_GET["dl"]) && $_GET["dl"] == "1") {
        $page->smarty->assign("dl", "1");
    }
    $usercat = -1;
    if (isset($_GET["t"])) {
        $usercat = $_GET["t"] == 0 ? -1 : $_GET["t"] + 0;
    }
    $userrage = -1;
    if (isset($_GET["rage"])) {
        $userrage = $_GET["rage"] == 0 ? -1 : $_GET["rage"] + 0;
    }
    $usernum = 100;
    if (isset($_GET["num"])) {
        $usernum = $_GET["num"] + 0;
    }
    if (isset($_GET["del"]) && $_GET["del"] == "1") {
        $page->smarty->assign("del", "1");
    }
    $page->smarty->assign('uid', $uid);
    $page->smarty->assign('rsstoken', $rsstoken);
    $releases = new Releases();
    $reldata = $releases->getRss($usercat, $usernum, $uid, $userrage);
    $page->smarty->assign('releases', $reldata);
    header("Content-type: text/xml");
    echo trim($page->smarty->fetch('rss.tpl'));
}
开发者ID:nubzzz,项目名称:newznab,代码行数:31,代码来源:rss.php

示例2: elseif

 $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']);
     }
     $relData = $releases->search($userfilter, -1, -1, -1, -1, -1, -1, 0, 0, -1, -1, 0, 250, 'posted_desc', -1, $catexclusions, "basic", $categoryId);
 }
开发者ID:RickDB,项目名称:newznab-tmux,代码行数:31,代码来源:rss.php

示例3: 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'));
}
开发者ID:ehsanguru,项目名称:nnplus,代码行数:31,代码来源:rss.php


注:本文中的Releases::getRss方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。