Renamed function so it might be more understandable
[mailer.git] / inc / modules / loader.php
index 217b4426fa244415ac3273eab8f5daa6c831233d..e31841f540216762f1ace4f313eee289bf9a8e51 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 10/29/2003 *
- * ===============                              Last change: 04/17/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 10/29/2003 *
+ * ===================                          Last change: 04/17/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : loader.php                                       *
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -42,9 +41,9 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Is an URL specified?
-if (isGetRequestElementSet('url')) {
+if (isGetRequestParameterSet('url')) {
        // Decode URL
-       $url = decodeString(str_replace(' ', '+', compileUriCode(urldecode(getRequestElement('url')))));
+       $url = decodeString(str_replace(' ', '+', compileUriCode(urldecode(getRequestParameter('url')))));
 
        // Validate the URL
        if (isUrlValid($url)) {
@@ -52,11 +51,11 @@ if (isGetRequestElementSet('url')) {
                loadTemplate('loader', false, $url);
        } else {
                // URL invalid
-               redirectToUrl('index.php');
+               redirectToUrl('modules.php?module=index');
        }
 } else {
        // Invalid or no URL entered!
-       redirectToUrl('index.php');
+       redirectToUrl('modules.php?module=index');
 }
 
 // [EOF]