'; ?> load_tables(); } /* Possible file locations */ $safe_language = safe_url_extraclean ($user_language, "en"); $safe_id = safe_url_extraclean ($id, ""); $files = array ($config["homedir"]."/include/help/".$safe_language."/help_".$safe_id.".php", $config["homedir"]."/".ENTERPRISE_DIR."/include/help/".$safe_language."/help_".$safe_id.".php", $config["homedir"]."/".ENTERPRISE_DIR."/include/help/en/help_".$safe_id.".php", $config["homedir"]."/include/help/en/help_".$safe_id.".php"); $help_file = ''; foreach ($files as $file) { if (file_exists ($file)) { $help_file = $file; break; } } if (! $id || ! file_exists ($help_file)) { echo '
'; echo ''; echo html_print_image('images/pandora_tinylogo.png', true, array("border" => '0')); echo ""; echo '

'. html_print_image('images/interrogant.png', true, array('title' => __('Pandora FMS help system'))) . '

'; echo '
'; echo '
'; echo '
'; echo '

'; echo __('Help system error'); echo "



"; echo "
"; echo html_print_image("images/pandora_logo.png", array("border" => '0')) . '
'; echo "
"; echo '
'.__('Pandora FMS help system has been called with a help reference that currently don\'t exist. There is no help content to show.').'
'; echo '

'; echo '
'; include ('footer.php'); return; } /* Show help */ echo '
'; echo ''; if (empty($config['enterprise_installed'])) { echo html_print_image('images/pandora_tinylogo_open.png', true, array("border" => '0')); } else { echo html_print_image('images/pandora_tinylogo.png', true, array("border" => '0')); } echo ""; echo '

'. html_print_image('images/interrogant.png', true, array('title' => __('Pandora FMS help system'))) . '

'; echo '
'; echo '
'; echo '
'; ob_start(); require_once ($help_file); $help = ob_get_contents(); ob_end_clean(); // Add a line after H1 tags $help = str_replace('', '
', $help); $help = str_replace('', '
', $help); echo $help; echo '

'; echo '
'; include ('footer.php'); ?>