vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   File redirection script for users only (https://vborg.vbsupport.ru/showthread.php?t=92215)

Parabolart 07-14-2005 11:57 PM

File redirection script for users only
 
Can anyone make a script like this...

For example.. I upload a file, and the script make's an "id". so like.. if i want to download the file.. I go to .../file.php?id=35 and it then checks if you are a registered used and then redirects you to the file. Is this possible?

The reason being is that I don't want to use attachments on big files that will cause my database to get really big.

Marco van Herwaarden 07-15-2005 03:10 AM

Then move your attachments from Database to filesystem. You can do this easy from ACP.

Parabolart 07-15-2005 04:42 PM

Quote:

Originally Posted by MarcoH64
Then move your attachments from Database to filesystem. You can do this easy from ACP.

where can i find tat setting?

edit: nevermind found it. (Attachments -> attachment storage type)

Marco van Herwaarden 07-15-2005 07:37 PM

Yup :D

shiva 07-15-2005 10:14 PM

Would kind of like this anyway, even though i use the filesystem. It's the amount of bandwidth used, and resources, and there should be some way to restrict downloads from the attachment system by usergroups.


All times are GMT. The time now is 07:11 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.01064 seconds
  • Memory Usage 1,712KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete