XFileSharing Pro - error : download a file from a visitor

Message
Author
adiga
Posts: 177
Joined: Jul 23, 2009 2:27 am

error : download a file from a visitor

#1 Postby adiga » Nov 05, 2009 3:42 pm

When download a file from a visitor to show his link to the following form

http://site.com/gi-bin/dl.cgi/5nmlysame ... m/file/zip

Must direct download link without the emergence of the previous

Please fix

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Nov 06, 2009 9:01 am

In index.cgi find

Code: Select all

$ses->redirect($file->{direct_link}) if $no_checks && $ses->getUser->{usr_direct_downloads};
and add below

Code: Select all

$ses->redirect($file->{direct_link}) unless $c->{direct_links};