From 3d1203e4c3f854ace76fc5c1400dbef514a62413 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 12 Dec 2017 20:36:59 +0100 Subject: [PATCH] admin/commits: page to list last git log messages --- admin/commits.html | 2 ++ admin/commits.php | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 admin/commits.html create mode 100644 admin/commits.php diff --git a/admin/commits.html b/admin/commits.html new file mode 100644 index 0000000..c1d69b6 --- /dev/null +++ b/admin/commits.html @@ -0,0 +1,2 @@ +

Aanpassingen

+ diff --git a/admin/commits.php b/admin/commits.php new file mode 100644 index 0000000..932a556 --- /dev/null +++ b/admin/commits.php @@ -0,0 +1,16 @@ +\n"; + while ( $line = fgets($log) ) { + list ($atime, $author, $message) = explode("\t", $line, 3); + list ($author) = explode(' ', $author); # first name only + printf('
  • %s %s • %s
  • '."\n", + $message, $author, strftime('%F %H:%M', $atime) + ); + } + print "\n\n"; + pclose($log); +} -- 2.30.0