]> git.datanom.net - qtadmin.git/blobdiff - mail_report.php
prepare for wblistadm server
[qtadmin.git] / mail_report.php
index 21e826465d0a42d61bc9e219a045678deafed136..f8ff4ace84f19b03dae3a68acb31e090907984f8 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: index.php');
+            exit;
+        }
+
         $util->setHeading('Spam 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;
This page took 0.028162 seconds and 5 git commands to generate.