Obsolete action=login removed from URLs
authorRoland Häder <roland@mxchange.org>
Fri, 6 Mar 2009 18:29:28 +0000 (18:29 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 6 Mar 2009 18:29:28 +0000 (18:29 +0000)
inc/modules/admin.php
inc/modules/guest/what-admin.php

index 9208c9f..aed89a4 100644 (file)
@@ -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'))) {
index 266203e..3fee256 100644 (file)
@@ -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");
 
 //
 ?>