header('Location: point-of-contact.php?student_num=' . $_GET['student_num']); exit; } header('Location: point-of-contact.php'); exit; } elseif ($_GET['page'] === "delete-incident-report") { $ir->deleteIncidentReport($_GET['ir_id']); $loggers['audit']->info("Incident report {$_GET['ir_id']} deleted"); if (ctype_digit($_GET['student_num'])) { header('Location: point-of-contact.php?student_num=' . $_GET['student_num']); exit; } header('Location: point-of-contact.php'); exit; } elseif ($_GET['page'] === "delete-file") { $poc->deletePointOfContactFile($_POST['id']); $loggers['audit']->info("Specialist point of contact file {$_POST['id']} deleted"); } elseif ($_GET['page'] === "delete-ir-file") { $ir->deleteIncidentReportFile($_POST['id']); $loggers['audit']->info("Incident report file {$_POST['id']} deleted"); } else { require_once FS_PHP . '/error.php'; } /** * View rendering */ if (isset($render) && $render) { $follow_up_pending_count = $follow->fetchFollowUpsCountEmployee($SESSION->user_id); $l10n->addResource(__DIR__ . '/l10n/menu.json'); require FS_PHP . '/header.php'; require FS_PHP . '/nav.php';