From: Andrew Dolgov Date: Thu, 12 Feb 2009 07:29:19 +0000 (+0300) Subject: reinstate redirecting login system (problems with Gears) X-Git-Tag: 1.3.1~32 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5fe4848b5a734bf48c118730af15d2497c1f3261;p=tt-rss.git reinstate redirecting login system (problems with Gears) --- diff --git a/functions.js b/functions.js index 896b6029..5c056489 100644 --- a/functions.js +++ b/functions.js @@ -1503,7 +1503,7 @@ function fatalError(code, msg, ext_info) { if (!ext_info) ext_info = "N/A"; if (code == 6) { - window.location.href = "tt-rss.php?login"; + window.location.href = "login.php"; } else if (code == 5) { window.location.href = "update.php"; } else { diff --git a/functions.php b/functions.php index 21355f78..6e386c50 100644 --- a/functions.php +++ b/functions.php @@ -1918,7 +1918,8 @@ } if (!$_SESSION["uid"] || !validate_session($link)) { - render_login_form($link, $mobile); + //render_login_form($link, $mobile); + header("Location: login.php"); exit; } else { /* bump login timestamp */ diff --git a/login.php b/login.php new file mode 100644 index 00000000..71f2e73f --- /dev/null +++ b/login.php @@ -0,0 +1,186 @@ + + + + + Tiny Tiny RSS : Login + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
+ Logo +
+ +
+ + + + + + + + + + + + + + + + + + +
">
">
+ +
+ + + + "/> + + + + +
+ +
+ +
+ +
+
+ Tiny Tiny RSS © 2005–2009 Andrew Dolgov +
+ +
+ + diff --git a/manifest.json b/manifest.json index 0d96199e..025ef889 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "betaManifestVersion": 1, - "version": "3", + "version": "4", "entries": [ { "url": "tt-rss.php"}, { "url": "tt-rss.css"},