G
G
Goldsliders2021-01-28 16:45:48
PHP
Goldsliders, 2021-01-28 16:45:48

How to get HTTP_USER_AGENT in smarty?

I need to get HTTP_USER_AGENT in smarty

<? if (!isset($_SERVER['HTTP_USER_AGENT']) || stripos($_SERVER['HTTP_USER_AGENT'], '.....') === false){ ?>

Something like that only in smarty, heeeelp

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
galaxy, 2021-01-28
@Goldsliders

{$smarty.server.HTTP_USER_AGENT}
https://www.smarty.net/docs/en/language.variables....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question