From 5fe4848b5a734bf48c118730af15d2497c1f3261 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 12 Feb 2009 10:29:19 +0300 Subject: [PATCH] reinstate redirecting login system (problems with Gears) --- functions.js | 2 +- functions.php | 3 +- login.php | 186 ++++++++++++++++++++++++++++++++++++++++++++++++++ manifest.json | 2 +- 4 files changed, 190 insertions(+), 3 deletions(-) create mode 100644 login.php diff --git a/functions.js b/functions.js index 896b6029b..5c0564897 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 21355f782..6e386c508 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 000000000..71f2e73f3 --- /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 0d96199e1..025ef889c 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"},