cleanup
This commit is contained in:
43
public/landingpage/fakecheck/index.php
Normal file
43
public/landingpage/fakecheck/index.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
require __DIR__ . "/../../config/fileload.php";
|
||||
|
||||
// public/fakecheck/index.php
|
||||
|
||||
// Sprachlogik wie auf der Startseite
|
||||
$lang = $_GET['lang'] ?? 'en';
|
||||
$lang = in_array($lang, ['de','en','it','fr']) ? $lang : 'en';
|
||||
|
||||
// User-Dummy (später über Login ersetzen)
|
||||
$userInitials = null;
|
||||
|
||||
// Seitentitel & Description (SEO)
|
||||
$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;
|
||||
$lang = $_GET['lang'] ?? 'en';
|
||||
$lang = in_array($lang, ['de','en','it','fr']) ? $lang : 'en';
|
||||
|
||||
// Basis-URL für Reports
|
||||
$baseUrl = "https://usbcheck.it";
|
||||
?>
|
||||
|
||||
<?php tpl('layout_start', 'structure'); ?>
|
||||
|
||||
<?php tpl('hero', 'landing', 'fakecheck'); ?>
|
||||
<?php tpl('webcheck', 'landing', 'fakecheck'); ?>
|
||||
|
||||
<!-- JS-Einbindung -->
|
||||
<script>
|
||||
window.fakecheckBaseUrl = "<?= htmlspecialchars($baseUrl . '/fakecheck') ?>";
|
||||
window.fakecheckLocale = "<?= htmlspecialchars($lang) ?>";
|
||||
</script>
|
||||
<script src="/assets/js/fakecheck.js?v=1"></script>
|
||||
|
||||
<?php tpl('layout_end', 'structure'); ?>
|
||||
Reference in New Issue
Block a user