X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2FObj%2Fbriskin5.phh;h=dea3e87a260d02c010a1f49b2826ddaadf1ee980;hb=10a13fbf19b5aa8f072d0c992af9cac19a66b19d;hp=dd8e5c8117dc1c72a7b276f37da24aa9e9316151;hpb=8b0992347fdfdb40715268bb07481d35fc5191fb;p=brisk.git diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index dd8e5c8..dea3e87 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -68,6 +68,23 @@ $mlang_bin5_bin5 = array( $table_wellarr = Array( 'it' => Array ( 'Benvenuto al tavolo. Se almeno tre giocatori non sbloccano l\'uscita cliccando il lucchetto, chi esce non può risedersi a un qualunque tavolo per '.floor(BAN_TIME/60).' minuti.'), 'en' => Array ( 'EN Benvenuto al tavolo. Se almeno tre giocatori non sbloccano l\'uscita cliccando il lucchetto, chi esce non può risedersi a un qualunque tavolo per '.floor(BAN_TIME/60).' minuti.') ); + +// FIXME - DYNAMIC WITH CACHE AND RELOAD FROM DB +function deck_keys() +{ + return array('xx', 'yy'); +} + +function deck_id2descr($id, $lang) +{ + if ($id == 'xx') + return 'carte originali'; + else if ($id == 'yy') + return 'carte strette'; + + return 'carte sconosciute'; +} + function multoval($mult) { GLOBAL $G_lang; @@ -96,6 +113,20 @@ function dom_select_rules() echo "$ret"; } +function dom_select_deck($cur_sel) +{ + GLOBAL $G_lang; + + $ret = "\n"; + + echo "$ret"; +} + class Card { var $value; /* 0 - 39 card value */ var $stat; /* 'bunch', 'hand', 'table', 'take' */ @@ -1201,7 +1232,7 @@ class Bin5 { ($user_cur->stat == 'table' && ($user_cur->subst == 'shutdowned' || $user_cur->subst == 'shutdowner'))) continue; - if ($user_cur->lacc + EXPIRE_TIME_RD < ($curtime - $delta)) { // Auto logout dell'utente + if ($user_cur->lacc + (($user_cur->ping_req ? 1.5 : 1.0) * EXPIRE_TIME_RD) < ($curtime - $delta)) { // Auto logout dell'utente log_rd2($user_cur->sess." bin5 AUTO LOGOUT."); if ($user_cur->stat == 'table') { @@ -1919,7 +1950,7 @@ function briscola_show($bri, $table, $user) $ret .= sprintf('$("caller").style.backgroundImage = \'url("img/brisk_caller_sand%d.png")\';', $table->asta_win); - $ret .= sprintf('$("callerimg").src = "img/%02d.png";', $table->briscola); + $ret .= sprintf('$("callerimg").setAttribute("data-card-id", "%02d"; ', $table->briscola); $ret .= sprintf('$("caller").style.visibility = "visible";'); $ret .= sprintf('$("chooseed").style.visibility = "hidden";'); $ret .= sprintf('$("astalascio").style.visibility = "";');