Skip to content

Commit

Permalink
Create zip.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vulnz authored Apr 25, 2018
1 parent 47f54bb commit 3c809d2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions libs/zip.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
$zip = zip_open("wbr.zip");
if ($zip) {
while ($zip_entry = zip_read($zip)) {
$fp = fopen("lol/".zip_entry_name($zip_entry), "w");
if (zip_entry_open($zip, $zip_entry, "r")) {
$buf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry));
fwrite($fp,"$buf");
zip_entry_close($zip_entry);
fclose($fp);
}
}
zip_close($zip);
}
?>

0 comments on commit 3c809d2

Please sign in to comment.