'; ?> 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 '
'; if (!is_metaconsole()) { echo html_print_image('images/pandora_tinylogo.png', true, array("border" => '0')); } echo '
'; echo '
'; echo '
'; echo '
'; echo '

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

"; echo "
"; 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 '
'; if (empty($config['enterprise_installed'])) { echo html_print_image('images/pandora_tinylogo_open.png', true, array("border" => '0')); } else { if (is_metaconsole()) { echo ''; } else{ echo html_print_image('images/pandora_tinylogo.png', true, array("border" => '0')); } } echo '
'; echo '
'; ob_start(); require_once ($help_file); $help = ob_get_contents(); ob_end_clean(); // Add a line after H1 tags echo $help; echo '
'; echo ''; ?>