1 Sparse documentation about Brisk.
3 ==== brisk/table/user relationships ====
8 bri->user[user_idx] = user
10 user->idx_orig = user_idx
13 table->player[player_idx] = user_idx
14 user->table_pos = player_idx
18 bin5->user[user_idx] = user
19 table->player[player_idx] = user_idx
20 user->table_pos = player_idx
23 Many things aren't documented at all, but I start with authentication workflow.
25 ==== MODIFY USERS TABLE ====
29 web/Obj/dbase_base.phh
30 function LoginDBItem -> args & body
31 function LoginDBItemFromRecord -> args & body
34 sql/sql.d/nnn-name-patch.sql
37 AUTHENTICATION WORKFLOW
41 onsubmit="return j_login_manager(this);" ->
42 sync xhr(index_wr.php?mesg=getchallenge&cli_name=<username>)
45 GET index_wr.php send the string: "1|<tokens>"
48 POST index.php with passid_private field equal to calcMD5(tokens[1]+calcMD5(form.elements['passid'].value))
52 ===== Game Lifecycle =====
54 -> bin5/index_wr.php + argz[0] == 'logout'
55 - bri->table_wakeup($user)
56 - set users subst to "shutdowner" and "shutdowned"
57 - save this: "gst.st_loc++; the_end=true; window.onbeforeunload = null; \
58 window.onunload = null; document.location.assign("../index.php");"
59 in user->comm var for client xhr
60 - set $bri->the_end = TRUE
63 -> index.php (after verify session value: ~L250)
64 - garbage_manager(TRUE)
65 - align many status var with briskin5 user values
71 $ret = $user->maincheck($old_stat, $old_subst, $old_step, $this->rd_stat, $this->rd_subst, $this->rd_step,
72 $splashdate, $table_idx, $table_token))
73 $user->rd_transp->chunk($this->rd_scristp++, $ret);