'; $message = ''; if ($config['history_db_connection'] === false) { $message = __('Failure to connect to historical database, please check the configuration or contact system administrator if you need assistance.'); } else { $message = __('Failure to connect to Database server, please check the configuration file config.php or contact system administrator if you need assistance.'); } $custom_conf_enabled = false; foreach ($config as $key => $value) { if (preg_match('/._alt/i', $key)) { $custom_conf_enabled = true; break; } } if (empty($custom_conf_enabled) === true || isset($config['custom_docs_url_alt']) === true) { if (isset($config['custom_docs_url_alt']) === true) { $docs_url = $config['custom_docs_url_alt']; } else { $docs_url = 'https://pandorafms.com/manual/en/documentation/02_installation/04_configuration'; } } echo '
'; echo '
'; echo '
'; echo html_print_image('images/mysqlerr.png', true, ['alt' => __('Mysql error'), 'border' => 0]); echo '
'; echo '
'; echo '
'; echo '

'.__('Database error').'

'; echo '

'.$message.'

'; echo '
'; echo '
'; echo '
'; html_print_submit_button( __('Documentation'), 'mysqlerr_button', false, ['class' => 'mini float-right'] ); echo '
'; echo '
'; echo '
'; echo '
'; ?>