XFileSharing Pro - <TMPL_VAR rand> on download0.html

Message
Author
filebeep
Posts: 5
Joined: Aug 21, 2011 12:43 pm

<TMPL_VAR rand> on download0.html

#1 Postby filebeep » Aug 27, 2011 1:44 am

Hi how do i get <TMPL_VAR rand> to generate a variable on download0.html?

nyan
Posts: 163
Joined: Oct 28, 2010 8:01 pm

Re: <TMPL_VAR rand> on download0.html

#2 Postby nyan » Aug 27, 2011 2:28 pm

filebeep wrote:Hi how do i get <TMPL_VAR rand> to generate a variable on download0.html?

edit index.cgi (or pl) download0 sub
add my $rand = rand(100); (or w/e the correct syntax is. google it., this gives 0-99)
and in the print template add
'rand' = $rand,


Return to “XFileSharing Pro”