]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/action-logout.php
More typos fixed, thanks to Profi-Concept
[mailer.git] / inc / modules / admin / action-logout.php
index 2658ae6291455408a8c7b07397965b5020fc5016..82b4aeacda42f508ce2eb1889759268c14429198 100644 (file)
@@ -38,17 +38,18 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
 
 if (!empty($_POST['no'])) {
        // Do not logout now
-       LOAD_URL("modules.php?module=admin");
+       LOAD_URL("admin.php");
 } elseif ((!empty($_POST['yes'])) && ($GLOBALS['action'] == "logout")) {
        // Redirect to logout link
        LOAD_URL("modules.php?module=admin&logout=1");
-} else {
-       // Load logout form template
-       LOAD_TEMPLATE("admin_logout_form");
 }
+
+// Load logout form template
+LOAD_TEMPLATE("admin_logout_form");
+
 //
 ?>