1 Sparse documentation about Brisk.
3 ==== brisk/table/user relationships ====
5 === points management ===
18 bri->user[user_idx] = user
20 user->idx_orig = user_idx
23 table->player[player_idx] = user_idx
24 user->table_pos = player_idx
28 bin5->user[user_idx] = user
29 table->player[player_idx] = user_idx
30 user->table_pos = player_idx
33 Many things aren't documented at all, but I start with authentication workflow.
35 ==== MODIFY USERS TABLE ====
39 web/Obj/dbase_base.phh
40 function LoginDBItem -> args & body
41 function LoginDBItemFromRecord -> args & body
44 sql/sql.d/nnn-name-patch.sql
47 AUTHENTICATION WORKFLOW
51 onsubmit="return j_login_manager(this);" ->
52 sync xhr(index_wr.php?mesg=getchallenge&cli_name=<username>)
55 GET index_wr.php send the string: "1|<tokens>"
58 POST index.php with passid_private field equal to calcMD5(tokens[1]+calcMD5(form.elements['passid'].value))
59 add_user -> validate_name, login_verify
62 ===== Game Lifecycle =====
64 -> bin5/index_wr.php + argz[0] == 'logout'
65 - bri->table_wakeup($user)
66 - set users subst to "shutdowner" and "shutdowned"
67 - save this: "gst.st_loc++; the_end=true; window.onbeforeunload = null; \
68 window.onunload = null; document.location.assign("../index.php");"
69 in user->comm var for client xhr
70 - set $bri->the_end = TRUE
73 -> index.php (after verify session value: ~L250)
74 - garbage_manager(TRUE)
75 - align many status var with briskin5 user values
81 $ret = $user->maincheck($old_stat, $old_subst, $old_step, $this->rd_stat, $this->rd_subst, $this->rd_step,
82 $splashdate, $table_idx, $table_token))
83 $user->rd_transp->chunk($this->rd_scristp++, $ret);
86 ===== New users workflow =====
89 -------------------------------------------------------------------------
97 -------------------------------------------------------------------------
110 -------------------------------------------------------------------------
119 -------------------------------------------------------------------------
122 -------------------------------------------------------------------------