Beispiel #1
0
$userObject = UserObject::get_instance();
// Redirect Students (if not also staff), External Examiners and Invigilators to their own areas.
if ($userObject->has_role('Student') and !$userObject->has_role(array('Staff', 'Admin', 'SysAdmin'))) {
    header("location: ./paper/");
    exit;
} elseif ($userObject->has_role('External Examiner')) {
    header("location: ./reviews/");
    exit;
} elseif ($userObject->has_role('Invigilator')) {
    header("location: ./invigilator/");
    exit;
}
// If we're still here we should be staff
require_once './include/staff_auth.inc';
// Check for any news/announcements
$announcements = announcement_utils::get_staff_announcements($mysqli);
?>
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta http-equiv="content-type" content="text/html; charset=<?php 
echo $configObject->get('cfg_page_charset');
?>
" />

  <title>Centa<?php 
echo ' ' . $configObject->get('cfg_install_type');
?>
</title>