admin('edit')) { require '403.inc.html'; return; } $hash = ltrim($Page->path, '/'); if (!$hash) { return TRUE; } print "

Wijzigingen in $hash

\n"; $gitcmd = "git show ".$hash; $log = popen($gitcmd, 'r'); if (!$log or strpos(fgets($log), "commit $hash") !== 0) { $Page->place['warn'] = "Kon inhoud niet ophalen met $gitcmd"; return; } print '
';
while ( $line = fgets($log) ) {
	print htmlspecialchars($line);
}
print "
\n"; pclose($log); return;