瀏覽代碼

_top frame problem fix

teepe 23 年之前
父節點
當前提交
52f24ab4e5
共有 5 個文件被更改,包括 18 次插入0 次删除
  1. 4 0
      functions/auth.php
  2. 4 0
      functions/display_messages.php
  3. 3 0
      functions/page_header.php
  4. 3 0
      src/options.php
  5. 4 0
      src/signout.php

+ 4 - 0
functions/auth.php

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

+ 4 - 0
functions/display_messages.php

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

+ 3 - 0
functions/page_header.php

@@ -54,6 +54,9 @@ function displayPageHeader($color, $mailbox) {
     displayHtmlHeader ();
     displayHtmlHeader ();
 
 
     $module = substr( $PHP_SELF, ( strlen( $PHP_SELF ) - strlen( $base_uri ) ) * -1 );
     $module = substr( $PHP_SELF, ( strlen( $PHP_SELF ) - strlen( $base_uri ) ) * -1 );
+    if (!isset($frame_top)) {
+        $frame_top = '_top';
+    }
 
 
     /*
     /*
         Locate the first displayable form element
         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. */
     /* First, display the results of a submission, if needed. */
     /**********************************************************/
     /**********************************************************/
     if ($optmode == SMOPT_MODE_SUBMIT) {
     if ($optmode == SMOPT_MODE_SUBMIT) {
+        if (isset($frame_top)) {
+            $frame_top = '_top';
+        }
         /* Display a message indicating a successful save. */
         /* Display a message indicating a successful save. */
         echo '<B>' . _("Successfully Saved Options") . ": $optpage_name</B><BR>\n";
         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
    // If a user hits reload on the last page, $base_uri isn't set
    // because it was deleted with the session.
    // because it was deleted with the session.
    if (! isset($base_uri)) {
    if (! isset($base_uri)) {