mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
fix to show all files in backup_dir, not only entrys with different ctime (ctime was used as key for list)
This commit is contained in:
parent
7a4f191fb3
commit
686ada2d40
@ -224,18 +224,18 @@ while($handle && ($file = readdir($handle)))
|
||||
{
|
||||
if ($file != '.' && $file != '..')
|
||||
{
|
||||
$files[filectime($db_backup->backup_dir.'/'.$file)] = $file;
|
||||
$files[$file] = filectime($db_backup->backup_dir.'/'.$file);
|
||||
}
|
||||
}
|
||||
if ($handle) closedir($handle);
|
||||
|
||||
krsort($files);
|
||||
foreach($files as $ctime => $file)
|
||||
arsort($files);
|
||||
foreach($files as $file => $ctime)
|
||||
{
|
||||
$size = filesize($db_backup->backup_dir.'/'.$file);
|
||||
$setup_tpl->set_var(array(
|
||||
'filename' => $file,
|
||||
'date' => date('Y-m-d H:i',$ctime),
|
||||
'mod' => date('Y-m-d H:i',$ctime),
|
||||
'size' => sprintf('%3.1lf MB (%d)',$size/(1024*1024),$size),
|
||||
'actions' => '<input type="submit" name="download['.$file.']" value="'.htmlspecialchars(lang('download')).'" /> '."\n".
|
||||
'<input type="submit" name="delete['.$file.']" value="'.htmlspecialchars(lang('delete')).'" onclick="return confirm(\''.
|
||||
@ -264,6 +264,7 @@ $setup_tpl->set_var(array(
|
||||
'lang_backup_files' => lang('check to backup and restore the files directory (may use a lot of space, make sure to configure housekeeping accordingly)'),
|
||||
'lang_filename' => lang('filename'),
|
||||
'lang_date' => lang('created'),
|
||||
'lang_mod' => lang('modified'),
|
||||
'lang_size' => lang('size'),
|
||||
));
|
||||
|
||||
|
@ -85,14 +85,14 @@
|
||||
<table style="border: 1px solid black; border-collapse: collapse;" border="1" width="100%">
|
||||
<tr align="center">
|
||||
<td>{lang_filename}</td>
|
||||
<td>{lang_date}</td>
|
||||
<td>{lang_mod}</td>
|
||||
<td>{lang_size}</td>
|
||||
<td>{lang_actions}</td>
|
||||
</tr>
|
||||
<!-- BEGIN set_row -->
|
||||
<tr align="center">
|
||||
<td>{filename}</td>
|
||||
<td>{date}</td>
|
||||
<td>{mod}</td>
|
||||
<td>{size}</td>
|
||||
<td>{actions}</td>
|
||||
</tr>
|
||||
|
Loading…
Reference in New Issue
Block a user