X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=update.php;h=8a5512efbbf3840e476b00e85ea4860aeb0761d5;hb=88e8fb3a7132d1321ab65b66a19a67df890c402d;hp=fa322d3dc5c0a40abdb0caf76747d1bf39067007;hpb=5439d333ec92fd91a473611b8ab88c14da8312ad;p=tt-rss.git
diff --git a/update.php b/update.php
index fa322d3d..8a5512ef 100755
--- a/update.php
+++ b/update.php
@@ -1,7 +1,7 @@
#!/usr/bin/env php
+
+ Tiny Tiny RSS data update script.
+
+
+
+
+
+
+
+
+
+
+
+ $line["reg_exp"],
+ "feed_id" => $feed_id,
+ "filter_type" => $line["filter_type"])));
+
+ $filter["action"] = array(
+ json_encode(array(
+ "action_id" => $line["action_id"],
+ "action_param_label" => $line["action_param"],
+ "action_param" => $line["action_param"])));
+
+ // Oh god it's full of hacks
+
+ $_REQUEST = $filter;
+ $_SESSION["uid"] = $owner_uid;
+
+ $filters = new Pref_Filters($link, $_REQUEST);
+ $filters->add();
+ }
+ }
+
+ }
+
+ if (in_array("-force-update", $op)) {
+ _debug("marking all feeds as needing update...");
+
+ db_query($link, "UPDATE ttrss_feeds SET last_update_started = '1970-01-01',
+ last_updated = '1970-01-01'");
+ }
+
db_close($link);
if ($lock_handle != false) {
fclose($lock_handle);
}
- unlink(LOCK_DIRECTORY . "/$lock_filename");
+ if (file_exists(LOCK_DIRECTORY . "/$lock_filename"))
+ unlink(LOCK_DIRECTORY . "/$lock_filename");
?>