$v) global ${$k};
if (file_exists("lib/template/".$template."/template.help.php")) {
include_once("lib/template/".$template."/template.help.php");
} else {
include_once("lib/template/default/template.help.php");
} // end checking for template
die();
} // end function help_template_display
//
// eventually, we want to be able to call a
// statement like include "doc/$page_name.$section.php3"
// or something like that to read documentation in...
// because they are coded in plain HTML, they can be
// linked.
//----- Build name without .php
$page = str_replace(".php", "", $page_name);
$language = $_SESSION['language'];
// build helpfile name...
if (empty($page) AND empty($section)) {
$_help_name = "locale/$language/doc/default.$language.html";
} elseif (!empty($page) AND empty($section)) {
$_help_name = "locale/$language/doc/$page.$language.html";
} elseif (!empty($page) AND !empty($section)) {
$_help_name = "locale/$language/doc/$page.$section.$language.html";
} else {
$_help_name = "locale/$language/doc/default.$language.html";
}
// if the helpfile doesn't exist, but is enabled, ERROR! out...
if (!file_exists($_help_name)) {
unset($_help_name); // so that it doesn't come back...
$page_title = PACKAGENAME." Help System Error";
$display_buffer .= "
The requested help file was not found on this
system. It is possible that it has not been
implemented, or it is missing from your system.
";
$display_buffer .= "