Redirects fixed
authorRoland Häder <roland@mxchange.org>
Wed, 28 Oct 2009 16:20:55 +0000 (16:20 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 28 Oct 2009 16:20:55 +0000 (16:20 +0000)
DOCS/TODOs.txt
inc/modules/admin.php
inc/modules/admin/what-config_secure.php
inc/modules/guest/what-admin.php
inc/modules/index.php
inc/mysql-manager.php

index 705aa95..0e69ce0 100644 (file)
 ./inc/modules/member/what-unconfirmed.php:132: // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
 ./inc/modules/order.php:75:            // @TODO Unused: 2,4
 ./inc/monthly/monthly_bonus.php:70:    // @TODO Rewrite this to a filter
-./inc/mysql-manager.php:1000:                  // @TODO Commented out redirectToUrl('admin.php');
-./inc/mysql-manager.php:1600:                  // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
-./inc/mysql-manager.php:1808:                  // @TODO Rewrite this to $content = SQL_FETCHARRAY()
-./inc/mysql-manager.php:2124:          // @TODO This can be somehow rewritten
+./inc/mysql-manager.php:1599:                  // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
+./inc/mysql-manager.php:1807:                  // @TODO Rewrite this to $content = SQL_FETCHARRAY()
+./inc/mysql-manager.php:2123:          // @TODO This can be somehow rewritten
 ./inc/mysql-manager.php:220:                   // @TODO Nothing helped???
 ./inc/mysql-manager.php:255:                   // @TODO Rewrite this to a filter
 ./inc/mysql-manager.php:576:   // @TODO Try to rewrite this to one or more functions
 ./inc/mysql-manager.php:605:                           // @TODO Try to rewrite this to one or more functions
 ./inc/mysql-manager.php:93:// @TODO Can we cache this?
-./inc/mysql-manager.php:999:                   // @TODO Why does this lead into an endless loop but we still need it???
 ./inc/reset/reset_birthday.php:91:                     // @TODO 4 is hard-coded here, should we move it out in config?
 ./inc/wrapper-functions.php:127:// @TODO Implement $compress
 ./inc/wrapper-functions.php:134:// @TODO Implement $decompress
index 401dfc7..eda9178 100644 (file)
@@ -101,7 +101,7 @@ if (!isAdminRegistered()) {
                                        changeDataInFile(getConfig('CACHE_PATH') . 'config-local.php', 'ADMIN-SETUP', "setConfigEntry('ADMIN_REGISTERED', '", "');", 'Y', 0);
 
                                        // Load URL for login
-                                       redirectToUrl('modules.php?module=admin');
+                                       redirectToUrl('admin.php');
                                } // END - if
                                break;
                } // END - switch
index f140678..47623c4 100644 (file)
@@ -54,7 +54,7 @@ if (isFormSent()) {
                unsetPostRequestElement(('salt_length'));
 
                // Redirect to logout link
-               redirectToUrl('modules.php?module=admin&logout=1');
+               redirectToUrl('modules.php?module=admin&amp;logout=1');
        } // END - if
 
        // Save settings
index 467a676..3a94cfe 100644 (file)
@@ -42,7 +42,7 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // A simple redirect...
-redirectToUrl('modules.php?module=admin');
+redirectToUrl('admin.php');
 
 // [EOF]
 ?>
index 128dc6e..ab37b5b 100644 (file)
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-} elseif (!isExtensionActive('sql_patches')) {
-       // The extension 'sql_patches' *MUST* be activated or you have lot's of problems!
-       redirectToUrl('modules.php?module=admin&amp;ext_missing=sql_patches');
-}
+} // END - if
 
 // Generate a tableset for the menu title and content
 loadTemplate('guest_header');
index 519d73c..958e54a 100644 (file)
@@ -995,9 +995,8 @@ function getModeAction ($mode, $what) {
        } elseif ((!isExtensionInstalled('sql_patches')) && ($mode != 'admin')) {
                // No sql_patches installed, but maybe we need to register an admin?
                if (isAdminRegistered()) {
-                       // Redirect
-                       // @TODO Why does this lead into an endless loop but we still need it???
-                       // @TODO Commented out redirectToUrl('admin.php');
+                       // Redirect to admin area
+                       redirectToUrl('admin.php');
                } // END - if
        }