$user; } // if sha specified, use that revision of licence if ($sha != "") { $out = array(); exec("git show " . $sha . ":LICENSE.html", $out, $r); if ($r == 0) { $license = implode("\n", $out); } } // if we didn't manage to read one in, use latest if ($license == "") { $license = file_get_contents('LICENSE.html'); } // replace info tag and display $info = date('Y') . ' ' . $holder; echo str_replace('{{info}}', $info, $license); ?>