X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/56c841014682b373b486d3627ce1ea1f37403ff1..af31b70b41a9582334862ebdd1abe54d3fc0d685:/show_headers.php diff --git a/show_headers.php b/show_headers.php index 7cee6dc..0ff9a6e 100644 --- a/show_headers.php +++ b/show_headers.php @@ -8,13 +8,18 @@ $util = new Utils; $loggedIn = $util->isLoggedIn(); if ($loggedIn && isset($_GET['id'])) { + $id = $_GET['id']; + $mail = unserialize($_SESSION['mailInfo'][$id]); + + if (false == $util->authorized($mail->recipient)) { + header('Location: index.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;