"; echo "\n"; /** ** 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. ** This should probably go in config.php but it might mess up conf.pl **/ $helpdir[0] = "basic.hlp"; $helpdir[1] = "main_folder.hlp"; $helpdir[2] = "read_mail.hlp"; $helpdir[3] = "addresses.hlp"; $helpdir[4] = "compose.hlp"; $helpdir[5] = "folders.hlp"; $helpdir[6] = "options.hlp"; $helpdir[7] = "FAQ.hlp"; /** ** 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

). **/ if (file_exists("../help/$user_language")) { } elseif(file_exists("../help/en")){ // If the selected language doesn't exist, use english $user_language = en; } else { // If that is gone too, send a message $nohelp = true; echo "
",_("ERROR: Some or all of the standard English help files ar missing."), "

"; } if(!$nohelp) { 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 $temphed=""; $tempanc=""; if ( eregi("
", "", $tempanc); echo ""; } if ( eregi("

", $line, $temphed)) { // grab a description for the link made above $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 = trim($line); $temphed = str_replace("

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

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