Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Guess that agents with "iPad" in their name do not want the narrow screen versions of the page. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
b76eebea8793b3b2fd9f507485674122 |
| User & Date: | drh 2018-09-27 02:17:25.015 |
Context
|
2018-09-28
| ||
| 14:59 | Fix typo in the event.wiki page. ... (check-in: 335d529597 user: drh tags: trunk) | |
|
2018-09-27
| ||
| 02:17 | Guess that agents with "iPad" in their name do not want the narrow screen versions of the page. ... (check-in: b76eebea87 user: drh tags: trunk) | |
|
2018-09-26
| ||
| 18:45 | "New Message" -> "New Thread" in forum. ... (check-in: e11d391711 user: wyoung tags: trunk) | |
Changes
Changes to src/cgi.c.
| ︙ | ︙ | |||
2075 2076 2077 2078 2079 2080 2081 2082 2083 |
** mobile device.
**
** The returned value is a guess. Use it only for setting up defaults.
*/
int cgi_from_mobile(void){
const char *zAgent = P("HTTP_USER_AGENT");
if( zAgent==0 ) return 0;
return sqlite3_strlike("%mobile%", zAgent, 0)==0;
}
| > | 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 |
** mobile device.
**
** The returned value is a guess. Use it only for setting up defaults.
*/
int cgi_from_mobile(void){
const char *zAgent = P("HTTP_USER_AGENT");
if( zAgent==0 ) return 0;
if( sqlite3_strglob("*iPad*", zAgent)==0 ) return 0;
return sqlite3_strlike("%mobile%", zAgent, 0)==0;
}
|