X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Faction-logout.php;h=17e3e35a66a94f065ef705da6adba96a17fcee37;hb=101e5f161c0c367c022c9288398226a57f3919d7;hp=56272aba32f6a787bf906a2992397ca83cf0cd51;hpb=12899fd86a97bac9e24bcb9277a801df1cc30c58;p=mailer.git
diff --git a/inc/modules/admin/action-logout.php b/inc/modules/admin/action-logout.php
index 56272aba32..17e3e35a66 100644
--- a/inc/modules/admin/action-logout.php
+++ b/inc/modules/admin/action-logout.php
@@ -1,7 +1,7 @@
");
+addYouAreHereLink('admin', __FILE__);
-if (!empty($_POST['no'])) {
+if (isPostRequestParameterSet('no')) {
// Do not logout now
- LOAD_URL("modules.php?module=admin");
-} elseif ((!empty($_POST['yes'])) && ($GLOBALS['action'] == "logout")) {
+ redirectToUrl('admin.php');
+} elseif ((isPostRequestParameterSet('yes')) && (getAction() == 'logout')) {
// Redirect to logout link
- LOAD_URL("modules.php?module=admin&logout=1");
-} else {
- // Load logout form template
- LOAD_TEMPLATE("admin_logout_form");
+ redirectToUrl('modules.php?module=admin&logout=1');
}
-//
+
+// Load logout form template
+loadTemplate('admin_logout_form');
+
+// [EOF]
?>