Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch chatroom-dev Excluding Merge-Ins
This is equivalent to a diff from 112c713be1 to 6f424a32b5
|
2020-12-23
| ||
| 18:27 | Merge the development of the Fossil chatroom onto trunk. This feature is well isolated from the rest of the system and so we can safely continue development on trunk, which is more convenient for testing. ... (check-in: e8ba89b168 user: drh tags: trunk) | |
| 18:21 | Fix the /chat-poll page so that it works even when called from "fossil ui". ... (Closed-Leaf check-in: 6f424a32b5 user: drh tags: chatroom-dev) | |
| 17:27 | The /test_env page is not an error page. ... (check-in: f2a26bca3a user: drh tags: trunk) | |
| 16:19 | Additional documentation on the /chat-poll page. ... (check-in: 2261b29415 user: drh tags: chatroom-dev) | |
|
2020-12-22
| ||
| 20:06 | Merge the styling changes from trunk into the chatroom-dev branch. ... (check-in: b8d6319b5a user: drh tags: chatroom-dev) | |
| 18:31 | Add support for the "$current_feature" TH1 variable as a possibly better way to do page-specific of feature-specific styling. ... (check-in: 112c713be1 user: drh tags: trunk) | |
| 12:30 | Whitespace style fix ... (Closed-Leaf check-in: 358f7d80c2 user: wyoung tags: body-feature-class) | |
| 10:31 | Comment fix to track a code change made in commit [3d6444fc]. ... (check-in: e6e8ea8ffb user: wyoung tags: trunk) | |
Changes to src/builtin.c.
| ︙ | |||
634 635 636 637 638 639 640 641 642 643 644 645 646 647 | 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 | + + + |
/* can leak a local filesystem path:
CX("name: %!j,", skin_in_use());*/
CX("isDark: %s"
"/*true if the current skin has the 'white-foreground' detail*/",
skin_detail_boolean("white-foreground") ? "true" : "false");
CX("}\n"/*fossil.config.skin*/);
CX("};\n"/* fossil.config */);
CX("window.fossil.user = {");
CX("name: %!j", (g.zLogin&&*g.zLogin) ? g.zLogin : "guest");
CX("};\n"/*fossil.user*/);
CX("if(fossil.config.skin.isDark) "
"document.body.classList.add('fossil-dark-style');\n");
#if 0
/* Is it safe to emit the CSRF token here? Some pages add it
** as a hidden form field. */
if(g.zCsrfToken[0]!=0){
CX("window.fossil.csrfToken = %!j;\n",
|
| ︙ |
Changes to src/capabilities.c.
| ︙ | |||
302 303 304 305 306 307 308 309 310 311 312 313 314 315 | 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 | + + |
"Forum-Mod", "Moderator for forum messages" },
{ '6', CAPCLASS_FORUM|CAPCLASS_SUPER, 0,
"Forum-Admin", "Grant capability '4' to other users" },
{ '7', CAPCLASS_ALERT, 0,
"Alerts", "Sign up for email alerts" },
{ 'A', CAPCLASS_ALERT|CAPCLASS_SUPER, 0,
"Announce", "Send announcements to all subscribers" },
{ 'C', CAPCLASS_FORUM, 0,
"Chat", "Read and/or writes messages in the chatroom" },
{ 'D', CAPCLASS_OTHER, 0,
"Debug", "Enable debugging features" },
};
/*
** Populate the aCap[].nUser values based on the current content
** of the USER table.
|
| ︙ | |||
389 390 391 392 393 394 395 | 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 | - + |
" UNION ALL"
" SELECT 'Adminstrator', fullcap(capunion(cap)), 300, count(*) FROM user"
" WHERE cap GLOB '*[as]*'"
" ORDER BY 3 ASC",
zSelfCap, hasPubPages, zSelfCap
);
@ <table id='capabilitySummary' cellpadding="0" cellspacing="0" border="1">
|
| ︙ | |||
444 445 446 447 448 449 450 451 452 453 454 455 456 457 | 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 | + + + + + + + + |
@ <td class="%s(azClass[eType])">%s(azType[eType])</td>
/* Wiki */
if( sqlite3_strglob("*[asdfklm]*",zCap)==0 ){
eType = 2;
}else if( sqlite3_strglob("*j*",zCap)==0 ){
eType = 1;
}else{
eType = 0;
}
@ <td class="%s(azClass[eType])">%s(azType[eType])</td>
/* Chat */
if( sqlite3_strglob("*C*",zCap)==0 ){
eType = 2;
}else{
eType = 0;
}
@ <td class="%s(azClass[eType])">%s(azType[eType])</td>
/* Unversioned */
if( sqlite3_strglob("*y*",zCap)==0 ){
|
| ︙ |
Added src/chat.c.