$InstallationTitle = 'Chamilo has not been installed';
$InstallationDescription = 'Click to INSTALL Chamilo %s or read the installation guide';
// Error code 3.
// Error code 4.
// Error code 5.
$DatabaseUnavailableTitle = 'Database is unavailable';
$DatabaseUnavailableDescription = 'This portal is currently experiencing database issues. Please report this to the portal administrator. Thank you for your help.';
// Error code 6.
$AlreadyInstalledTitle = 'Chamilo has already been installed';
$AlreadyInstalledDescription = 'The system has already been installed. In order to protect its contents, we have to prevent you from starting the installation script again. Please return to the main page.';
// Unspecified error.
$TechnicalIssuesTitle = 'Technical issues';
$TechnicalIssuesDescription = 'This portal is currently experiencing technical issues. Please report this to the portal administrator. Thank you for your help.';
if (is_int($global_error_code) && $global_error_code > 0) {
    if (class_exists('Template')) {
        $theme = Template::getThemeFallback() . '/';
    } else {
        $theme = 'chamilo';
    }
    $css_path = 'app/Resources/public/css/';
    $css_web_assets = 'web/assets/';
    $css_web_path = 'web/css/';
    $themePath = $css_path . 'themes/' . $theme . '/default.css';
    $css_web_fontawesome = $css_web_assets . 'fontawesome/css/font-awesome.css';
    $bootstrap_file = $css_web_assets . 'bootstrap/dist/css/bootstrap.min.css';
    $css_base_file = $css_web_path . 'base.css';
    $css_list = array($bootstrap_file, $css_base_file, $themePath);
    $web_img = 'main/img';
    $root_sys = str_replace('\\', '/', realpath(dirname(__FILE__) . '/../../')) . '/';
    $root_rel = htmlentities($_SERVER['PHP_SELF']);
    if (!empty($root_rel)) {