From: Andrew Dolgov Date: Fri, 26 Aug 2005 07:19:31 +0000 (+0100) Subject: preferences code cleanups X-Git-Tag: 1.0~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e9c54861f4a1f8a305d58f60c2b5e02904e2dd7d;p=tt-rss.git preferences code cleanups --- diff --git a/backend.php b/backend.php index 5854a421..c38793b5 100644 --- a/backend.php +++ b/backend.php @@ -433,35 +433,6 @@ $subop = $_GET["subop"]; -/* if ($subop == "old_edit") { - - $feed_id = $_GET["id"]; - - $result = pg_query("SELECT title,feed_url - FROM ttrss_feeds WHERE id = '$feed_id'"); - - $fedit_link = pg_fetch_result($result, 0, "feed_url"); - $fedit_title = pg_fetch_result($result, 0, "title"); - - print " - - - -
Title:
Link:
- Cancel - Save -
"; - - } else { - - print " - - -
- Add feed
"; - - } */ - if ($subop == "editSave") { $feed_title = pg_escape_string($_GET["t"]); $feed_link = pg_escape_string($_GET["l"]); @@ -500,7 +471,8 @@ $result = pg_query( "INSERT INTO ttrss_feeds (feed_url,title) VALUES ('$feed_link', '')"); - $result = pg_query("SELECT id FROM ttrss_feeds WHERE feed_url = '$feed_link'"); + $result = pg_query( + "SELECT id FROM ttrss_feeds WHERE feed_url = '$feed_link'"); $feed_id = pg_fetch_result($result, 0, "id"); @@ -559,14 +531,15 @@ } else if ($feed_id != $edit_feed_id) { - print ""; + print ""; print "".$line["title"].""; print "".$line["feed_url"].""; } else { - print ""; + print ""; print ""; print ""; @@ -590,20 +563,20 @@ Save"; } else { -// Edit  - -// Refresh"; - print " Selection:  + Edit  Remove  Mark as read  Mark as unread"; + href=\"javascript:unreadSelectedFeeds()\">Mark as unread  + Page: + Refresh"; + } diff --git a/prefs.php b/prefs.php index 8e63f99b..707d8291 100644 --- a/prefs.php +++ b/prefs.php @@ -40,18 +40,6 @@
 
- -