From 047daf4e44c3f8101246276477c958bcbaf6b78b Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 28 Jul 2012 13:17:38 +0100 Subject: [PATCH] ZipIt plugin reintegrated with error corrected The exclude value in the URL's querystring had a list of exclude items previously seperated by comma. However, we're exploding the whole plugin by commas and because of this, the exclude list ended up becoming subsequent array values, getting caught up in the mix. This in turn caused 1000's of errors p/s as it ended up with a NaN value which ended up as 0 (or -1)? and a very very quick, erroneous setInterval. Now delimiting by asterisks which looks neater, makes more sense visually and solves the problem. Commas now only seperate the 6 array values. --- lib/config.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/config.php b/lib/config.php index ef717fd..73a6d25 100644 --- a/lib/config.php +++ b/lib/config.php @@ -15,6 +15,7 @@ $ICEcoder = array( "plugins" => array( array("Database Admin","images/database.png","margin-top: 3px","plugins/adminer/adminer-3.3.3-mysql-en.php","_blank",""), array("Batch Image Processor","images/images.png","margin-top: 5px","http://birme.net","_blank",""), + array("Zip It!","images/zip-it.png","margin-top: 3px","plugins/zip-it/?zip=|&exclude=*.doc*.gif*.jpg*.jpeg*.pdf*.png*.swf*.xml*.zip","fileControl:Zipping Files","30") ), "theme" => "default", "tabWidth" => 4,