|
|
@ -16,7 +16,7 @@ |
|
|
|
// the bigger the file, the darker the shade of grey; megabytes*2 |
|
|
|
// the bigger the file, the darker the shade of grey; megabytes*2 |
|
|
|
$simple_size_color = intval(200-$file['size']/(1024*1024)*2); |
|
|
|
$simple_size_color = intval(200-$file['size']/(1024*1024)*2); |
|
|
|
if($simple_size_color<0) $simple_size_color = 0; |
|
|
|
if($simple_size_color<0) $simple_size_color = 0; |
|
|
|
$relative_deleted_date = OCP\relative_modified_date($file['mtime']); |
|
|
|
$relative_deleted_date = OCP\relative_modified_date($file['timestamp']); |
|
|
|
// the older the file, the brighter the shade of grey; days*14 |
|
|
|
// the older the file, the brighter the shade of grey; days*14 |
|
|
|
$relative_date_color = round((time()-$file['mtime'])/60/60/24*14); |
|
|
|
$relative_date_color = round((time()-$file['mtime'])/60/60/24*14); |
|
|
|
if($relative_date_color>200) $relative_date_color = 200; |
|
|
|
if($relative_date_color>200) $relative_date_color = 200; |
|
|
|