Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
571c58f
)
add enc_mtime
author
Jason Woofenden
<jason@jasonwoof.com>
Mon, 9 Jun 2014 05:20:18 +0000
(
01:20
-0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Mon, 9 Jun 2014 05:20:18 +0000
(
01:20
-0400)
encode.php
patch
|
blob
|
history
diff --git
a/encode.php
b/encode.php
index
c18f723
..
38de080
100644
(file)
--- a/
encode.php
+++ b/
encode.php
@@
-462,3
+462,12
@@
function enc_linkify($str) {
}
return $ret;
}
}
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'];
+}