" . $helpEntry['Headline'] . "\n"; $format = "

" . $helpEntry['Text'] . "

\n"; if (isset($helpEntry['attr'])) { $format .= '

' . _('Technical name') . ': ' . $helpEntry['attr'] . ''; } echo $format; if(isset($helpEntry['SeeAlso']) && is_array($helpEntry['SeeAlso'])) { echo '

' . _('See also') . ': ' . $helpEntry['SeeAlso']['text'] . '

'; } echoHTMLFoot(); } /* If no help number was submitted print error message */ if (!isset($_GET['HelpNumber'])) { $errorMessage = "Sorry no help number submitted."; echoHTMLHead(); statusMessage("ERROR", "", $errorMessage); echoHTMLFoot(); exit; } $helpEntry = array(); // module help if(isset($_GET['module']) && !($_GET['module'] == 'main') && !($_GET['module'] == '')) { include_once(__DIR__ . "/../lib/modules.inc"); if (isset($_GET['scope'])) { $helpEntry = getHelp($_GET['module'],$_GET['HelpNumber'],$_GET['scope']); } else { $helpEntry = getHelp($_GET['module'],$_GET['HelpNumber']); } if (!$helpEntry) { $variables = array(htmlspecialchars($_GET['HelpNumber']), htmlspecialchars($_GET['module'])); $errorMessage = _("Sorry this help id ({bold}%s{endbold}) is not available for this module ({bold}%s{endbold})."); echoHTMLHead(); statusMessage("ERROR", "", $errorMessage, $variables); echoHTMLFoot(); exit; } } // help entry in help.inc else { /* If submitted help number is not in help/help.inc print error message */ if (!array_key_exists($_GET['HelpNumber'],$helpArray)) { $variables = array(htmlspecialchars($_GET['HelpNumber'])); $errorMessage = _("Sorry this help number ({bold}%s{endbold}) is not available."); echoHTMLHead(); statusMessage("ERROR", "", $errorMessage, $variables); echoHTMLFoot(); exit; } else { $helpEntry = $helpArray[$_GET['HelpNumber']]; } } displayHelp($helpEntry); ?>