Hello,
How can i assign global variables to be available on all templates?
Thanks for your attention,
Andre
XFileSharing Pro - Assigning Global Variables to Templates
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
In index.cgi after line
insert
replace VAR1 and XXX with your key/value.
Same for index_dl.pm if you need in on download pages.
Code: Select all
my $ses = Session->new();
Code: Select all
$ses->{lang}->{VAR1} = "XXX";
Same for index_dl.pm if you need in on download pages.