From 9f4092e80e6b352c9e248cd7666161ab044c3e7c Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Wed, 11 Feb 2015 07:09:56 +0100 Subject: [PATCH] ban for proxy use added --- web/Obj/brisk.phh | 1 + web/index.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 85d8dda..546f5eb 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -964,6 +964,7 @@ define('GHOST_SESS_REAS_ANOT', 2); // another user get session define('GHOST_SESS_REAS_TOUT', 3); // room timeout define('GHOST_SESS_REAS_TTOT', 4); // table timeout define('GHOST_SESS_REAS_ANON', 5); // anonymizer access +define('GHOST_SESS_REAS_PROX', 6); // proxy access class GhostSessEl { diff --git a/web/index.php b/web/index.php index 437f454..e2d8f98 100644 --- a/web/index.php +++ b/web/index.php @@ -53,6 +53,8 @@ $mlang_room = array( 'userpassuse' => array('it' => 'Il tuo nickname è g 'en' => 'EN Abbiamo perso le tue tracce mentre stavi giocando, quindi ti abbiamo disconnesso.'), 'reas_anon' => array('it' => 'L\' accesso attraverso sistemi di anonimizzazione non è consentito.', 'en' => 'EN L\' accesso attraverso sistemi di anonimizzazione non è consentito.'), + 'reas_prox' => array('it' => 'L\' accesso attraverso proxy non è consentito, se lo usi solo tu e pochi altri utenti comunica il suo indirizzo IP all\' amministratore per aggiungerlo alle eccezioni.', + 'en' => 'EN L\' accesso attraverso proxy non è consentito, se lo usi solo tu e pochi altri utenti comunica il suo indirizzo IP all\' amministratore per aggiungerlo alle eccezioni.'), 'reas_anot' => array('it' => 'La tua sessione è stata assegnata ad un altro browser.', 'en' => 'EN La tua sessione è stata assegnata ad un altro browser.'), 'reas_cloud' => array('it' => 'La connessione dai computer di una cloud non è ammessa.', @@ -372,6 +374,9 @@ function index_main(&$brisk, $transp_type, $header, &$header_out, $remote_addr_f case GHOST_SESS_REAS_ANON: $last_msg = $mlang_room['reas_anon'][$G_lang]; break; + case GHOST_SESS_REAS_PROX: + $last_msg = $mlang_room['reas_prox'][$G_lang]; + break; default: $last_msg = $mlang_room['reas_unkn'][$G_lang]; break; -- 2.17.1