diff --git a/fever/index.php b/fever/index.php index 9560084..de8a0be 100755 --- a/fever/index.php +++ b/fever/index.php @@ -1,10 +1,11 @@ before($method)) { if (method_exists($handler, 'index')) { $handler->index($method); } $handler->after(); } - + ob_end_flush(); -?> \ No newline at end of file + +?> diff --git a/fever/init.php b/fever/init.php index 4bf7e59..126abdf 100755 --- a/fever/init.php +++ b/fever/init.php @@ -1,11 +1,12 @@ " . __("Fever Emulation") . ""; print "

" . __("Since the Fever API uses a different authentication mechanism to Tiny Tiny RSS, you must set a separate password to login. This password may be the same as your Tiny Tiny RSS password.") . "

"; - + print "

" . __("Set a password to login with Fever:") . "

"; print "
"; @@ -52,27 +53,27 @@ class Fever extends Plugin { print ""; print ""; print "
"; - + print "

" . __("To login with the Fever API, set your server details in your favourite RSS application to: ") . ($_SERVER["HTTPS"] == "on" ? "https://" : "http://") . dirname($_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]) . "/plugins/fever/" . "

"; print "

" . __("Additional details can be found at ") . "http://www.feedafever.com/api

"; - + print "

" . __("Note: Due to the limitations of the API and some RSS clients (for example, Reeder on iOS), some features are unavailable: \"Special\" Feeds (Published / Tags / Labels / Fresh / Recent), Nested Categories (hierarchy is flattened)") . "

"; print ""; } - + function save() { if (isset($_POST["password"]) && isset($_SESSION["uid"])) { $result = db_query("SELECT login FROM ttrss_users WHERE id = '" . db_escape_string($_SESSION["uid"]) . "'"); - if ($line = db_fetch_assoc($result)) + if ($line = db_fetch_assoc($result)) { $password = md5($line["login"] . ":" . db_escape_string($_POST["password"])); $this->host->set($this, "password", $password); echo __("Password saved."); } - } + } } function after() { @@ -83,4 +84,5 @@ class Fever extends Plugin { return 2; } } + ?>