您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

change_map.php 503 B

10 年前
123456789101112131415161718192021222324
  1. <?php
  2. if($_GET){
  3. $url = $_GET['url'];
  4. $name = basename($url);
  5. list($txt, $ext) = explode(".", $name);
  6. $name = "map.jpg";
  7. if($ext == "jpg" or $ext == "png"){
  8. $upload = file_put_contents("uploads/$name",file_get_contents($url));
  9. if($upload)
  10. echo "Success: <a href='uploads/".$name."' target='_blank'>Check Uploaded</a>"; else "Erreur !";
  11. }
  12. else{
  13. echo "Erreur !";
  14. }
  15. }
  16. ?>
  17. <!-- <h3>Paste the url and hit enter!</h3>
  18. <form action="" method="post">
  19. Your URL: <input type="text" name="url" />
  20. </form> -->