XFileSharing Pro - How to change the Direct Link format?

Message
Author
afdah
Posts: 147
Joined: Jan 27, 2012 2:23 pm

How to change the Direct Link format?

#1 Postby afdah » Aug 17, 2012 10:23 am

I noticed the direct link is stored in <TMPL_VAR direct_link>

Default format is:
http://domain.com/files/X/code/filename

How do I change to let's say:
http://domain.com/download/X/code/filename

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#2 Postby ankurs » Aug 17, 2012 11:00 am

in index_dl.pm, edit the below line

$file->{srv_htdocs_url}=~s/\/files//;

you might need to do some changes on file server, like changing htdocs_dir path in config