X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Faction-logout.php;h=17e3e35a66a94f065ef705da6adba96a17fcee37;hb=cc59ea1cce3e0fafc2cc6c9e36142698cf2b58ef;hp=e389d58b88a56d01fbc2b563bc2d7f8cadc6f486;hpb=4e56971aed3008cd33f946c17012d0851ac3a18a;p=mailer.git
diff --git a/inc/modules/admin/action-logout.php b/inc/modules/admin/action-logout.php
index e389d58b88..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]
?>