1) { if ($row['type'] != "keepit_directory") { $filesize = filesize("../files/".$id.".".$row['type']); } else { $filesize = filesize_of_folder($row['id']); } function getLink($id, $ext) { if ($ext == "scribe") { return "apps/scribe.php?doc=open&id=".$id; } else if ($ext == "cascade") { return "apps/cascade.php?doc=open&id=".$id; } else { return "files/".$id.".".$ext; } return ""; } function getIconURL($ext) { if ($ext=="keepit_directory") { return "images/folder.png"; } else { $x = scandir("../icons/"); if (in_array($ext.".png",$x)) { return "icons/".$ext.".png"; } else { return "images/file.png"; } } } function filesize_format($size) { $i = -1; $byteUnits = array(' KB', ' MB', ' GB', ' TB', 'PB', 'EB', 'ZB', 'YB'); do { $size = $size / 1024; $i++; } while ($size > 1024); return round(max($size, 0.1),1) ." ". $byteUnits[$i]; }; ?>
".$row['type'].""; ?>
Type:
Size:
Rename
Download
Delete
Folder contents:
".$frow['title']."
"; } ?>
Zipped folder contents:
open("../files/".$row['id'].".zip"); if ($res == TRUE) { $zip->extractTo('../temp/'.$row['id'].'/'); $zip->close(); $contents = scandir("../temp/".$row['id']."/",0); foreach ($contents as $item) { echo "
".$item."
"; } } else { echo 'Failed to open contents.'; } ?>
No preview available.
Something went wrong... sorry!]