X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=encode.php;h=38de08072ea9e7c5a1427d047a23d1f328a124d4;hb=8a5f6e7c208344736b432515d9b93a1aa78790ed;hp=c18f723ab6cce4e05cff3ebd9347948fe2f2c8cb;hpb=b58414153a4f1b8107054ce17f2922e53bf14a26;p=wfpl.git diff --git a/encode.php b/encode.php index c18f723..38de080 100644 --- a/encode.php +++ b/encode.php @@ -462,3 +462,12 @@ function enc_linkify($str) { } return $ret; } + +# turns a filename into the unix timestamp of that files modification date +function enc_mtime($dummy, $filename) { + $stat = stat($filename); + if ($stat === false) { + return ''; + } + return '' . $stat['mtime']; +}