-
Notifications
You must be signed in to change notification settings - Fork 53
REQ_MOB
Jurek Muszyński edited this page Sep 8, 2018
·
3 revisions
Answers whether request comes from mobile user agent. Mutually exclusive with REQ_DSK.
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\">");