first commit

This commit is contained in:
Bildcraft1 2024-10-31 10:47:12 +01:00
commit d975e212f9
35 changed files with 813 additions and 0 deletions

34
similverifica/thanks.php Normal file
View file

@ -0,0 +1,34 @@
<?php
include "includes/security.php";
checkSession();
if (!isset($_COOKIE["hasVoted"])) {
setcookie("hasVoted", true, time() + 60, "/");
}
addVote($_SESSION["film"], $_SESSION["voto"]);
session_destroy();
?>
<!DOCTYPE HTML>
<html lang="it">
<head>
<title>Login</title>
<?php require "includes/head.php" ?>
</head>
<body>
<div class="container">
<h1>Grazie per aver votato</h1>
<h2>Per controllare i voti controlla la pagina <a href="statistics.php">statistiche</a></h2>
</div>
<?php require "includes/footer.php" ?>
</body>
</html>