]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/frametester.php
'what' files should be loaded only once
[mailer.git] / inc / modules / frametester.php
index 1bff771c2f38ed19e76cfd950037450960917236..6210bd1b7569946b6f201f05c4c114702e24f869 100644 (file)
  * $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                           *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -47,7 +46,7 @@ if (isGetRequestElementSet('order')) {
        // Order number placed, is he also logged in?
        if (isMember()) {
                // Ok, test passed... :)
-               $result = SQL_QUERY_ESC("SELECT `subject`, `url` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s AND `sender`=%s AND `data_type`='TEMP' LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `subject`,`url` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s AND `sender`=%s AND `data_type`='TEMP' LIMIT 1",
                        array(bigintval(getRequestElement('order')), getMemberId()), __FILE__, __LINE__);
 
                // Finally is the entry valid?
@@ -61,7 +60,7 @@ if (isGetRequestElementSet('order')) {
                        // Mode is member
                        $mode = 'member';
                } else {
-                       // Matching line not found!
+                       // Matching line not found
                        redirectToUrl('modules.php?module=index&what=login');
                }
 
@@ -75,7 +74,7 @@ if (isGetRequestElementSet('order')) {
 
 if ((isPostRequestElementSet('url')) || (isGetRequestElementSet('url')) || (isGetRequestElementSet('frame'))) {
        // Default URL is ours
-       $url = getConfig('URL');
+       $url = getUrl();
 
        // Use URL from POST or GET data if set
        if (isPostRequestElementSet('url')) {
@@ -107,7 +106,7 @@ if ((isPostRequestElementSet('url')) || (isGetRequestElementSet('url')) || (isGe
                        break;
 
                case 'test_top':
-                       loadTemplate('admin_settings_saved', false, '<div class="guest_done">{--GUEST_FRAMETESTER_TOP--}</span>');
+                       displayMessage('{--GUEST_FRAMETESTER_TOP--}');
                        break;
 
                case 'back': // Back buttom