X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fpage_header.php;h=03a71fe76bd58ba1f4d5000973bf9d4a15f738c1;hp=dc33315c94d9008eb65cf5cd2a33fa69b8d7b2fb;hb=2e52e4a2c90396b3ac469d5f7e2baa16df6c304e;hpb=ce9f808b1830796b415c1607714d8be66b7c7efe
diff --git a/functions/page_header.php b/functions/page_header.php
index dc33315c..03a71fe7 100644
--- a/functions/page_header.php
+++ b/functions/page_header.php
@@ -60,6 +60,29 @@ function displayPageHeader($color, $mailbox, $xtra='') {
Locate the first displayable form element
*/
switch ( $module ) {
+ case 'src/read_body.php':
+ if ($compose_new_win == '1') {
+ if (!preg_match("/^[0-9]{3,4}$/", $compose_width)) {
+ $compose_width = '640';
+ }
+ if (!preg_match("/^[0-9]{3,4}$/", $compose_height)) {
+ $compose_height = '550';
+ }
+ $js = "\n".'\n";
+ displayHtmlHeader ('Squirrelmail', $js);
+ }
+ displayHtmlHeader();
+ $onload = '';
+ break;
default:
$js = '