From: Roland Häder <roland@mxchange.org>
Date: Fri, 6 Mar 2009 18:29:28 +0000 (+0000)
Subject: Obsolete action=login removed from URLs
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d26e8ed6303691be6c5a0eff216494bdd6cfbe8d;p=mailer.git

Obsolete action=login removed from URLs
---

diff --git a/inc/modules/admin.php b/inc/modules/admin.php
index 9208c9f134..aed89a43ea 100644
--- a/inc/modules/admin.php
+++ b/inc/modules/admin.php
@@ -68,7 +68,7 @@ if (!isAdminRegistered()) {
 			$done = changeDataInFile(constant('PATH')."inc/config.php", "ADMIN-SETUP", "define('admin_registered', ", ");", "true", 0);
 			if ($done === true) {
 				// Registering is done
-				LOAD_URL("modules.php?module=admin&amp;action=login&register=done");
+				LOAD_URL("modules.php?module=admin&amp;register=done");
 			} else {
 				$ret = getMessage('ADMIN_CANNOT_COMPLETE');
 			}
@@ -96,7 +96,7 @@ if (!isAdminRegistered()) {
 				changeDataInFile(constant('PATH')."inc/config.php", "ADMIN-SETUP", "define('admin_registered', ", ");", "true", 0);
 
 				// Load URL for login
-				LOAD_URL("modules.php?module=admin&amp;action=login");
+				LOAD_URL("modules.php?module=admin");
 			} // END - if
 			break;
 		}
@@ -189,7 +189,7 @@ if (!isAdminRegistered()) {
 	// At leat one administrator account was created
 	if ((isSessionVariableSet('admin_login')) && (isSessionVariableSet('admin_md5')) && (isSessionVariableSet('admin_last')) && (isSessionVariableSet('admin_to'))) {
 		// Timeout for last login, we have to logout first!
-		LOAD_URL("modules.php?module=admin&amp;action=login&amp;logout=1");
+		LOAD_URL("modules.php?module=admin&amp;logout=1");
 	} // END - if
 
 	if (REQUEST_ISSET_GET(('register'))) {
diff --git a/inc/modules/guest/what-admin.php b/inc/modules/guest/what-admin.php
index 266203e0f1..3fee256538 100644
--- a/inc/modules/guest/what-admin.php
+++ b/inc/modules/guest/what-admin.php
@@ -37,8 +37,8 @@ if (!defined('__SECURITY')) {
 	require($INC);
 }
 
-// Redirect...
-LOAD_URL("modules.php?module=admin&amp;action=login");
+// A simple redirect...
+LOAD_URL("modules.php?module=admin");
 
 //
 ?>