Cambios en titulo, en boton fojas, y en indices online

This commit is contained in:
2020-03-31 19:41:26 -03:00
parent 8ef8b0df42
commit 2ae6826ff4
19 changed files with 213 additions and 66 deletions

View File

@ -14,8 +14,12 @@ class Documentos {
$filename = implode(DIRECTORY_SEPARATOR, [
$container->get('folders.upload'),
$post['filename'] . '.pdf'
$post['filename']
]);
if (isset($post['month'])) {
$filename .= '_' . implode('_', array_reverse(explode(' ', $post['month'])));
}
$filename .= '.pdf';
$file->moveTo($filename);
$status = (file_exists($filename) and filemtime($filename) == time());