generated feeds: add offset=
This commit is contained in:
parent
835fb294a6
commit
ce5652160e
|
@ -2,7 +2,8 @@
|
||||||
class Handler_Public extends Handler {
|
class Handler_Public extends Handler {
|
||||||
|
|
||||||
private function generate_syndicated_feed($owner_uid, $feed, $is_cat,
|
private function generate_syndicated_feed($owner_uid, $feed, $is_cat,
|
||||||
$limit, $search, $search_mode, $match_on, $view_mode = false, $format = 'atom') {
|
$limit, $offset, $search, $search_mode, $match_on,
|
||||||
|
$view_mode = false, $format = 'atom') {
|
||||||
|
|
||||||
require_once "lib/MiniTemplator.class.php";
|
require_once "lib/MiniTemplator.class.php";
|
||||||
|
|
||||||
|
@ -21,7 +22,7 @@ class Handler_Public extends Handler {
|
||||||
|
|
||||||
$qfh_ret = queryFeedHeadlines($this->link, $feed,
|
$qfh_ret = queryFeedHeadlines($this->link, $feed,
|
||||||
$limit, $view_mode, $is_cat, $search, $search_mode,
|
$limit, $view_mode, $is_cat, $search, $search_mode,
|
||||||
$match_on, "$date_sort_field DESC", 0, $owner_uid);
|
$match_on, "$date_sort_field DESC", $offset, $owner_uid);
|
||||||
|
|
||||||
$result = $qfh_ret[0];
|
$result = $qfh_ret[0];
|
||||||
$feed_title = htmlspecialchars($qfh_ret[1]);
|
$feed_title = htmlspecialchars($qfh_ret[1]);
|
||||||
|
@ -333,6 +334,7 @@ class Handler_Public extends Handler {
|
||||||
$key = db_escape_string($_REQUEST["key"]);
|
$key = db_escape_string($_REQUEST["key"]);
|
||||||
$is_cat = $_REQUEST["is_cat"] != false;
|
$is_cat = $_REQUEST["is_cat"] != false;
|
||||||
$limit = (int)db_escape_string($_REQUEST["limit"]);
|
$limit = (int)db_escape_string($_REQUEST["limit"]);
|
||||||
|
$offset = (int)db_escape_string($_REQUEST["offset"]);
|
||||||
|
|
||||||
$search = db_escape_string($_REQUEST["q"]);
|
$search = db_escape_string($_REQUEST["q"]);
|
||||||
$match_on = db_escape_string($_REQUEST["m"]);
|
$match_on = db_escape_string($_REQUEST["m"]);
|
||||||
|
@ -359,7 +361,7 @@ class Handler_Public extends Handler {
|
||||||
|
|
||||||
if ($owner_id) {
|
if ($owner_id) {
|
||||||
$this->generate_syndicated_feed($owner_id, $feed, $is_cat, $limit,
|
$this->generate_syndicated_feed($owner_id, $feed, $is_cat, $limit,
|
||||||
$search, $search_mode, $match_on, $view_mode, $format);
|
$offset, $search, $search_mode, $match_on, $view_mode, $format);
|
||||||
} else {
|
} else {
|
||||||
header('HTTP/1.1 403 Forbidden');
|
header('HTTP/1.1 403 Forbidden');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue