X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=inline;f=web%2FObj%2Fbrisk.phh;h=5238b13c2ef403b1c5ebeea1a2182d9117b2fdab;hb=9fcaaa406e6cb9ae9ff64674d89236a8cade096b;hp=affe74a701010b207961415cf2613c9c5ffd881f;hpb=843082dc29593901d1e197701623b3a28d2fc716;p=brisk.git
diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh
index affe74a..5238b13 100644
--- a/web/Obj/brisk.phh
+++ b/web/Obj/brisk.phh
@@ -89,6 +89,8 @@ define('BRISK_SINGLE_DEBUG',0);
define('BRISK_SINGLE_SESS', "");
define('DEBUGGING', "no-debugging");
+define('BSK_BUSTING', "dev");
+
require_once("$DOCUMENT_ROOT/Etc/".BRISK_CONF);
require_once("${G_base}Obj/ipclass.phh");
@@ -133,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'),
@@ -153,11 +153,11 @@ $mlang_brisk = array( 'btn_backstand'=> array( 'it' => 'torna in piedi',
$G_lng = langtolng($G_lang);
$G_all_points = array( 11,10,4,3,2, 0,0,0,0,0 );
-$G_brisk_version = "5.7.0";
+$G_brisk_version = "5.9.1";
/* MLANG: ALL THE INFO STRINGS IN brisk.phh */
-$root_wellarr = array( 'it' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NOVITA\': dati dai client via web-socket.',
- 'Se vuoi iscriverti alla Mailing List, cliccala!' ),
+$root_wellarr = array( 'it' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NOVITA\': possibilità di vedere solo tavoli e utenti registrati.' ),
+ # , 'Se vuoi iscriverti alla Mailing List, cliccala!' ),
'en' => array ( 'EN Brisk (Ver. '.$G_brisk_version.'), NOVITA\': puoi creare la tua rete di amicizie con /info,',
'vedere cosa pensano i tuoi amici degli altri utenti e tavoli riservati per registrati e apprendisti.',
'Se vuoi iscriverti alla Mailing List, cliccala!' ) );
@@ -190,7 +190,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)
+
',
@@ -223,7 +223,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)
+
');
@@ -1428,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, \'\' ); ';
}
@@ -2028,7 +2025,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) {
@@ -2044,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;
@@ -2561,28 +2552,6 @@ class Brisk
if ($authenticate != FALSE) {
$this->user[$idx]->code = $authenticate->code_get();
- if (0 == 1) {
- // all this part is included in the db server
- $this->user[$idx]->flags |= USER_FLAG_LISTAUTH;
-
- if (isset($cookie['CO_list'])) {
- // fprintf(STDERR, "QQ: %s CO_list: [%s]\n", __FUNCTION__, $cookie['CO_list']);
- if (strcmp($cookie['CO_list'], "auth") == 0) {
- $this->user[$idx]->flags &= ~USER_FLAG_MAP_AUTH;
- $this->user[$idx]->flags |= USER_FLAG_LISTAUTH;
- }
- if (strcmp($cookie['CO_list'], "isolation") == 0) {
- $this->user[$idx]->flags &= ~USER_FLAG_MAP_AUTH;
- $this->user[$idx]->flags |= USER_FLAG_ISOLAUTH;
- }
- else {
- $this->user[$idx]->flags &= ~USER_FLAG_MAP_AUTH;
- }
- }
- }
- // else {
- // fprintf(STDERR, "QQ: CO_list not set flags: %x\n", __FUNCTION__, $this->user[$idx]->flags);
- // }
}
// fprintf(STDERR, "QQ %s: flag %x\n", __FUNCTION__, $this->user[$idx]->flags);
if ($ghost > -1) {
@@ -2698,10 +2667,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++;
@@ -2734,9 +2699,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());
@@ -3580,4 +3542,4 @@ function login_consistency($name)
}
return (TRUE);
}
-?>
\ No newline at end of file
+?>