1 Sparse documentation about Brisk.
3 Many things aren't documented at all, but I start with authentication workflow.
5 ==== MODIFY USERS TABLE ====
10 function LoginDBItem -> args & body
11 function LoginDBItemFromRecord -> args & body
14 sql/sql.d/nnn-name-patch.sql
17 AUTHENTICATION WORKFLOW
21 onsubmit="return j_login_manager(this);" ->
22 sync xhr(index_wr.php?mesg=getchallenge&cli_name=<username>)
25 GET index_wr.php send the string: "1|<tokens>"
28 POST index.php with passid_private field equal to calcMD5(tokens[1]+calcMD5(form.elements['passid'].value))
32 ===== Game Lifecycle =====
34 -> bin5/index_wr.php + argz[0] == 'logout'
35 - bri->table_wakeup($user)
36 - set users subst to "shutdowner" and "shutdowned"
37 - save this: "gst.st_loc++; the_end=true; window.onbeforeunload = null; \
38 window.onunload = null; document.location.assign("../index.php");"
39 in user->comm var for client xhr
40 - set $bri->the_end = TRUE
43 -> index.php (after verify session value: ~L250)
44 - garbage_manager(TRUE)
45 - align many status var with briskin5 user values