X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Faction-logout.php;h=17e3e35a66a94f065ef705da6adba96a17fcee37;hb=8d0ed5ed9a9ca0e07b9582f2311b44bdcc5a95ea;hp=1fefc2a0aff9a099cea42160e48e89fc29ecb510;hpb=d0ab0382dd73638f0bc13a1a3d6f117ec11a203e;p=mailer.git
diff --git a/inc/modules/admin/action-logout.php b/inc/modules/admin/action-logout.php
index 1fefc2a0af..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(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(URL."/modules.php?module=admin&logout=1");
+ redirectToUrl('modules.php?module=admin&logout=1');
}
- else
-{
- // Load logout form template
- LOAD_TEMPLATE("admin_logout_form");
-}
-//
+
+// Load logout form template
+loadTemplate('admin_logout_form');
+
+// [EOF]
?>