diff options
author | Andrew Dolgov <[email protected]> | 2008-06-24 08:43:20 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-06-24 08:43:20 +0100 |
commit | a598370dde80604280f1a9708f8427902f376209 (patch) | |
tree | 351e7617d5245abfc672c3fc0895c0e054ba232f /backend.php | |
parent | d16d57ff2b8742c51516fefccc8495260d4738c7 (diff) |
add low bandwidth mode (less automatic requests in the background)
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/backend.php b/backend.php index 97ce7b11f..fe54e36a7 100644 --- a/backend.php +++ b/backend.php @@ -206,9 +206,11 @@ catchupArticleById($link, $id, 0); } - foreach ($cids as $cid) { - if ($cid) { - outputArticleXML($link, $cid, $feed_id, false); + if (!$_SESSION["bw_limit"]) { + foreach ($cids as $cid) { + if ($cid) { + outputArticleXML($link, $cid, $feed_id, false); + } } } @@ -280,7 +282,7 @@ if ($_GET["debug"]) $timing_info = print_checkpoint("10", $timing_info); - if (is_array($topmost_article_ids) && !get_pref($link, 'COMBINED_DISPLAY_MODE')) { + if (is_array($topmost_article_ids) && !get_pref($link, 'COMBINED_DISPLAY_MODE') && !$_SESSION["bw_limit"]) { print "<articles>"; foreach ($topmost_article_ids as $id) { outputArticleXML($link, $id, $feed, false); |