Forráskód Böngészése

_top frame problem fix

teepe 23 éve
szülő
commit
52f24ab4e5

+ 4 - 0
functions/auth.php

@@ -20,6 +20,10 @@ function is_logged_in () {
         return;
     }
 
+    if (!isset($frame_top)) {
+        $frame_top = '_top';
+    }
+
     set_up_language($squirrelmail_language, true);
 
     displayHtmlHeader( 'SquirrelMail', '', FALSE );

+ 4 - 0
functions/display_messages.php

@@ -15,6 +15,10 @@
 function error_username_password_incorrect() {
     global $frame_top;
 
+    if (!isset($frame_top)) {
+        $frame_top = '_top';
+    }
+
     echo '<BR>'.
                 '<TABLE COLS=1 WIDTH="75%" NOBORDER BGCOLOR="' . $color[4] . '" ALIGN=CENTER>'.
                 '<TR BGCOLOR="' . $color[0] . '">'.

+ 3 - 0
functions/page_header.php

@@ -54,6 +54,9 @@ function displayPageHeader($color, $mailbox) {
     displayHtmlHeader ();
 
     $module = substr( $PHP_SELF, ( strlen( $PHP_SELF ) - strlen( $base_uri ) ) * -1 );
+    if (!isset($frame_top)) {
+        $frame_top = '_top';
+    }
 
     /*
         Locate the first displayable form element

+ 3 - 0
src/options.php

@@ -228,6 +228,9 @@ if ($optpage == SMOPT_PAGE_MAIN) {
     /* First, display the results of a submission, if needed. */
     /**********************************************************/
     if ($optmode == SMOPT_MODE_SUBMIT) {
+        if (isset($frame_top)) {
+            $frame_top = '_top';
+        }
         /* Display a message indicating a successful save. */
         echo '<B>' . _("Successfully Saved Options") . ": $optpage_name</B><BR>\n";
 

+ 4 - 0
src/signout.php

@@ -44,6 +44,10 @@ require_once('../functions/strings.php');
        }
    }
 
+   if (!isset($frame_top)) {
+        $frame_top = '_top';
+   }
+
    // If a user hits reload on the last page, $base_uri isn't set
    // because it was deleted with the session.
    if (! isset($base_uri)) {