XFileSharing Pro - Include php code in .html pages

Message
Author
catalaur
Posts: 9
Joined: Jul 20, 2010 1:32 pm

Include php code in .html pages

#1 Postby catalaur » Aug 09, 2010 11:08 am

Hello, it is possible to include php code in .html pages? If not, I was thinking of adding a new template directive/tag eg. TMPL_LANG which will execute a <?php echo SOME_LANGUAGE_CONSTANT?> Where/how can i do that?

Thank you!

naga
Posts: 45
Joined: Dec 22, 2008 3:40 pm

#2 Postby naga » Aug 09, 2010 11:54 am

lol php code in a perl script


Anyways
what you need to do is use the tmpl_var codes in /cgi-bin/templates files
and then define the variables in index.pl (eg: my $LANG_SOMETHING = 'something';)

catalaur
Posts: 9
Joined: Jul 20, 2010 1:32 pm

#3 Postby catalaur » Aug 09, 2010 12:36 pm

Ok, maybe php it wasn't such a good idea. Perl can do the job also. I am trying to translate all the text in my language :)