X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/8701688ce44b9ba12b61ec1d3c4d9c5ed2c19f0e..a81047876c6c2e8261c53403e692b8acf7226b99:/qtadmin.php diff --git a/qtadmin.php b/qtadmin.php new file mode 100644 index 0000000..ec831b0 --- /dev/null +++ b/qtadmin.php @@ -0,0 +1,114 @@ +root . 'lib/db_factory.php'; + require_once $CFG->root . 'lib/utils.inc.php'; + + $util = new Utils; + unset($_SESSION['mailInfo']); + + if ($util->isLoggedIn()) { + if (isset($_GET['rowsperpage'])) { + $rowsPerPage = $_GET['rowsperpage']; + } else { + $rowsPerPage = 20; + } + + $pageNum = 1; + if (isset($_GET['page'])) { + $pageNum = $_GET['page']; + } + + $offset = ($pageNum - 1) * $rowsPerPage; + + $util->setHeading('Quarantine Administration'); + echo $util->getHeader(); + echo $util->getHeading(); + + echo "Rows per page {$util->getUser()} + Logout"; + $which = ($util->isAdmin() == true) ? 'all' : $util->getUser(); + $rows = $DB->getQMails($offset, $rowsPerPage, $which); + $numrows = $DB->numRows(); + echo "$numrows quarantined mail(s)"; + echo "
Received | Cause | "; + echo "Sender | Recipient | Subject | Action | "; + echo ""; + echo " |
---|---|---|---|---|---|---|
$received | ". + "$quaratinefor | $sender | $recipient | ". + "$subject | $action | $checkbox |
$first$prev Showing page $pageNum of + $maxPage pages $next$last
"; + + echo $util->getFooter(); + } else { + header('Location: auth.php'); + } +?>