]> git.datanom.net - qtadmin.git/blobdiff - message_view.php
First upload of wblist page
[qtadmin.git] / message_view.php
index 5228ebb06416115e4fe390d0f4bc22ea49aca6aa..93cc33946eda98d29818bf8560618b4e9d30a6eb 100644 (file)
         $id = $_GET['id'];
         $id = urldecode($id);
 
+        $mail = unserialize($_SESSION['mailInfo'][$id]);
+
+        if (! is_object($mail) || false == $util->authorized($mail->recipient)) {
+            header('Location: qtadmin.php');
+            exit;
+        }
+
         $util->setHeading("Message ID : $id");
         echo $util->getHeader();
         echo $util->getHeading();
 
-        $mail = unserialize($_SESSION['mailInfo'][$id]);
-
         $row = $DB->getMail($id);
         $string = $row->mail_text;
         $sa_tests = null;
@@ -35,7 +40,7 @@
               onclick="javascript: history.back();"/></td>';
         echo '</tr></table>';
 
-        echo '<table><tr>';
+        echo '<table>';
         $from = $headers['from'];
         $from = str_replace("<", "&lt;", $from);
         $from = str_replace(">", "&gt;", $from);
@@ -90,7 +95,7 @@
         echo '</td></tr></table>';
         echo $util->getFooter();
     } else if ($loggedIn) {
-        header('Location: index.php');
+        header('Location: qtadmin.php');
     } else {
         header('Location: auth.php');
     }
This page took 0.033493 seconds and 5 git commands to generate.