From 4d882e6d16036c99055cfb8df0bf8c25bcbb8d8c Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sun, 14 May 2017 22:21:25 +0000 Subject: [PATCH] Change alert view and add top menu --- 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