$data) {
$data = array_reverse($data, true);
$changelog[$time] = array();
foreach($data as $id => $change) {
if(isset($_GET['branch']) && $change['branch'] != $_GET['branch'])
continue;
if(isset($_GET['user']) && $change['userid'] != $_GET['user'])
continue;
if(!(int)$change['public'])
continue;
$changelog[$time][$id] = $change;
}
if(empty($changelog[$time][0]))
unset($changelog[$time]);
}
if(isset($_GET['xml'])) {
print '';
print '