This commit is contained in:
2025-11-20 01:34:40 +01:00
parent 046fe7f717
commit cd27cb1660
6 changed files with 139 additions and 18 deletions

View File

@@ -12,6 +12,14 @@ $userInitials = null;
$pageTitle = 'usbcheck.it Fake USB Check';
$pageDescription = 'Fake USB-Sticks erkennen: Browser-basierter Schnelltest für Kapazität, Schreib-/Lesegeschwindigkeit und Datenintegrität ohne Installation.';
// Header-Navigation: auf dieser Seite KEINE Onepager-Anchors anzeigen
$navAnchors = [];
// Basis-URL für Reports etc. (staging/prod/dev/ismyusbfake-kompatibel)
$scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';
$host = $_SERVER['HTTP_HOST'] ?? 'usbcheck.it';
$baseUrl = $scheme . '://' . $host;
// Layout-Start einbinden
require __DIR__ . '/../partials/layout_start.php';
?>
@@ -149,15 +157,15 @@ document.addEventListener("DOMContentLoaded", function () {
const now = new Date().toISOString();
const demoReport = {
meta: {
tool: "usbcheck.it/fakecheck",
tool: "<?= htmlspecialchars($baseUrl . '/fakecheck') ?>",
mode: "browser-demo",
timestamp: now,
locale: "<?= htmlspecialchars($lang) ?>"
},
tests: [
{ id: "quick_test", label: "Quick-Test (Demo)", status: "pending" },
{ id: "light_benchmark", label: "Light-Benchmark (Demo)", status: "pending" },
{ id: "write_verify", label: "Write/Verify (Demo)", status: "pending" }
{ id: "quick_test", label: "Quick-Test (Demo)", status: "pending" },
{ id: "light_benchmark", label: "Light-Benchmark (Demo)", status: "pending" },
{ id: "write_verify", label: "Write/Verify (Demo)", status: "pending" }
],
note: "Dies ist nur eine Platzhalter-Ausgabe. Die echte Web-Testlogik (File System Access, Fortschritt, realer JSON-Report) implementieren wir im nächsten Schritt."
};