Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- $filename = $_GET['file']; //get the filename
- if (is_file($filename))
- {
- unlink($filename); //delete it
- }
- else
- {
- rmdir($filename);
- }
- $login = $_SESSION['user'];
- $url = "Frame.php?dir=$login";
- header("location: $url");
- //redirect back to the other page
- ?>
Advertisement
Add Comment
Please, Sign In to add comment