=0;$j--)
{
if(strpos($url[$i], '[' . $j . ']'))
{
array_push($sourceList, $origUrl . $j . '.html');
}
}
}
}
return($sourceList);
}
//getSubSourceList searches every page in the source list for threads. Threads are marked with
//the string "[Reply]". These threads are added to a list, and passed to the getPictureList
//function.
function getSubSourceList($sourceList, $origUrl)
{
$justBeforePos = "";
$justAfterPos = "";
$subSourceList = array();
for($j=0;$j]'))
{
$justAfterPos = strpos($url[$i], 'Reply]') - 2;
$justBeforePos = strrpos($url[$i], '['))
{
$justAfterPos = strpos($url[$j], '" target="_blank">');
$justBeforePos = strpos($url[$j], 'File :