print "<param key=\"sync_counters\" value=\"1\"/>";
+ print "<param key=\"offline_enabled\" value=\"0\"/>";
+
$result = db_query($link, "SELECT COUNT(*) AS cf FROM
ttrss_feeds WHERE owner_uid = " . $_SESSION["uid"]);
if (!stage) stage = 0;
if (offline_mode) return;
+ if (getInitParam("offline_enabled") != "1") return;
debug("update_offline_data: stage " + stage);
}
}
+function enable_offline_reading() {
+ try {
+
+ if (getInitParam("offline_enabled") == "1") {
+ init_local_sync_data();
+ Element.show("restartOfflinePic");
+ window.setTimeout("update_offline_data(0)", 100);
+ }
+
+ } catch (e) {
+ exception_error("enable_offline_reading", e);
+ }
+}
+
function init_gears() {
try {
"DELETE FROM article_labels WHERE id = OLD.id; "+
"END; ");
- init_local_sync_data();
-
- Element.show("restartOfflinePic");
-
}
cache_expire();
resize_headlines();
- window.setTimeout("update_offline_data(0)", 100);
+ enable_offline_reading();
} catch (e) {
exception_error("init_second_stage", e);