From b9d121d2b12f5c9cc23f5a483b290c1966659114 Mon Sep 17 00:00:00 2001 From: lbergman Date: Mon, 5 Jun 2000 21:57:28 +0000 Subject: [PATCH] corrected error which caused no data git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@524 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/left_main.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/left_main.php b/src/left_main.php index eef300c7..9e5cbc03 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -14,8 +14,8 @@ 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 + // 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") { @@ -45,12 +45,13 @@ ** Build a menu dynamically for the left frame from the HTML tagged right frame include (.hlp) files listed in the $helpdir var. ** This is done by first listing all the .hlp files in the $helpdir array. ** Next, we loop through the array, for every value of $helpdir we loop through the file and look for anchor tags ( or

). produces ugly HTML. Will try to clean up. + ** header tags (

or

). **/ if (!file_exists("../help/$user_language")) // If the selected language doesn't exist, use english $user_language = "en"; + while ( list( $key, $val ) = each( $helpdir ) ) { // loop through the array of files $fcontents = file("../help/$user_language/$val"); // assign each line of the above file to another array while ( list( $line_num, $line ) = each( $fcontents ) ) { // loop through the second array @@ -78,7 +79,6 @@ } } } else { - if (!isset($config_php)) include("../config/config.php"); if (!isset($array_php)) @@ -190,6 +190,7 @@ fclose($imapConnection); + } ?> -- 2.25.1