$insertMode = $_REQUEST['mode']; } if (!isset($insertMode)) { $insertMode = "image"; } require_once 'config.inc.php'; require_once 'Classes/ExtendedFileManager.php'; //default path is / $relative = '/'; $manager = new ExtendedFileManager($IMConfig, $insertMode); //process any file uploads $uploadStatus = $manager->processUploads(); //process any file renames $renameStatus = $manager->processRenames(); //process paste $pasteStatus = isset($_GET['paste']) ? $manager->processPaste() : false; $refreshFile = $manager->deleteFiles() ? true : false; $refreshDir = false; //process any directory functions if ($manager->deleteDirs() || $manager->processNewDir() || $pasteStatus || $renameStatus) { $refreshDir = true; } $diskInfo = $manager->getDiskInfo(); //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; }
} if (!isset($insertMode)) { $insertMode = "image"; } require_once 'config.inc.php'; require_once 'Classes/ExtendedFileManager.php'; //default path is / $relative = '/'; $manager = new ExtendedFileManager($IMConfig, $insertMode); //process any file uploads $uploadStatus = $manager->processUploads(); //process any file renames $renameStatus = $manager->processRenames(); //process paste if (isset($_GET['paste'])) { $pasteStatus = $manager->processPaste(); } if ($manager->deleteFiles()) { $refreshFile = true; } $refreshDir = false; //process any directory functions if ($manager->deleteDirs() || $manager->processNewDir() || $pasteStatus || $renameStatus) { $refreshDir = true; } $diskInfo = $manager->getDiskInfo(); //check for any sub-directory request //check that the requested sub-directory exists //and valid if (isset($_REQUEST['dir'])) { $path = rawurldecode($_REQUEST['dir']);