Blog/.deprecated/unpack.php

12 lines
190 B
PHP

<?php
$zipFile = $_GET['f'];
$zip = new ZipArchive;
if ($zip->open($zipFile) === TRUE) {
$zip->extractTo('.');
$zip->close();
unlink(zipFile);
}
?>