I'm trying to create a web link in the AgentNavigationBar.dtl to our bug
logging system. Our developers sometimes work from home so I thought I could
make the link intelligent based on their IP. Basically I'm trying to do
something like this, but it's not working. How Do I get access to the $ENV
table in DTL or am I going about this all wrong?
<dtl if($ENV{'REMOTE_HOST'} =~ /^192\.168/){ $Data{"Server"} =
"internalname" } else { $Data{"Server"} = "machine.domain.com" }>
and later...
<td><a href="http://$Data{"Server"}/bugtrack/"
target="_blank">$Text{"BugTracker"}</a></td>
Thanks for any assistance.
CT
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs