From a598370dde80604280f1a9708f8427902f376209 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 24 Jun 2008 08:43:20 +0100 Subject: add low bandwidth mode (less automatic requests in the background) --- backend.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'backend.php') 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 ""; foreach ($topmost_article_ids as $id) { outputArticleXML($link, $id, $feed, false); -- cgit v1.2.3-54-g00ecf