main_website/html/includes/mtime.php
thopic d0ee343b45
Use last commit date instead of unix mtime
* simplify last website mtime script
* link appropriate commit to last mtime
2023-07-11 11:23:24 +02:00

6 lines
339 B
PHP

<?php
$last_rev = exec('git log -1 --pretty=format:"%H" '.$this_file);
$mtime = exec('LANG="fr_FR.UTF-8" git log -1 --pretty="format:%cr" '.$this_file);
?>
<p style="text-align:right;">Dernière mise à jour <a href="https://git.gnous.fr/gnous/main_website/commit/<?php echo $last_rev;?>" target="_blank"><?php echo $mtime; ?></a></p>