diff --git a/plugins/zip-it/index.php b/plugins/zip-it/index.php index b5645cf..a3fd8bd 100644 --- a/plugins/zip-it/index.php +++ b/plugins/zip-it/index.php @@ -1,29 +1,26 @@ - Zip It! for ICEcoder - open($zipName,ZIPARCHIVE::CREATE)!== true) {return false;} + $excludeFilesFolders = explode(",",strClean($_GET['exclude'])); foreach($zipFiles as $file) { - $zip->addFile($file,str_replace($_SERVER['DOCUMENT_ROOT']."/","",$file)); + $canAdd=true; + for ($i=0;$iaddFile($file,str_replace($_SERVER['DOCUMENT_ROOT']."/","",$file)); + } } $zip->close(); return file_exists($zipName); @@ -67,5 +71,4 @@ if($_SESSION['userLevel']==10) { } ?> - \ No newline at end of file