Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Created by PhpStorm.
- * User: chris
- * Date: 21/10/18
- * Time: 14:49
- */
- if(isset($_REQUEST['delete'])) {
- $link = '../uploaded/'.$_REQUEST['delete'];
- if(unlink($link)) {
- header("Location: /");
- } else {
- echo "Echec de la suppression"."<a href='index.php'>retour à l'accueil</a>";
- }
- }
Add Comment
Please, Sign In to add comment