vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Attachments Not in Database (https://vborg.vbsupport.ru/showthread.php?t=34338)

Scott MacVicar 01-20-2002 10:00 PM

This is a hack which allows you to save the attachments as files and not within the database. The main problem with this was the fact that it posed certain security issues, these have been tackled by doing the following
  • Placing the folder below document root
  • Using random hashes to name the file
  • Changing the file extension to .file
  • Never divulging the path to the file

This is a beta hack, it has been tested on a development board. I have had insufficent time to fully complete the attachment importer, this removes the files from the database and creates them as physical files in the attachment folder. I will post this as soon as possible.

Looking forward to your feedback.

Scott

To install this hack upload this file to the admin directory and then view it in your browser.

All the changes that Jawelin suggested have been applied, thanks man :)

Dade 01-21-2002 10:27 PM

Man oh man, thanks! :eek: :D

MrLister 01-22-2002 01:11 AM

this is great. Although I can't experiment much with it I hope people that install it say how it goes.

SaintDog 01-22-2002 03:09 AM

I will install it on my test board tonight and let you know how it goes PPN.

SaintDog 01-22-2002 03:31 AM

Well, I have just installed it and was about to test it yet I noticed the below, is there suppsed to be 5 boxes to place the root directory path in?

Scott MacVicar 01-22-2002 06:14 AM

how many times did you run the query to insert into settings???

Martz 01-22-2002 07:17 AM

PPN you ARE the man :)

Not going to install this just yet, but a massive thanks for making it! - it is needed by the masses!

Scott MacVicar 01-22-2002 07:51 AM

i've completed the other bits i forgot about, the edit and delete options that are placed around the vBulletin files.

I'm in school at the moment so i'll load the file when i get home and mention it in the first post, will also work on an installer file.

SaintDog 01-22-2002 08:14 AM

Quote:

Originally posted by PPN
how many times did you run the query to insert into settings???
Only once for each query - this is being run from my windows server though so there could be some problems.

I will try again though with a clean install.

epic 01-22-2002 08:41 AM

something wrong when use this hack
Code:

Warning: Unable to create '/67ed09c75ae139a48b26650ba25e91cb.file': Permission denied in /home/httpd/html/vb/admin/functions.php on line 1742

Warning: Unable to move '/tmp/phpqNA6RJ' to '/67ed09c75ae139a48b26650ba25e91cb.file' in /home/httpd/html/vb/admin/functions.php on line 1742

My 1742 line is
move_uploaded_file($attachment, "$path");


All times are GMT. The time now is 01:41 PM.

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.01045 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_code_printable
  • (1)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