12 lines
438 B
PHP
12 lines
438 B
PHP
<?php
|
|
session_start();
|
|
include("fonctions.inc.php");
|
|
if (isset ($_POST['reference']) && isset ($_POST['password'])) {
|
|
$reference = (int) $_POST['reference'];
|
|
$password = secure($_POST['password']);
|
|
if (verification($reference, $password)) {
|
|
$_SESSION['reference'] = $reference;
|
|
header('Location: ../explication.php');
|
|
} else { header('Location: ../index.php?$wrong=true');}
|
|
} else { header('Location: ../index.php?$wrong=true');}
|