Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Latest pic at /b/

Name: NiggerSlut 2007-09-23 23:09 ID:wzDxoX0m

<?php
//Board address
$address = 'http://img.4chan.org/b';;

//RegExp Patterns
$PicPattern = '/\/src\/.+?.\.(jpg|png|gif|swf)/';
$ReplyPattern = '/res\/.+?.html/';

//Parse Threads from Boards first page
$page = file_get_contents("$address/imgboard.html");
preg_match_all($ReplyPattern, $page, $threads);

//Get picture URL:s from the first Thread
$page = file_get_contents("$address/" .$threads[0][0]);
preg_match_all($PicPattern, $page, $pics);
$lastpic = end($pics['0']);

//Echo result
echo "<img src='$address$lastpic' height='50%'>";
die();
?>

Name: Anonymous 2007-09-24 6:42 ID:cllXr1cZ

OP is a faggot

<?php
preg_match_all("/res\/.+?.html/",file_get_contents("http://img.4chan.org/b/imgboard.html"),$t);
preg_match_all("/\/src\/.+?.\.(jpg|png|gif|swf)/",file_get_contents("http://img.4chan.org/b/".$t[0][0]),$s);
file_put_contents(str_replace("/src/","",end($s[0])),file_get_contents("http://img.4chan.org/b".end($s[0];)));
?>

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List