header('Location: medias.php?dir=' . urlencode($dir) . ($view != '' ? '&v=' . $view : '')); exit; } elseif (!empty($_GET['mini']) and !empty($_GET['hash']) and $_GET['hash'] == $_SESSION['hash']) { $plxMedias->makeThumb($_GET['mini']); header('Location: medias.php?dir=' . urlencode($dir) . ($view != '' ? '&v=' . $view : '')); exit; } elseif (!empty($_GET['deldir']) and !strstr($_GET['dir'], '../') and !empty($_GET['hash']) and $_GET['hash'] == $_SESSION['hash']) { $plxMedias->delDir(urldecode($_GET['deldir'])); header('Location: medias.php?dir=' . urlencode($dir) . ($view != '' ? '&v=' . $view : '')); exit; } elseif (!empty($_GET['delfile']) and !strstr($_GET['dir'], '../') and !empty($_GET['hash']) and $_GET['hash'] == $_SESSION['hash']) { $plxMedias->delFile(urldecode($_GET['delfile'])); header('Location: medias.php?dir=' . urlencode($dir) . ($view != '' ? '&v=' . $view : '')); exit; } elseif (!empty($_POST['send']) and !empty($_FILES)) { $plxMedias->upload($dir, $_FILES['file'], $medias); header('Location: medias.php?dir=' . urlencode($dir) . ($view != '' ? '&v=' . $view : '')); exit; } elseif (!empty($_POST['change'])) { $plxMedias->moveFile($dir, $_POST["files"]); header('Location: medias.php?dir=' . urlencode($dir) . ($view != '' ? '&v=' . $view : '')); exit; } elseif (!empty($_POST['thumbs'])) { $plxMedias->makeThumbs($dir); header('Location: medias.php?dir=' . urlencode($dir) . ($view != '' ? '&v=' . $view : '')); exit; } # Recuperation des fichiers du dossier en cours $plxMedias->getDirContent($dir); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"