From 26a3f0413e699fd4c0e10f88d2696cad9e051c07 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Fri, 13 May 2011 18:27:39 +0200 Subject: [PATCH] lifecycle added in the documentation --- doc/ARCHITECTURE.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/ARCHITECTURE.txt b/doc/ARCHITECTURE.txt index b350151..807c5fb 100644 --- a/doc/ARCHITECTURE.txt +++ b/doc/ARCHITECTURE.txt @@ -17,3 +17,14 @@ index.php: --- CLI ------------ POST index.php with passid_private field equal to calcMD5(tokens[1]+calcMD5(form.elements['passid'].value)) + + +===== Game Lifecycle ===== + +-> bin5/index_wr.php + argz[0] == 'logout' + - bri->table_wakeup($user) + - set users subst to "shutdowner" and "shutdowned" + - save this: "gst.st_loc++; the_end=true; window.onbeforeunload = null; \ + window.onunload = null; document.location.assign("../index.php");" + in user->comm var for client xhr + - set $bri->the_end = TRUE -- 2.17.1