X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=encode.php;fp=encode.php;h=38de08072ea9e7c5a1427d047a23d1f328a124d4;hb=d678dac1ba23e7618e5497b24e046f1f7fa74e5a;hp=c18f723ab6cce4e05cff3ebd9347948fe2f2c8cb;hpb=571c58fff7b139f590b5c4862761092bc1045436;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']; +}