redirect to login page when session is expired

This commit is contained in:
Andrew Dolgov 2006-02-28 12:02:57 +01:00
parent c7a8abe600
commit 0426946005
1 changed files with 13 additions and 0 deletions

View File

@ -23,6 +23,19 @@
if ($op == "rpc") { if ($op == "rpc") {
print "<error error-code=\"6\"/>"; 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; exit;
} }