From 6906f145918586c2f2c453d83857f2442df9b94a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 Jan 2009 17:30:37 +0100 Subject: pref-feeds: rework external subscription notice --- modules/pref-feeds.php | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'modules/pref-feeds.php') diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index aae7ab453..bc8171c6d 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -848,14 +848,13 @@ if ($p_from != 'tt-rss') { print " - Tiny Tiny RSS - Subscribe to feed... - + Tiny Tiny RSS + - \"Tiny -

Subscribe to feed...

-
"; +

Subscribe to feed...

"; } if (subscribe_to_feed($link, $feed_url, $cat_id, $auth_login, $auth_pass)) { @@ -870,21 +869,28 @@ $tp_uri = ($_SERVER['HTTPS'] != "on" ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . preg_replace('/backend\.php.*$/', 'prefs.php', $_SERVER["REQUEST_URI"]); - print "

Return to Tiny Tiny RSS |"; - $result = db_query($link, "SELECT id FROM ttrss_feeds WHERE feed_url = '$feed_url' AND owner_uid = " . $_SESSION["uid"]); $feed_id = db_fetch_result($result, 0, "id"); + print "

"; + if ($feed_id) { - print " - Edit subscription options | "; + print "

+ + + + +
"; } - print "Close this window.

"; + print "
+ +

"; - print "
"; + print ""; return; } -- cgit v1.2.3