$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;
echo "$ret";
}
+function dom_select_deck($cur_sel)
+{
+ GLOBAL $G_lang;
+
+ $ret = "<select id='select_deck'>\n";
+ foreach (deck_keys() as $key) {
+ $value = deck_id2descr($key, $G_lang);
+ $ret .= sprintf("<option value='%s'%s>%s</option>\n", $key, ($key == $cur_sel ? " selected='selected'" : ""), $value);
+ }
+ $ret .= "</select>\n";
+
+ echo "$ret";
+}
+
class Card {
var $value; /* 0 - 39 card value */
var $stat; /* 'bunch', 'hand', 'table', 'take' */
($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') {
$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 = "";');