Changeset 1727 for sandbox/filemanager/inc
- Timestamp:
- 12/01/09 14:33:34 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/filemanager/inc/class.uifilemanager.inc.php
r1726 r1727 577 577 $tuple['icon'] = $this->mime_icon($files['mime_type']); 578 578 $tuple['type'] = $files['type']; 579 if ($files['created'] != ''){ 580 $timestamp = $this->vfs_functions->dateString2timeStamp($files['created']); 581 if (time() - $timestamp > 86400) // Older than yesterday 582 $tuple['creatd']=date("Y-m-d",$timestamp); 583 else 584 $tuple['creatd']=date("H:i",$timestamp); 585 } 586 else 587 $tuple['creatd']=''; 588 if ($files['modified'] != ''){ 589 $timestamp = $this->vfs_functions->dateString2timeStamp($files['modified']); 590 if (time() - $timestamp > 86400) // Older than yesterday 591 $tuple['modifd']=date("Y-m-d",$timestamp); 592 else 593 $tuple['modifd']=date("H:i",$timestamp); 594 } 595 else 596 $tuple['modifd']=''; 597 579 $tuple['creatd'] = $this->vfs_functions->dateString2timeStamp($files['created']); 580 $tuple['modifd'] = $this->vfs_functions->dateString2timeStamp($files['modified']); 598 581 $tuple['size'] = $files['size']; 599 582 $tuple['mime'] = $files['mime_type']; … … 607 590 608 591 } 609 592 // TODO Order files directly into SQL 610 593 foreach ($output as $key => $row) { 611 $temp[$key] = $row[$this->criteria];594 $temp[$key] = strtoupper($row[$this->criteria]); 612 595 } 613 596 if ($this->otype == "1")
Note: See TracChangeset
for help on using the changeset viewer.