X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Faction-logout.php;h=7519849fbf97a3a14b3a471829fd808e36184119;hb=c5173c4d66be7ec72fbf8051a2097cbb377e87a0;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..7519849fbf 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]
?>