Lagde config fil og side for å endre starttidspunkt

This commit is contained in:
Trygve
2025-10-27 15:18:24 +01:00
parent cfd95bea41
commit 88dda157b5
9 changed files with 111 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
<?php
$hash = file_get_contents("hash.txt");
$hash = file_get_contents("data/hash.txt");
$method = $_SERVER['REQUEST_METHOD'];
print_r($_POST);
if ($method == "POST") {
@@ -18,7 +18,7 @@ if ($method == "POST") {
http_response_code(response_code: 400);
}
else {
$file = 'db.csv';
$file = 'data/db.csv';
file_put_contents($file, $line, FILE_APPEND);
}
}