first commit
This commit is contained in:
commit
d975e212f9
35 changed files with 813 additions and 0 deletions
34
similverifica/thanks.php
Normal file
34
similverifica/thanks.php
Normal 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>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue