-
Notifications
You must be signed in to change notification settings - Fork 2
REQ_MOB
Jurek Muszyński edited this page Dec 20, 2021
·
5 revisions
Answers whether request comes from mobile user agent. Mutually exclusive with REQ_DSK and REQ_TAB.
Returns true if request is from mobile, otherwise false.
// serve different CSS, depending on user agent
OUT("<link rel=\"stylesheet\" type=\"text/css\" href=\"%s.css\">", REQ_MOB?"mob":"dsk");
if ( REQ_MOB )
OUT("<meta name=\"viewport\" content=\"width=device-width\">");