From: Matteo Nastasi Date: Sat, 18 Apr 2020 09:35:24 +0000 (+0200) Subject: Merge branch 'master' into post-bold2 X-Git-Tag: v5.10.0~55 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=028592d3d195d45f0e19d324c7d7c029a06d0a0c;hp=86e52dc968c23b91df10056dbe2384b06cdec978;p=brisk.git Merge branch 'master' into post-bold2 --- diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index f5a3c6d..848b9f4 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -192,7 +192,7 @@ Dopo che è iniziata una partita per uscirne dovete chiedere agli altri gi
/info <login> - mostra lo stato corrente dell\'utente passato come argomento e in che relazione siete
/authreq - se si è autenticati permette di garantire per un utente fidato
/mesgtoadm - se si è autenticati permette di lasciare un messaggio all\'amministratore del sito -
/listen <all or auth> - se si è autenticati permette leggere solo i messaggi degli altri autenticati (auth) o di tutti (all) + ', @@ -225,7 +225,7 @@ Dopo che è iniziata una partita per uscirne dovete chiedere agli altri gi
/info <login> - mostra lo stato corrente dell\'utente passato come argomento e in che relazione siete
/authreq - se si è autenticati permette di garantire per un utente fidato
/mesgtoadm - se si è autenticati permette di lasciare un messaggio all\'amministratore del sito -
/listen <all or auth> - se si è autenticati permette leggere solo i messaggi degli altri autenticati (auth) o di tutti (all) + '); @@ -2030,7 +2030,7 @@ class Brisk $to_all = show_notify($msg, 0, $mlang_brisk['btn_close'][$G_lang], 400, 120); } while (0); } // /alarm chat command - else if (strncmp($msg, "/listen ", 8) == 0) { + else if (FALSE && strncmp($msg, "/listen ", 8) == 0) { $arg = substr($msg, 8); if (strcasecmp($arg, "isolation") == 0) { @@ -2700,10 +2700,6 @@ class Brisk } if ($this->user[$i]->subst == "standup") { - if ($user_cur_id == $i) { - $flags |= 1; - } - $content .= sprintf('%s[ %d, "%s"%s ]',($ct > 0 ? ', ' : ''), $flags, xcape($this->user[$i]->name), $supp_comp_s); $ct++; @@ -2736,9 +2732,6 @@ class Brisk $flags = $user_cur->flags; - if ($user_cur_id == $table->player[$i]) - $flags |= 1; - log_main($user_cur->name. sprintf(" IN TABLE [%d]", $table_idx)); if ($user_cur->is_supp_custom()) $supp_comp_s = sprintf(', "%s"', $user_cur->rec->supp_comp_get()); diff --git a/web/Obj/user.phh b/web/Obj/user.phh index d6a4395..d126176 100644 --- a/web/Obj/user.phh +++ b/web/Obj/user.phh @@ -605,8 +605,9 @@ class User { $sp = " "; } } - return (sprintf('$("myname").innerHTML = "%s";', $cl, - xcape($this->name,ENT_COMPAT,"UTF-8"))); + $myname = xcape($this->name,ENT_COMPAT,"UTF-8"); + return (sprintf('window.myname = "%s"; $("myname").innerHTML = "%s";', + $myname, $cl, $myname)); } /* INDEX_RD PORT */ diff --git a/web/briskin5/index.php b/web/briskin5/index.php index e48bf0b..d4159f1 100644 --- a/web/briskin5/index.php +++ b/web/briskin5/index.php @@ -79,6 +79,7 @@ function bin5_index_main($transp_type, $header, &$header_out, $addr, $get, $post