X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=inline;f=web%2Findex.php;h=8313cb9237b6a395a0c9d7a503283fe7f7f2b465;hb=3bbccb8ce2566cabb37199c1e8ed7e9bdc23e426;hp=b7e0d854f1c2aaf1eb0878d6ed05ff12bb951f50;hpb=1fc2a56fc5b81d917ce929be0e2f0d53672a26fa;p=brisk.git diff --git a/web/index.php b/web/index.php index b7e0d85..8313cb9 100644 --- a/web/index.php +++ b/web/index.php @@ -134,7 +134,7 @@ $mlang_room = array( 'userpassuse' => array('it' => 'Il tuo nickname è g 'en' => 'everybody'), 'listall_desc' => array('it' => 'visualizza tutti gli utenti collegati', 'en' => 'visualize all connected users'), - 'tit_listisol' => array('it' => 'solo user autenticati', + 'tit_listisol' => array('it' => 'solo gli user autenticati', 'en' => 'authenticated users only'), 'listisol_desc' => array('it' => 'visualizza solo gli user autenticati e i tavoli a loro riservati', 'en' => 'visualize authenticated users only and reserved tables to them'), @@ -512,6 +512,13 @@ function index_main(&$brisk, $transp_type, $header, &$header_out, $remote_addr_f } } } + + if ($ACTION == "room") { + /* shutdown any previous transport socket */ + $user->page_id = md5(microtime().$remote_addr_full); + // $brisk->abort_old_sockets($user); + } + /* Rendering. */ if ($BRISK_SHOWHTML == "debugtable") { @@ -524,24 +531,33 @@ function index_main(&$brisk, $transp_type, $header, &$header_out, $remote_addr_f if ($ACTION == "room") { $tables .= '
';
-
- $tables .= ' '.$mlang_room['tit_tabl'][$G_lang].$i.' ';
- $tables .= sprintf('', $i);
- $tables .= sprintf('', $i);
- $tables .= ' | '."\n";
+ if ($direct) {
+ $noauth_class = ($i + 3 < TABLES_APPR_N ? "" : "noauth");
+ }
+ else {
+ $noauth_class = ($i < TABLES_APPR_N ? "" : "noauth");
+ }
+ $tables .= sprintf('
', $noauth_class);
+
+ $tables .= ' '.$mlang_room['tit_tabl'][$G_lang].$i.' ';
+ $tables .= sprintf('', $i);
+ $tables .= sprintf('', $i);
+ $tables .= ' | '."\n";
+
if ($ii % 4 == 3) {
$tables .= '