my $input = new CGI;
exit unless $input->param('template_path');
my $template_path= $input->param('template_path');
$template_path =~ s/[^a-zA-Z_-]*//; #sanitzie
my ($template, $user, $cookie) = get_template_and_user({
template_name => $input->param('template_path'),
template_name => $template_path,
query => $input,
type => "intranet",
authnotrequired => 0,
-