vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Zip Attachments (https://vborg.vbsupport.ru/showthread.php?t=100933)

Jafo232 11-15-2005 10:00 PM

Zip Attachments
 
This extension allows your users to decide if they want an attachment to be zipped up upon upload. The file(s) are zipped before VB checks the size limit. It always annoyed me when I have to post a text document and it is too big for that extension setting. Zipping a text file greatly reduces the size.

This extension should also save space in your attachments database as all new files will be compressed with the zip method.

Installation is simple:

1. Upload the zip.lib.php file to your forums directory.

2. Upload the xml file as a plugin.

3. Tiny edit to template newattachment.

4. Click Install

I will support here as I have time.

This modification is FREE of charge, but if you wish to reward me for my work, and encourage future modifications by me, please donate below:

https://vborg.vbsupport.ru/external/2010/02/12.gif

Benj 11-16-2005 02:34 PM

cooool

Jafo232 11-16-2005 02:43 PM

Actually, sorry, uploaded the incomplete xml file, please redownload..

Oblivion Knight 11-16-2005 02:47 PM

This also beats adding a load of additional attachment extensions manually. Although of course, this could also potentially be a huge security risk.. No more so than .zip files being allowed in the first place though!

Shack Networks 11-16-2005 03:20 PM

Does just what it says on the tin...

/me clicks install

silurius 11-16-2005 03:38 PM

Quote:

Originally Posted by Oblivion Knight
This also beats adding a load of additional attachment extensions manually. Although of course, this could also potentially be a huge security risk.. No more so than .zip files being allowed in the first place though!

Could you please explain this .zip risk to a security dunderhead such as myself? Might be a good thing to mention up in the extension overview.

Jafo232 11-16-2005 03:40 PM

Quote:

Originally Posted by silurius
Could you please explain this .zip risk to a security dunderhead such as myself? Might be a good thing to mention up in the extension overview.

There really isn't one. Your users currently have the right to upload zip files I assume? If so, there really is no difference.

Rich 11-16-2005 03:47 PM

Hello,

A risk would be a member uploading an executable file type in zip format. When opened, all hell could break loose on unsuspecting users. I personally have .zip files as an attachment type that is not allowed for this very reason.

I think the concept of this modification is great for users that already allow the .zip extension as a valid upload type.

I am not sure if it is possible, but it would be great if there were a way to have uploaded zip files scanned for viruses in the same manner that varying email apps do. I know this is probably very difficult to do, but it would be very nice. lol

Jafo232 11-16-2005 03:51 PM

Actually I am working on that right now.. This thread gave me the idea. I do it for another application of mine, I am sure I can fit it in pretty quick.

Cyricx 11-16-2005 04:23 PM

Maybe just add a template modification in the attachments section with like a warning reminding users to always scan zip files before opening?


All times are GMT. The time now is 01:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01090 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete