X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/60aad80e946dc086047ad7871f4e6d0db41e4777..7047d03c169f9486864756af72d88aed49bcc40d:/index.php diff --git a/index.php b/index.php index 84f6782..0566cce 100644 --- a/index.php +++ b/index.php @@ -1,110 +1,19 @@ 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'); + $util->setHeading('WB List and 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 ''; echo $util->getFooter(); } else { header('Location: auth.php'); } -?> +?> \ No newline at end of file