17 lines
432 B
PHP
Raw Normal View History

2024-02-11 19:27:54 +01:00
<?php
2024-02-16 12:14:45 +01:00
$control = $_POST['control'];
2024-02-11 19:27:54 +01:00
$runner_id = $_POST['id'];
2024-02-12 21:23:13 +01:00
$time = $_POST['time'];
2024-10-27 18:15:45 +01:00
$password = $_POST['password'];
$hash = file_get_contents("hash.txt");
if (!password_verify($password, $hash)) {
http_response_code(response_code: 401);
}
else {
$file = 'passering.csv';
$current = file_get_contents($file);
$current .= $control . "," . $runner_id . "," . $time . "\n";
file_put_contents($file, $current);
2024-11-05 12:53:41 +01:00
}