processUploads(); if($IMConfig['allow_delete']) { $manager->deleteFiles(); } $refreshDir = false; //process any directory functions if(($IMConfig['allow_delete'] && $manager->deleteDirs()) || $manager->processNewDir()) $refreshDir = true; //check for any sub-directory request //check that the requested sub-directory exists //and valid if(isset($_REQUEST['dir'])) { $path = rawurldecode($_REQUEST['dir']); if($manager->validRelativePath($path)) $relative = $path; } $manager = new ImageManager($IMConfig); //get the list of files and directories $list = $manager->getFiles($relative); /* ================= OUTPUT/DRAW FUNCTIONS ======================= */ /** * Draw the files in an table. */ function drawFiles($list, &$manager) { global $relative; global $IMConfig; switch($IMConfig['ViewMode']) { case 'details': { ?> $file) { ?>
NameFilesizeDimensions
Trash Edit
$file) { ?>
<?php echo $entry; ?> - <?php echo Files::formatSize($file['stat']['size']); ?>
Trash Edit
$dir) { ?>
<?php echo $dir['entry']; ?>
Trash
No Images Found
Invalid base directory: config['images_dir']; ?>
Image List isValidBase() == false) { drawErrorBase($manager); } elseif(count($list[0]) > 0 || count($list[1]) > 0) { ?>