{if $frm_env.HTTP_REFERER|strstr:'ticket'}
{include file="custom/ticket.tpl"}
{else}
{if $userinfo.logged != 1}
<html>
<head>
<META HTTP-EQUIV=Refresh CONTENT="0; URL={"/"|encurl}">
</head>
<body>
<body>
</html>
{/if}
{if !$frm_env.HTTP_REFERER|strstr:'ticket'}
<html>
<head>
<META HTTP-EQUIV=Refresh CONTENT="0; URL={"/"|encurl}">
</head>
<body>
<body>
</html>
{/if}
{/if}
