From 510ac75fa088fd69e2311c82c375de50e13b39e4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 5 Dec 2007 07:28:19 +0100 Subject: mobile: add support for publishing articles --- mobile/tt-rss.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mobile/tt-rss.php') diff --git a/mobile/tt-rss.php b/mobile/tt-rss.php index 1b3b0763f..0793ce497 100644 --- a/mobile/tt-rss.php +++ b/mobile/tt-rss.php @@ -59,6 +59,17 @@ header("Location: tt-rss.php?$query_string"); return; } + + $tp_id = db_escape_string($_GET["tp"]); + + if ($go == "vf" && $tp_id) { + $result = db_query($link, "UPDATE ttrss_user_entries SET published = NOT published + WHERE ref_id = '$tp_id' AND owner_uid = " . $_SESSION["uid"]); + $query_string = preg_replace("/&tp=[0-9]*/", "", $_SERVER["QUERY_STRING"]); + header("Location: tt-rss.php?$query_string"); + return; + } + ?> -- cgit v1.2.3