From 42096f52025fed93924a54aada2c761a574029dd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 27 Mar 2006 05:31:17 +0100 Subject: more mobile prototyping (2) - add collapse support, etc --- mobile/tt-rss.php | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'mobile/tt-rss.php') diff --git a/mobile/tt-rss.php b/mobile/tt-rss.php index e6943d634..f5a184271 100644 --- a/mobile/tt-rss.php +++ b/mobile/tt-rss.php @@ -14,6 +14,24 @@ login_sequence($link); + /* perform various redirect-needing subops */ + + $subop = db_escape_string($_GET["subop"]); + $go = $_GET["go"]; + + if ($subop == "tc" && !$go) { + + $cat_id = db_escape_string($_GET["id"]); + + if ($cat_id != 0) { + db_query($link, "UPDATE ttrss_feed_categories SET + collapsed = NOT collapsed WHERE id = '$cat_id' AND owner_uid = " . + $_SESSION["uid"]); + header("Location: tt-rss.php"); + return; + } + } + ?> @@ -23,32 +41,14 @@ -
- -
-
- - -
-
- -
-