From aa2122d46f61efcb4c2c5cf6c76928890278cce1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 31 Oct 2006 09:37:40 +0100 Subject: [PATCH] add nicer interface when subscribing from external source (for ff 2.0) --- modules/pref-feeds.php | 25 +++++++++++++++++++++++++ quicksub.css | 21 +++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 quicksub.css diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 4070f431..af8fd093 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -426,6 +426,19 @@ $feed_url = db_escape_string(trim($_GET["feed_url"])); $cat_id = db_escape_string($_GET["cat_id"]); + $p_from = db_escape_string($_GET["from"]); + + if ($p_from) { + print " + + Tiny Tiny RSS - Subscribe to feed... + + + + \"Tiny +

Subscribe to feed...

"; + } if (subscribe_to_feed($link, $feed_url, $cat_id)) { print "Added feed."; @@ -434,6 +447,18 @@ Feed $feed_url already exists in the database. "; } + + if ($p_from) { + $tt_uri = 'http://' . $_SERVER['SERVER_NAME'] . + preg_replace('/backend\.php.*$/', + 'tt-rss.php', $_SERVER["REQUEST_URI"]); + + print "

Return to Tiny Tiny RSS or + close this window.

"; + + print ""; + return; + } } } diff --git a/quicksub.css b/quicksub.css new file mode 100644 index 00000000..931371dc --- /dev/null +++ b/quicksub.css @@ -0,0 +1,21 @@ +body { + margin : 1em; +} + +h1 { + font-size : 14pt; + font-weight : bold; +} + +a { + color : #4684ff; + text-decoration : none; +} + +a:hover { + color : black; +} + +img.logo { + float : right; +} -- 2.39.5