]> git.wh0rd.org Git - tt-rss.git/commitdiff
redirect to login page when session is expired
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 28 Feb 2006 11:02:57 +0000 (12:02 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 28 Feb 2006 11:02:57 +0000 (12:02 +0100)
backend.php

index 95e461c2fb0c44c24eef16ed4ef01ff8f5e3f750..2fd8fe22dd379fcfac86e5bfe343c484d6b5b20e 100644 (file)
 
                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;
        }