]> git.wh0rd.org - tt-rss.git/blobdiff - functions.php
add low bandwidth mode (less automatic requests in the background)
[tt-rss.git] / functions.php
index b373ca91c9912c1b581bccfce68bab8331187c31..04ddaadbbdf7c79155feafb1127a53f6801e6531 100644 (file)
                                        $_POST["password"] = "";
 
                                        $_SESSION["language"] = $_POST["language"];
+                                       $_SESSION["bw_limit"] = !!$_POST["bw_limit"];
 
                                        header("Location: " . $_SERVER["REQUEST_URI"]);
                                        exit;
                print "<param key=\"hide_feedlist\" value=\"" .
                        (int) get_pref($link, "HIDE_FEEDLIST") . "\"/>";
 
+               print "<param key=\"bw_limit\" value=\"".
+                       (int) $_SESSION["bw_limit"]."\"/>";
+
                print "</init-params>";
        }