fugged

Image Copy

May 13th, 2011
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. //imageCopy.php
  2.  
  3. <?php
  4. $url = $_GET['url'];
  5. $fileName = basename($url);
  6. copy($url, "images/" . $fileName);
  7. ?>
  8.  
  9. <html>
  10. <head>
  11. <title>Image Copy</title>
  12. </head>
  13. <body>
  14. <h1>Image Copied!</h1>
  15. <p>Copied image: <strong><?=$fileName?></strong> from <strong><?=$url?></strong></p>
  16. <p><a href="images/<?=$fileName?>">open image</a></p>
  17. </body>
  18. </html>
  19.  
  20.  
  21. //Browser bookmarklet
  22.  
  23. javascript:var%20o=window.location,w=window.open();w.location="http://www.example.com/imageCopy.php?url="+o;void(0)
Advertisement
Add Comment
Please, Sign In to add comment