X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=doc%2FARCHITECTURE.txt;h=b89ba88ca3fc7a9104b6757b7353aa3b9297721e;hb=fdc55b9426c3e1cb31e950e08b4bb0b35015cef3;hp=d074067de68e29e10bd95105fae0b8a695e30b3b;hpb=536da22ebde5fa66e0f7524e9efc0316391f1afd;p=brisk.git diff --git a/doc/ARCHITECTURE.txt b/doc/ARCHITECTURE.txt index d074067..b89ba88 100644 --- a/doc/ARCHITECTURE.txt +++ b/doc/ARCHITECTURE.txt @@ -1,7 +1,29 @@ -Sparse documentation about Brisk. +===== Sparse documentation about Brisk. ===== + +==== Form Workflow ==== + +- div on page + + +User cleanup: + spush::garbage_manager() + if (user->the_end) + close opened socket + + brisk->users_cleanup() to reset all users with the_end set ==== brisk/table/user relationships ==== +=== points management === + +read from db: + * continue a match + * calculate placings + * calculate explain + +write to db: + * finish a game + === in the room === // when standup @@ -46,7 +68,7 @@ index.php: --- CLI ------------ POST index.php with passid_private field equal to calcMD5(tokens[1]+calcMD5(form.elements['passid'].value)) - + add_user -> validate_name, login_verify ===== Game Lifecycle ===== @@ -72,3 +94,41 @@ $ret = $user->maincheck($old_stat, $old_subst, $old_step, $this->rd_stat, $this- $splashdate, $table_idx, $table_token)) $user->rd_transp->chunk($this->rd_scristp++, $ret); + +===== New users workflow ===== + + UserA UserB Admin +------------------------------------------------------------------------- + guarante UserB + | + v + Save on mail + table, + email to UserB + (Disabled, MAILED) +------------------------------------------------------------------------- + Receive email + to check address + | + v + Click on link + | + v + Check on mail + table, + update user status, + delete mail rec + (Disabled, TOBECHK) +------------------------------------------------------------------------- + admin panel + accept user + | + v + send email with + password, + update user status + (Normal, NONE) +------------------------------------------------------------------------- + Receive email + with password +-------------------------------------------------------------------------