]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/frametester.php
Mailer project continued:
[mailer.git] / inc / modules / frametester.php
index 80d7f3befff324f0befa1bb5abe195c4eb482c00..c8899186684ff6c35febd8717c701ba87a000f75 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2012 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 *
@@ -37,7 +37,7 @@
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       die();
+       exit();
 } // END - if
 
 $mode = 'guest';
@@ -72,7 +72,7 @@ if (isGetRequestElementSet('order')) {
        }
 } // END - if
 
-if ((isPostRequestElementSet('url')) || (isGetRequestElementSet('url')) || (isGetRequestElementSet('frame'))) {
+if ((isPostRequestElementSet('url')) || (isGetRequestElementSet('url')) || (!isFullPage())) {
        // Default URL is ours
        $url = getUrl();
 
@@ -87,7 +87,12 @@ if ((isPostRequestElementSet('url')) || (isGetRequestElementSet('url')) || (isGe
 
        // Add missing element
        $frame = '';
-       if (isGetRequestElementSet('frame')) $frame = getRequestElement('frame');
+       if (!isFullPage()) {
+               $frame = getRequestElement('frame');
+       } // END - if
+
+       // Switch on 'frame'
+       // @TODO Rewrite this somehow
        switch ($frame) {
                case '':
                        switch ($mode) {