vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Links and Files Database (https://vborg.vbsupport.ru/showthread.php?t=60403)

dlouly47 11-09-2004 10:10 PM

Ok Got it up however when I or users try to download , its starts fine but then closes in about 20 seconds? Cuts the file download short? It must be settings in my PHP.INI? Please let me know how to adjust this ..

Thanks again for the wonderful work

AndrewD 11-10-2004 10:43 AM

Quote:

Originally Posted by dlouly47
Ok Got it up however when I or users try to download , its starts fine but then closes in about 20 seconds? Cuts the file download short? It must be settings in my PHP.INI? Please let me know how to adjust this ..

Thanks again for the wonderful work

If it's your php.ini settings, try looking at the section

PHP Code:


;;;;;;;;;;;;;;;;;;;
Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time 30     Maximum execution time of each scriptin seconds
max_input_time 
60    Maximum amount of time each script may spend parsing request data
memory_limit 
8M      Maximum amount of memory a script may consume (8MB


Cent 11-10-2004 10:54 AM

Hey AndrewD! HELP PLEASE!!!

How can I make, that who adds the link, wrote the E-mail? That on a mail the letter was sent it, that the reference has been added in the catalogue! Sorry for my English!

AndrewD 11-10-2004 11:33 AM

Quote:

Originally Posted by Ranam2k
Hi AndrewD
Thaks alot of the script i still use it since ver 1 :)
i wanted to ask you something

In my site i add the download files in a diffrent server & on that server i enabled the hotlinking protection even for direct request
the only way to download is if the refferal for the download is comming from my site

is there a way to add a specific refferal Url in the script so it send it with the link while the force redirection option is on ?! or even while the force redirection is off ?!

Thinking about this (but without spending time trying it out ;))...

If force_redirect is off, etc, the download is handled as a series of reads/writes. The code uses an fopen() call to access the download file, and this turns into an HTTP GET. My Apache log shows that this GET is recorded against the IP address of the requesting server, so your file host should be able to see that the request is legitimate.

If force_redirect is on, then the code eventually drops through to the STANDARD_REDIRECT template within Vbulletin. This sends a series of HTTP headers to the file host, and I would think you could add an HTTP_REFERER.

AndrewD 11-10-2004 11:35 AM

Quote:

Originally Posted by Cent
Hey AndrewD! HELP PLEASE!!!

How can I make, that who adds the link, wrote the E-mail? That on a mail the letter was sent it, that the reference has been added in the catalogue! Sorry for my English!

Hi Cent. Sorry, I'm not quite sure I understand what you're asking.

Do you want the hack to send an email to the person who creates a new link when that link is accepted by the moderator?

Let me know, and I'll try to help.

dlouly47 11-10-2004 05:45 PM

Quote:

Originally Posted by AndrewD
If it's your php.ini settings, try looking at the section

PHP Code:


;;;;;;;;;;;;;;;;;;;
Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time 30     Maximum execution time of each scriptin seconds
max_input_time 
60    Maximum amount of time each script may spend parsing request data
memory_limit 
8M      Maximum amount of memory a script may consume (8MB


Thanks Andrew... I actually thought that was it and I replaced the Values to
-----------------------------------------------------
max_execution_time = 0 ; Maximum execution time of each script, in seconds
max_input_time = 0 ; Maximum amount of time each script may spend parsing request data
----------------------------------
As well as used set_timeout = 0 on top of the php.ini

and it works like a charm.. Again.. Thank you for the hack and the support.. Awesome man!@

Cent 11-10-2004 09:28 PM

Quote:

Do you want the hack to send an email to the person who creates a new link when that link is accepted by the moderator?
Yes! But not "when that link is accepted by the moderator". I don`t moderete the new links. =)

I want, that after the adding a new link, mail was sent to person who creates a new link. WOW! +)

Sorrrrry for my English! ;)

Ranma2k 11-10-2004 11:51 PM

Quote:

Originally Posted by Cent
Yes! But not "when that link is accepted by the moderator". I don`t moderete the new links. =)

I want, that after the adding a new link, mail was sent to person who creates a new link. WOW! +)

Sorrrrry for my English! ;)


Please chose one of the following :
*if a person adds a link the system will send an e-mail to him conforming that it was added ?!
*if a person adds a link the system will send an e-mail to the people subscriped to it !
* if a person ads a link the system will e-mail the admin about it !


i'm out of options :)

Ranma2k 11-10-2004 11:53 PM

Quote:

Originally Posted by AndrewD
Thinking about this (but without spending time trying it out ;))...

If force_redirect is off, etc, the download is handled as a series of reads/writes. The code uses an fopen() call to access the download file, and this turns into an HTTP GET. My Apache log shows that this GET is recorded against the IP address of the requesting server, so your file host should be able to see that the request is legitimate.

If force_redirect is on, then the code eventually drops through to the STANDARD_REDIRECT template within Vbulletin. This sends a series of HTTP headers to the file host, and I would think you could add an HTTP_REFERER.


i C
i'll give it a try .. and i'll post the results here :)

Cent 11-11-2004 08:09 AM

Quote:

*if a person adds a link the system will send an e-mail to him conforming that it was added ?!
:) Thanks!


All times are GMT. The time now is 01:47 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.02240 seconds
  • Memory Usage 1,755KB
  • 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_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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