$PAGE_META["keywords"] = ""; $BREADCRUMB[] = array("url" => ENTRADA_URL . "/admin/users/manage/students?section=mspr&id=" . $PROXY_ID, "title" => "MSPR"); $BREADCRUMB[] = array("url" => ENTRADA_URL . "/admin/users/manage/students?section=mspr-revisions&id=" . $PROXY_ID, "title" => "MSPR Revisions"); $PROCESSED = array(); if (is_array($_SESSION["permissions"]) && ($total_permissions = count($_SESSION["permissions"]) > 1)) { $sidebar_html = "The following individual" . ($total_permissions - 1 != 1 ? "s have" : " has") . " given you access to their " . APPLICATION_NAME . " permission levels:"; $sidebar_html .= "<ul class=\"menu\">\n"; foreach ($_SESSION["permissions"] as $access_id => $result) { if ($access_id != $ENTRADA_USER->getDefaultAccessId()) { $sidebar_html .= "<li class=\"checkmark\"><strong>" . html_encode($result["fullname"]) . "</strong><br /><span class=\"content-small\">Exp: " . ($result["expires"] ? date("D M d/y", $result["expires"]) : "Unknown") . "</span></li>\n"; } } $sidebar_html .= "</ul>\n"; new_sidebar_item("Delegated Permissions", $sidebar_html, "delegated-permissions", "open"); } $mspr = MSPR::get($user); $revisions = $mspr->getMSPRRevisions(); $name = $user->getFirstname() . " " . $user->getLastname(); $number = $user->getNumber(); if ($revision = $_GET['revision']) { if ($type = $_GET['get']) { switch ($type) { case 'html': header('Content-type: text/html'); header('Content-Disposition: filename="MSPR - ' . $name . '(' . $number . ').html"'); break; case 'pdf': header('Content-type: application/pdf'); header('Content-Disposition: attachment; filename="MSPR - ' . $name . '(' . $number . ').pdf"'); break; default: