From 0e3b9a5a28f98305251f2ac392924b6bc1021cbc Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sat, 28 Feb 2004 08:25:21 +0000 Subject: [PATCH] making webmail_bottom hook more powerful git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6684 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/webmail.php | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/webmail.php b/src/webmail.php index 42e2b83d..4e383aaf 100644 --- a/src/webmail.php +++ b/src/webmail.php @@ -65,14 +65,15 @@ if ($my_language != $squirrelmail_language) { $err=set_up_language(getPref($data_dir, $username, 'language')); -echo "\n". - "\n" . - "$org_title\n". - ""; +$output = "\n". + "\n" . + "$org_title\n". + ""; // Japanese translation used without mbstring support if ($err==2) { - echo "\n". + echo $output. + "\n". "

You need to have php4 installed with the multibyte string function \n". "enabled (using configure option --enable-mbstring).

\n". "

System assumed that you accidently switched to Japanese translation \n". @@ -107,10 +108,10 @@ if ($left_size == "") { } if ($location_of_bar == 'right') { - echo "\n"; + $output .= "\n"; } else { - echo "\n"; + $output .= "\n"; } /* @@ -150,12 +151,16 @@ $right_frame = '\n"; if ($location_of_bar == 'right') { - echo $right_frame . $left_frame; + $output .= $right_frame . $left_frame; } else { - echo $left_frame . $right_frame; + $output .= $left_frame . $right_frame; } -do_hook('webmail_bottom'); +$ret = concat_hook_function('webmail_bottom', $output); +if($ret != '') { + $output = $ret; +} +echo $output; ?> -- 2.25.1