Skip to content

REQ_TAB

Jurek Muszyński edited this page Dec 20, 2021 · 1 revision

bool REQ_TAB

Description

Answers whether request comes from tablet user agent. Mutually exclusive with REQ_DSK and REQ_MOB.

Returns

Returns true if request is from desktop, otherwise false.

Example

// serve different CSS, depending on user agent
OUT("<link rel=\"stylesheet\" type=\"text/css\" href=\"%s.css\">", REQ_MOB?"mob":"dsk");
Clone this wiki locally