summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-02-28 12:02:57 +0100
committerAndrew Dolgov <[email protected]>2006-02-28 12:02:57 +0100
commit04269460058782141ef3bf6c5ad1f0ba5cad779d (patch)
treeb26e7e527beabe8a12504a8abccd3bba548dd8f7 /backend.php
parentc7a8abe600c1ff9b602e0a2e16de5ceade6ebf1b (diff)
redirect to login page when session is expired
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index 95e461c2f..2fd8fe22d 100644
--- a/backend.php
+++ b/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;
}