From 14e6044f42d56f5153404285428958f4e320a843 Mon Sep 17 00:00:00 2001 From: lbergman Date: Fri, 9 Jun 2000 14:17:13 +0000 Subject: [PATCH 1/1] Corrected UGLY html output, now looks more common sense. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@537 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/left_help.php | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/src/left_help.php b/src/left_help.php index 4b0d36c4..96c2f932 100644 --- a/src/left_help.php +++ b/src/left_help.php @@ -14,12 +14,6 @@ echo "You need a valid user and password to access this page!"; exit; } - - // Configure the left frame for the help menu - // Maybe this should be a function but since I haven't done one it isn't - - $ishelp = substr(getenv(REQUEST_URI),-8); // take the right 8 characters from the requested URL - if ($ishelp == "help.php") { if (!isset($config_php)) include("../config/config.php"); if (!isset($i18n_php)) @@ -27,7 +21,6 @@ include("../src/load_prefs.php"); echo ""; echo "\n"; - $left_size = 250; //doesn't seem to work /** ** Array used to list the include .hlp files, we could use a dir function ** to step through the directory and list its contents but it doesn't order those. @@ -60,25 +53,24 @@ $tempanc=""; if ( eregi("", "", $tempanc); + $tempanc = trim($line); + $tempanc = str_replace("", "", $tempanc); echo ""; } if ( eregi("

", $line, $temphed)) { // grab a description for the link made above - $temphed = $line; - $temphed = ereg_replace("

", "", $temphed); - $temphed = ereg_replace("

", "", $temphed); + $temphed = trim($line); + $temphed = str_replace("

", "", $temphed); + $temphed = str_replace("

", "", $temphed); echo "
"; echo "" . _("$temphed") . "

\n"; // make it bigger since it is a heading type 1 } if ( eregi("

", $line, $temphed)) { // grab a description for the link made above - $temphed = $line; - $temphed = ereg_replace("

", "", $temphed); - $temphed = ereg_replace("

", "", $temphed); + $temphed = trim($line); + $temphed = str_replace("

", "", $temphed); + $temphed = str_replace("

", "", $temphed); echo "" . _("$temphed") . "
\n"; // keep same size since it is a normal entry } } } - } ?> -- 2.25.1