Guest User

Untitled

a guest
Oct 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: chris
  5. * Date: 21/10/18
  6. * Time: 14:49
  7. */
  8. if(isset($_REQUEST['delete'])) {
  9. $link = '../uploaded/'.$_REQUEST['delete'];
  10. if(unlink($link)) {
  11. header("Location: /");
  12. } else {
  13. echo "Echec de la suppression"."<a href='index.php'>retour à l'accueil</a>";
  14. }
  15. }
Add Comment
Please, Sign In to add comment