X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/bb06f1727e40a566d487b1b5ede2794d292b27ad..a81047876c6c2e8261c53403e692b8acf7226b99:/index.php diff --git a/index.php b/index.php index 6852624..f9a4eb4 100644 --- a/index.php +++ b/index.php @@ -1,101 +1,29 @@ root . 'lib/db_factory.php'; require_once $CFG->root . 'lib/utils.inc.php'; - $util = Utils::getInstance(); - unset($_SESSION['mailInfo']); + $util = new Utils; 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 "{$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 "
---|---|---|---|---|---|
$received | ". - "$quaratinefor | $sender | $recipient | ". - "$subject | $action |
$first$prev Showing page $pageNum of - $maxPage pages $next$last
"; - + echo ""; echo $util->getFooter(); } else { header('Location: auth.php'); } ?> + + + + +