diff options
author | Andrew Dolgov <[email protected]> | 2006-02-28 12:02:57 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-02-28 12:02:57 +0100 |
commit | 04269460058782141ef3bf6c5ad1f0ba5cad779d (patch) | |
tree | b26e7e527beabe8a12504a8abccd3bba548dd8f7 /backend.php | |
parent | c7a8abe600c1ff9b602e0a2e16de5ceade6ebf1b (diff) |
redirect to login page when session is expired
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 13 |
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; } |