set("logname",$logname); $tpl->set("msg",$msg); echo $tpl->fetch($tpl_file); } ?>