redirect to login page when session is expired

master
Andrew Dolgov 19 years ago
parent c7a8abe600
commit 0426946005

@ -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;
}

Loading…
Cancel
Save