X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fpage_header.php;h=1673fac147b0d37a9949eb915e0eaf4e94d6cc39;hb=51e2fd041cf1446f9fbfa0e1fc82ee3b5c2f61f3;hp=8c39837c22dbfe05d58b89155855fd0892d714c0;hpb=7e235a1a75c0544d1b41270f54568990b3af112a;p=squirrelmail.git
diff --git a/functions/page_header.php b/functions/page_header.php
index 8c39837c..1673fac1 100644
--- a/functions/page_header.php
+++ b/functions/page_header.php
@@ -30,10 +30,6 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE
$base_uri . "themes/css/$custom_css\">\n";
}
- if( $do_hook ) {
- do_hook ("generic_header");
- }
-
echo "
$title$xtra\n\n";
}
@@ -47,11 +43,10 @@ function displayInternalLink($path, $text, $target='') {
echo ''.$text.'';
}
-function displayPageHeader($color, $mailbox) {
+function displayPageHeader($color, $mailbox, $xtra='') {
global $delimiter, $hide_sm_attributions, $base_uri, $PHP_SELF, $frame_top, $compose_new_win, $username, $datadir;
-
$module = substr( $PHP_SELF, ( strlen( $PHP_SELF ) - strlen( $base_uri ) ) * -1 );
if (!isset($frame_top)) {
$frame_top = '_top';
@@ -87,6 +82,7 @@ function displayPageHeader($color, $mailbox) {
"if( pos >= 0 ) {\n".
"document.forms[i-1].elements[pos].focus();\n".
"}\n".
+ "$xtra\n".
"}\n";
if ($compose_new_win == '1') {
$width= getPref($username, $datadir, 'editor_size', 76);
@@ -104,7 +100,7 @@ function displayPageHeader($color, $mailbox) {
"}\n";
}
$js .= "// -->\n".
- "\n";
+ "\n";
$onload = "onLoad=\"checkForm();\"";
displayHtmlHeader ('Squirrelmail', $js);
break;
@@ -207,7 +203,7 @@ function compose_Header($color, $mailbox) {
"}\n".
"}\n";
$js .= "// -->\n".
- "\n";
+ "\n";
$onload = "onLoad=\"checkForm();\"";
displayHtmlHeader (_("Compose"), $js);
break;