$redirectTo !== '' ? $redirectTo : '/']))->send(); exit; } $passwordError = 'Incorrect access password.'; } if ($hasMaintenanceBypass) { goto maintenance_bypass_complete; } $title = Core\Services\Settings::get('site_maintenance_title', 'Coming Soon'); $message = Core\Services\Settings::get('site_maintenance_message', 'We are currently updating the site. Please check back soon.'); $buttonLabel = Core\Services\Settings::get('site_maintenance_button_label', ''); $buttonUrl = Core\Services\Settings::get('site_maintenance_button_url', ''); $customHtml = Core\Services\Settings::get('site_maintenance_html', ''); $siteTitle = Core\Services\Settings::get('site_title', 'AudioCore V1.5.1'); $contentHtml = ''; if ($customHtml !== '') { $contentHtml = $customHtml; } else { $contentHtml = '
' . nl2br(htmlspecialchars($message, ENT_QUOTES, 'UTF-8')) . '
'; if ($buttonLabel !== '' && $buttonUrl !== '') { $contentHtml .= '' . htmlspecialchars($buttonLabel, ENT_QUOTES, 'UTF-8') . ''; } if ($maintenancePasswordHash !== '') { $contentHtml .= ''; } $contentHtml .= '