modification dates on CSS/JS links

This commit is contained in:
Shish
2012-03-12 23:17:20 +00:00
parent 70e488a165
commit a5ba9279c4
2 changed files with 12 additions and 5 deletions

View File

@ -339,6 +339,13 @@ function make_form($target, $method="POST", $multipart=False, $form_id="", $onsu
return '<form action="'.$target.'" method="'.$method.'" '.$extra.'>'.$auth;
}
function mtimefile($file) {
$data_href = get_base_href();
$mtime = filemtime($file);
return "$data_href/$file?$mtime";
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
* CAPTCHA abstraction *