'; ?> load_tables(); } // Possible file locations $safe_language = safe_url_extraclean($user_language, 'en'); $safe_id = safe_url_extraclean($id, ''); $files = [ $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; } } $logo = ui_get_custom_header_logo(true); if (! $id || ! file_exists($help_file)) { echo '
'; if (!is_metaconsole()) { echo html_print_image($logo, true, ['border' => '0']); } echo '
'; echo '
'; echo '
'; echo '
'; echo '

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

'; echo "
"; echo '
'; echo '
'.__("%s help system has been called with a help reference that currently don't exist. There is no help content to show.", get_product_name()).'
'; echo '

'; echo '
'; include 'footer.php'; return; } // Show help echo '
'; if (!empty($config['enterprise_installed']) && is_metaconsole()) { echo ''; } else { echo html_print_image($logo, true, ['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 ''; ?>