2 if (!$User->admin('edit')) {
3 require '403.inc.html';
7 $hash = ltrim($Page->path, '/');
12 print "<h2>Wijzigingen in $hash</h2>\n";
14 $gitcmd = "git show ".$hash;
15 $log = popen($gitcmd, 'r');
16 if (!$log or strpos(fgets($log), "commit $hash") !== 0) {
17 $Page->place['warn'] = "Kon inhoud niet ophalen met <code>$gitcmd</code>";
22 while ( $line = fgets($log) ) {
23 print htmlspecialchars($line);