load_file($url);
$output = "Change Log:
";
foreach ($html->find('.changelist') as $list)
{
foreach ($list->find('.comment') as $comment)
{
$text = $comment->innertext;
foreach ($commitblacklist as $matchtext)
{
if (stripos($text, $matchtext) !== FALSE)
{
$text = "";
}
}
if ($text != "")
{
$output .= "- $text
\n";
}
}
}
$output .= "
";
file_put_contents('status.log', "Collected changes! ", FILE_APPEND);
return $output;
}
?>