Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- $file = $_POST['file'];
- $dir = '../uploads/store/';
- $file = $dir . $file;
- opendir($dir);
- if(unlink($file)) {
- echo "File sucessfully deleted";
- $_SESSION['username'] = 'guitarman0831';
- header('Refresh: 2;url=http://www.ohjustthatguy.com/uploads/uploads.html');
- } else {
- echo "Error: File could not be deleted";
- $_SESSION['username'] = 'guitarman0831';
- header('Refresh: 2;url=http://www.ohjustthatguy.com/uploads/uploads.html');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement