Added Legal notice and privacy page, fonts are now loaded from the web server and not from Google

This commit is contained in:
N0Xx committed 2026-10-12 20:37:24 +02:00
1 parent 607b9bc42d
commit 216077cd32
25 files changed
+194 -46

No files matched your search

+7
View File
@@ -82,6 +82,13 @@ if ($name === '' || $subject === '' || $message === '' || !filter_var($email, FI
$ip = $_SERVER['REMOTE_ADDR'] ?? 'unknown';
$store = sys_get_temp_dir() . '/portfolio-contact-' . hash('sha256', $ip . ($cfg['rate_salt'] ?? ''));
$now = time();
// Delete fingerprints older than one hour (as stated in the legal notice).
foreach (glob(sys_get_temp_dir() . '/portfolio-contact-*') ?: [] as $old) {
if (@filemtime($old) < $now - 3600) {
@unlink($old);
}
}
$hits = [];
if (is_readable($store)) {
foreach (explode(',', (string) file_get_contents($store)) as $t) {