From 2aa37ba0d64215dc8f18a6c357068afd08428b73 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Mon, 08 May 2017 07:27:42 +0000 Subject: [PATCH] Application manifest files --- version.php | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/version.php b/version.php index 569683e..a518c36 100644 --- a/version.php +++ b/version.php @@ -1,2 +1,9 @@ <?php -echo max(array_map('filemtime', glob('*.{html,js,css}', GLOB_NOSORT|GLOB_BRACE))); +$files = glob('*.{html,js,css}', GLOB_NOSORT|GLOB_BRACE); + +echo json_encode( + array_combine( + $files, + array_map('filemtime', $files) + ) +); -- Gitblit v1.9.1