Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- function get_images() {
- $page = file_get_contents("http://www.model-kartei.de/bilder/diskussion/");
- $page = explode('<a href="bilder/bild/',$page);
- array_shift($page);
- $images=array();
- foreach($page AS $image) {
- $image=explode('</table>',$image);
- $image=$image[0];
- $image=explode('/"><img alt="" border="0" height="',$image);
- $imagenumber=$image[0];
- $image=explode('" src="',$image[1]);
- $image=explode('" title="',$image[1]);
- $imagethumb=$image[0];
- $image=explode('" width="',$image[1]);
- $imagetitle=$image[0];
- if ($imagethumb!='g/style/img/noshow.jpg')
- array_push($images,array(
- 'number'=>$imagenumber,
- 'thumb'=>$imagethumb,
- 'title'=>$imagetitle)
- );
- }
- return($images);
- } // get_images
- echo $_GET['callback'] . '('.json_encode(get_images()).')';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement