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

Téléverser un nouveau fichier

parent 33f86411
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.'');
$erreurpassword = 1;
header("location: index.php?echec=404");
<!doctype html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<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">
<div id="conteneur">
<div id="header">
<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 !">
if ($erreurpassword == 1) {
echo '
<div id="reponse-negative">
Mot de passe incorrect.
<p><a href="<?echo $urlsite?>">Revenir à la page d'accueil</a></p>
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