mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 03:14:52 +00:00
Update admin, user, guest and client post to use new redirect function
This commit is contained in:
@@ -37,7 +37,7 @@ if (isset($_POST['add_certificate'])) {
|
||||
|
||||
$_SESSION['alert_message'] = "Certificate <strong>$name</strong> created";
|
||||
|
||||
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
||||
redirect();
|
||||
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ if (isset($_POST['edit_certificate'])) {
|
||||
|
||||
$_SESSION['alert_message'] = "Certificate <strong>$name</strong> updated";
|
||||
|
||||
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
||||
redirect();
|
||||
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ if (isset($_GET['archive_certificate'])) {
|
||||
$_SESSION['alert_type'] = "error";
|
||||
$_SESSION['alert_message'] = "Certificate <strong>$certificate_name</strong> archived";
|
||||
|
||||
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
||||
redirect();
|
||||
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ if (isset($_GET['unarchive_certificate'])) {
|
||||
|
||||
$_SESSION['alert_message'] = "Certificate <strong>$certificate_name</strong> restored";
|
||||
|
||||
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
||||
redirect();
|
||||
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ if (isset($_GET['delete_certificate'])) {
|
||||
$_SESSION['alert_type'] = "error";
|
||||
$_SESSION['alert_message'] = "Certificate <strong>$certificate_name</strong> deleted";
|
||||
|
||||
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
||||
redirect();
|
||||
|
||||
}
|
||||
|
||||
@@ -213,7 +213,7 @@ if (isset($_POST['bulk_delete_certificates'])) {
|
||||
|
||||
}
|
||||
|
||||
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
||||
redirect();
|
||||
}
|
||||
|
||||
if (isset($_POST['export_certificates_csv'])) {
|
||||
|
||||
Reference in New Issue
Block a user