} $display_language = get_display_language($euid); require_once "./locale/{$display_language}/display.php"; require_once "./locale/{$display_language}/db.php"; require_once "./locale/{$display_language}/mime.php"; require_once "./locale/{$display_language}/reportspam.php"; require_once "./locale/{$display_language}/quarantine.php"; require_once "./locale/{$display_language}/viewmail.php"; require_once "./locale/{$display_language}/listcache.php"; require_once "smarty.php"; //print_r($_POST); //print_r($_GET); // exit(); // Admins (including the superadmin) should not be looking at // other people's mail! if (!ok_to_impersonate($euid, $uid)) { header("Location: stats.php" . $sid); exit; } if (isset($_GET['mail_id'])) { $id = intval($_GET["mail_id"]); } elseif (isset($_GET["id"])) { $id = intval($_GET["id"]); } else { header("Location: list-cache.php" . $msid . "cache_type=ham"); } if (isset($_GET["cache_type"])) { $cache_type = trim($_GET["cache_type"]); } else { header("Location: list-cache.php" . $msid . "cache_type=ham"); }
$sth->free(); if ($enable_charts) { $select = "SELECT charts FROM maia_users WHERE id=?"; $sth = $dbh->prepare($select); $res = $sth->execute($euid); if (PEAR::isError($sth)) { die($sth->getMessage()); } if ($row = $res->fetchrow()) { $enable_charts = $row["charts"] == 'Y'; } $sth->free(); } update_mail_stats($id, "suspected_ham"); update_mail_stats($id, "suspected_spam"); $showmail = ok_to_impersonate($euid, $uid); if ($id > 0) { $header = sprintf($lang['header_user'], get_user_name($id)); } else { $header = $lang['header_systemwide']; } $smarty->assign("header", $header); $smarty->assign("currency_label", $currency_label); $smarty->assign("is_a_visitor", false); $smarty->assign("msid", $msid); $smarty->assign("sid", $sid); $smarty->assign("enable_virus_scanning", $enable_virus_scanning); $smarty->assign("enable_spam_filtering", $enable_spam_filtering); $smarty->assign("enable_charts", $enable_charts); // $smarty->assign("showmail", $showmail); list($ppv_pct, $npv_pct, $sensitivity_pct, $specificity_pct, $efficiency_pct, $fp_pct, $fn_pct) = get_filter_stats($id);