Compare Revisions
Last modification
- Rev 29 2013-08-18 11:28:52
- Author: PointedEars
- Log message:
cljs: Consider all XML includes for Last-Modified
/trunk/cljs/index.php |
3,22 → 3,12 |
$encoding = 'UTF-8'; |
header("Content-Type: text/html" . ($encoding ? "; charset=$encoding" : "")); |
|
$modi = max( |
array_map('filemtime', |
array_diff( |
array_merge( |
scandir(__DIR__), |
array_map( |
function ($e) { |
return 'sections' . DIRECTORY_SEPARATOR . $e; |
}, |
scandir('sections') |
) |
), |
array('.', '..') |
) |
) |
); |
$modi = max(array( |
@filemtime(__FILE__), |
@filemtime('index.xml'), |
@filemtime('index.xsl'), |
@filemtime('faq.css'), |
)); |
|
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $modi) . ' GMT'); |
|