mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-25 11:41:29 +00:00
redirect to login page when session is expired
This commit is contained in:
13
backend.php
13
backend.php
@@ -23,6 +23,19 @@
|
||||
|
||||
if ($op == "rpc") {
|
||||
print "<error error-code=\"6\"/>";
|
||||
} else {
|
||||
print "
|
||||
<html><body>
|
||||
<p>Error: Not logged in.</p>
|
||||
<script type=\"text/javascript\">
|
||||
if (parent.window != 'undefined') {
|
||||
parent.window.location = \"login.php\";
|
||||
} else {
|
||||
window.location = \"login.php\";
|
||||
}
|
||||
</script>
|
||||
</body></html>
|
||||
";
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user