]> git.datanom.net - qtadmin.git/blobdiff - show_headers.php
More functions for wblist page
[qtadmin.git] / show_headers.php
index 7cee6dc4a74e44fae7f7faff8976db0f918eff4e..34ca0657dfdc4858d0d7e4d065333ad4bad23f98 100644 (file)
@@ -8,13 +8,18 @@
     $util = new Utils;
     $loggedIn = $util->isLoggedIn();
     if ($loggedIn && isset($_GET['id'])) {
+        $id = $_GET['id'];
+        $mail = unserialize($_SESSION['mailInfo'][$id]);
+
+        if (! is_object($mail) || false == $util->authorized($mail->recipient)) {
+            header('Location: qtadmin.php');
+            exit;
+        }
+
         $util->setHeading('Full Headers Report');
         echo $util->getHeader();
         echo $util->getHeading();
 
-        $id = $_GET['id'];
-        $mail = unserialize($_SESSION['mailInfo'][$id]);
-
         $row = $DB->getMail($id);
         $string = $row->mail_text;
         $sa_tests = null;
@@ -51,7 +56,7 @@
         echo $output;
         echo $util->getFooter();
     } else if ($loggedIn) {
-        header('Location: index.php');
+        header('Location: qtadmin.php');
     } else {
         header('Location: auth.php');
     }
This page took 0.169178 seconds and 5 git commands to generate.