Commit 4f8873e7 authored by Cellophile's avatar Cellophile 🎨
Browse files

Téléverser un nouveau fichier

parent 33f86411
<?php
session_start();
include "config.php";
$lecturetest = "okay";
if (isset($_GET['redirect']) !== FALSE) {
$redirect = $_GET['redirect'];
$chemin = "d/".$redirect.".php";
include $chemin;
if (isset($_POST["mdpaverifier"]) !== FALSE) {
if (password_verify($_POST["mdpaverifier"], $mdpstock))
{
header('Status: 301 Moved Permanently', false, 301);
header('Location: '.$urlredirect.'');
exit();
}
else
{
$erreurpassword = 1;
}
}
}else{
header("location: index.php?echec=404");
exit();
}
?>
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>PersonaLink</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" media="only screen and (max-width: 760px)" href="/css/mobile.css" type="text/css">
</head>
<body>
<div id="conteneur">
<div id="header">
<h1>PersonaLink</h1>
</div>
<p>Le lien que vous voulez suivre est protégé par un mot de passe.<p>
<form class="form" role="form" method="post" action="password.php?redirect=<? echo $redirect; ?>">
<div id="form">
<input class="form-options-champs" type="password" name="mdpaverifier" required="">
<div id="bouton-valid-password">
<input class="bouton" type="submit" value="Allons-y !">
</div>
</div>
</form>
<?php
if ($erreurpassword == 1) {
echo '
<div id="reponse-negative">
Mot de passe incorrect.
</div>';
}
?>
<p><a href="<?echo $urlsite?>">Revenir à la page d'accueil</a></p>
</div>
</body>
</html>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment