From 1fc2a56fc5b81d917ce929be0e2f0d53672a26fa Mon Sep 17 00:00:00 2001 From: Matteo Nastasi Date: Sat, 18 Apr 2020 13:25:16 +0200 Subject: [PATCH] just all or authenticated users prefs options --- web/Obj/brisk.phh | 15 ++------------- web/commons.js | 6 ++---- web/index.php | 12 ++++-------- web/prefs.js | 4 ++-- 4 files changed, 10 insertions(+), 27 deletions(-) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 848b9f4..bb579e5 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -135,10 +135,8 @@ $mlang_brisk = array( 'btn_backstand'=> array( 'it' => 'torna in piedi', 'listmust' => array( 'it' => 'Per andare in isolamento non bisogna essere seduti a tavoli non riservati.', 'en' => 'To go to isolation you must don\'t stay on not reserved tables'), - 'tit_onauth'=>array( 'it' => '(solo aut.)', - 'en' => '(only aut.)'), - 'tit_onisol'=>array( 'it' => '(isolam.to)', - 'en' => '(isolation)'), + 'tit_onisol'=>array( 'it' => '(autenticati)', + 'en' => '(authenticated)'), 'db_failed' =>array('it' => '
Il collegamento al database è fallito.
Temporaneamente tutte le autenticazioni verranno sospese, accederai a Brisk come un utente normale.

Ci scusiamo per il disagio.', 'en' => 'Connection to the database failed
All authentications are suspended temporarly, you login as normal user.
We are about the limitation'), @@ -1430,9 +1428,6 @@ class Brisk if ($user->flags & USER_FLAG_ISOLAUTH) { $ret .= 'list_set(\'isolation\', false, \''.$mlang_brisk['tit_onisol'][$G_lang].'\' ); '; } - else if ($user->flags & USER_FLAG_LISTAUTH) { - $ret .= 'list_set(\'auth\', false, \''.$mlang_brisk['tit_onauth'][$G_lang].'\' ); '; - } else { $ret .= 'list_set(\'all\', false, \'\' ); '; } @@ -2046,12 +2041,6 @@ class Brisk $to_user = 'list_set(\'isolation\', true, \''.$mlang_brisk['tit_onisol'][$G_lang].'\'); '; } } - else if (strcasecmp($arg, "auth") == 0) { - $flags_old = $user->flags; - $user->flags &= ~USER_FLAG_MAP_AUTH; - $user->flags |= USER_FLAG_LISTAUTH; - $to_user = 'list_set(\'auth\', true, \''.$mlang_brisk['tit_onauth'][$G_lang].'\'); '; - } else { $flags_old = $user->flags; $user->flags &= ~USER_FLAG_MAP_AUTH; diff --git a/web/commons.js b/web/commons.js index 721b816..8a5b0a6 100644 --- a/web/commons.js +++ b/web/commons.js @@ -41,10 +41,8 @@ var mlang_commons = { 'imgload_a' : { 'it' : 'Immagini caricate ', 'en' : 'Exit.' }, 'tit_list' : { '0' : { 'it' : '', 'en' : '' }, - '1' : { 'it' : '(solo aut.)', - 'en' : '(only aut.)' }, - '2' : { 'it' : '(isolam.to)', - 'en' : '(isolation)' } }, + '1' : { 'it' : '(autenticati)', + 'en' : '(authenticated)' } }, 'tos_refu' : { 'it' : 'Rifiutando di sottoscrivere i nuovi termini del servizio non ti sarà più possibile accedere come utente registrato al sito, sei proprio sicuro di voler rifiutare le nuove condizioni d\'uso ?', 'en' : 'EN Rifiutando di sottoscrivere i nuovi termini del servizio non ti sarà più possibile accedere come utente registrato al sito, sei proprio sicuro di voler rifiutare le nuove condizioni d\'uso ?' } diff --git a/web/index.php b/web/index.php index 4ca38fc..b7e0d85 100644 --- a/web/index.php +++ b/web/index.php @@ -130,18 +130,14 @@ $mlang_room = array( 'userpassuse' => array('it' => 'Il tuo nickname è g 'en' => 'visualize'), 'list_desc' => array('it' => 'imposta le regole di ascolto', 'en' => 'set the listen rules'), - 'tit_listall' => array('it' => 'tutti', + 'tit_listall' => array('it' => 'tutti gli utenti', 'en' => 'everybody'), 'listall_desc' => array('it' => 'visualizza tutti gli utenti collegati', 'en' => 'visualize all connected users'), - 'tit_listaut' => array('it' => 'solo autenticati', - 'en' => 'only authorized'), - 'tit_listisol' => array('it' => 'visualizza solo gli utenti autenticati', - 'en' => 'visualize authenticated users only'), - 'listaut_desc' => array('it' => 'visualizza solo gli utenti autenticati e i tavoli ad essi riservati', + 'tit_listisol' => array('it' => 'solo 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'), - 'listisol_desc'=> array('it' => 'visualizza Brisk come se fosse solo per utenti con password', - 'en' => 'show Brisk like an authenticated user only site'), 'suppcomp_tit' => array('it' => 'personalizza la tua S', 'en' => 'customize your S'), 'suppcomp_r' => array('it' => 'rosso', diff --git a/web/prefs.js b/web/prefs.js index 93aec39..e880506 100644 --- a/web/prefs.js +++ b/web/prefs.js @@ -1,6 +1,6 @@ var l_list_all = 0x00; -var l_list_isol = 0x02; -var l_prefs_list_idx = new Array( 0x00, 0x02 ); +var l_list_isol = 0x01; +var l_prefs_list_idx = new Array( 0x00, 0x01 ); var l_prefs_list_id = new Array( "all", "isol" ); var l_comps_name = new Array('s_fg_r', 's_fg_g', 's_fg_b', 's_bg_r', 's_bg_g', 's_bg_b'); -- 2.17.1