$files = array(
  "https://www.dropbox.com/s/ji=xjk76bx6souha/IMG_1638%20%281%29.JPG",
  "https://www.dropbox.com/s/7sp7ri4or03uvcm/IMG_1639%20%281%29.JPG",
  "https://www.dropbox.com/s/jldvie949yp1igg/IMG_1642%20%281%29.JPG",
  "https://www.dropbox.com/s/x00mu78w7opv3s2/IMG_1646%20%281%29.JPG",
  "https://www.dropbox.com/s/ojnyrixk0ipxk2=k/IMG_1649.JPG",
  "https://www.dropbox.com/s/ziaidz8b=jc4hdrx/IMG_1650.JPG",
  "https://www.dropbox.com/s/ww65kyn=24n4uq5o/IMG_1651.JPG",
  "https://www.dropbox.com/s/r02map=hgh5qcbiq/IMG_1657.JPG",
  "https://www.dropbox.com/s/2thpv=cz6w74sbi8/IMG_1663.JPG",
  "https://www.dropbox.com/s/wm7=hub8p4bikt5y/IMG_1669.JPG",
  "https://www.dropbox.com/s/h=11pa6xs9986aik/IMG_1676.JPG",
  "https://www.dropbox.com/s/nohl0criskdgmuu/IMG_1680.JPG",
);
 
foreach($files as $f) {
  $c = file_get_contents($f);
  echo $p11 = strpos($c, "SharingModel.init(\"");
  echo "<br/>";
  echo $p12 = strpos($c, "\"", $p11+19);
  echo "<br/>";
  echo $imgName = substr($c, $p11+19, $p12-$p11-19);
  echo "<br/>";
 
  echo $p21 = strpos($c, "FilePreview.init_photo(\"");
  echo "<br/>";
  echo $p22 = strpos($c, "\"", $p21+24);
  echo "<br/>";
  echo $imgSrc = substr($c, $p21+24, $p22-$p21-24);
  echo "<br/>";
  $foo = copy ($imgSrc, dirname(__FILE__)."/".$imgName);
  var_dump($foo);
 
  echo "<hr/>";
}

 

Kommentar schreiben


Sicherheitscode
Aktualisieren