X-Git-Url: https://git.cweiske.de/tt-rss-subtome.git/blobdiff_plain/87f0b31d2f7b375fb6754893d41cde468a88c8e1..3f8c47816a4a69e17157a0c60a9867eb33570eda:/init.php diff --git a/init.php b/init.php index 4f624ff..2ccb4e4 100644 --- a/init.php +++ b/init.php @@ -15,10 +15,10 @@ class SubToMe extends Plugin public function about() { return array( - 0.1, - 'Add TT-RSS to SubToMe.com', + 0.2, + 'Add Tiny Tiny RSS to SubToMe.com', 'cweiske', - false//not a system plugin + false ); } @@ -32,55 +32,25 @@ class SubToMe extends Plugin if ($args != "prefPrefs") { return; } + $name = 'Tiny Tiny RSS @ ' + . parse_url(get_self_url_prefix(), PHP_URL_HOST); $ttSubscribeUrl = get_self_url_prefix() . '/public.php?op=subscribe&feed_url={url}'; - $regUrl = 'https://www.subtome.com/register-no-ui.html' - . '?name=##NAME##' + . '?name=' . urlencode($name) . '&url=' . urlencode($ttSubscribeUrl); + $hRegUrl = htmlspecialchars($regUrl); + $jRegUrl = json_encode($regUrl); echo << -
- - - - - - - - -

Configure SubToMe

- - - -
-

- - -

-
- -

Testing

+ +

+ Tiny Tiny RSS has been added to subtome.com automatically + by visiting the Tiny Tiny RSS preferences. +

Try the "Subscribe" button on blog.superfeedr.com.