I'm building a PHP web-mapping application which has own mapserver. I have two templates for each layer - a template for guest and for logged user. My normal mapfile has a line like
TEMPLATE "templates/template.html"
But I have also a templates_guest folder which contains html templates for guests. How to change the 'TEMPLATE' parameter in runtime? If user is logged in, the TEMPLATE path should be templates_guest/template.html