]> git.datanom.net - qtadmin.git/blobdiff - show_headers.php
First upload of wblist page
[qtadmin.git] / show_headers.php
index 0ff9a6e02f805b418f063d4c6ae55c6f74eef16e..34ca0657dfdc4858d0d7e4d065333ad4bad23f98 100644 (file)
@@ -11,8 +11,8 @@
         $id = $_GET['id'];
         $mail = unserialize($_SESSION['mailInfo'][$id]);
 
         $id = $_GET['id'];
         $mail = unserialize($_SESSION['mailInfo'][$id]);
 
-        if (false == $util->authorized($mail->recipient)) {
-            header('Location: index.php');
+        if (! is_object($mail) || false == $util->authorized($mail->recipient)) {
+            header('Location: qtadmin.php');
             exit;
         }
 
             exit;
         }
 
@@ -56,7 +56,7 @@
         echo $output;
         echo $util->getFooter();
     } else if ($loggedIn) {
         echo $output;
         echo $util->getFooter();
     } else if ($loggedIn) {
-        header('Location: index.php');
+        header('Location: qtadmin.php');
     } else {
         header('Location: auth.php');
     }
     } else {
         header('Location: auth.php');
     }
This page took 0.037957 seconds and 5 git commands to generate.