Differences From Artifact [8f5c6cb699]:
- File src/cgi.c — part of check-in [71a2d68a7a] at 2021-03-02 07:11:08 on branch skin-preference-cookie — Skin selection is now stored in the user display prefs cookie and can be modified from any page by passing the skin=xyz URL parameter. Gets trumped by /draftX URI or --skin CLI flag or skin: CGI config setting. Removed /skn_XYZ URI handling. /skins page now uses the new mechanism for skin selection. UDC is now rendered on every page if it was modified during that request, regardless of the 'udc' URL parameter. See discussion at [https://fossil-scm.org/forum/forumpost/4d3a10c72a|/forumpost/4d3a10c72a]. (user: stephan size: 72725) [more...]
To Artifact [c346671d25]:
- File src/cgi.c — part of check-in [7db18bfe96] at 2021-03-02 15:01:55 on branch trunk — When skin=X query parameter is processed, if a param named 'once' is also set then apply the skin change but do not save it to the cookie, as per /chat discussion. The intent is mainly to facilitate the development of docs using both light- and dark-mode skins at the same time, which is somewhat painful when the cookie constantly gets overwritten. (user: stephan size: 72739) [more...]
| ︙ | ︙ | |||
1170 1171 1172 1173 1174 1175 1176 |
z = (char*)P("QUERY_STRING");
if( z ){
z = fossil_strdup(z);
add_param_list(z, '&');
z = (char*)P("skin");
if(z){
char *zErr = skin_use_alternative(z, 2);
| | | 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 |
z = (char*)P("QUERY_STRING");
if( z ){
z = fossil_strdup(z);
add_param_list(z, '&');
z = (char*)P("skin");
if(z){
char *zErr = skin_use_alternative(z, 2);
if(!zErr && !P("once")){
cookie_write_parameter("skin","skin",z);
}
fossil_free(zErr);
}
}
z = (char*)P("REMOTE_ADDR");
|
| ︙ | ︙ |