5 * Copyright (C) 2006-2016 Matteo Nastasi
6 * mailto: nastasi@alternativeoutput.it
7 * matteo.nastasi@milug.org
8 * web: http://www.alternativeoutput.it
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABLILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details. You should have received a
19 * copy of the GNU General Public License along with this program; if
20 * not, write to the Free Software Foundation, Inc, 59 Temple Place -
21 * Suite 330, Boston, MA 02111-1307, USA.
25 require_once("Obj/user.phh");
26 require_once("Obj/brisk.phh");
27 require_once("Obj/auth.phh");
29 $mlang_room = array( 'userpassuse' => array('it' => 'Il tuo nickname è già in uso.',
30 'en' => 'Your nickname is already in use.'),
31 'userpassend' => array('it' => 'Spiacenti, non ci sono più posti liberi. Riprova più tardi.',
32 'en' => 'We are sorry, there aren\'t free place. Try again later.'),
33 'userpassmust' => array('it' => 'Il nickname deve contenere almeno una lettera o una cifra.',
34 'en' => 'The nickname have to contain at least one letter or one number.'),
35 'userpasserr' => array('it' => 'Utente e/o password errati.',
36 'en' => 'Wrong user and/or password.'),
37 'userpassban' => array('it' => 'Il tuo indirizzo IP è stato bannato perché precedentemente utilizzato da qualche molestatore.',
38 'en' => 'Your IP address is banned because trolling activity was detected from it.'),
39 'standing' => array('it' => 'Giocatori in piedi',
40 'en' => 'Standing players'),
41 'headline' => array('it' => 'briscola chiamata in salsa ajax',
42 'en' => 'declaration briscola in ajax sauce <b>(Beta)</b>'),
43 'welcome' => array('it' => 'Digita il tuo nickname per accedere ai tavoli della briscola.',
44 'en' => 'Enter your nickname to access to the tables of briscola.'),
45 'reas_unkn' => array('it' => 'Logout per motivi sconosciuti.',
46 'en' => 'Logout with unknown reason.'),
47 'reas_lout' => array('it' => 'Orevoire.',
48 'en' => 'EN Orevoire.'),
49 'reas_tout' => array('it' => 'Abbiamo perso le tue tracce, quindi ti abbiamo disconnesso.',
50 'en' => 'EN Abbiamo perso le tue tracce, quindi ti abbiamo disconnesso.'),
51 'reas_ttot' => array('it' => 'Abbiamo perso le tue tracce mentre stavi giocando, quindi ti abbiamo disconnesso.',
52 'en' => 'EN Abbiamo perso le tue tracce mentre stavi giocando, quindi ti abbiamo disconnesso.'),
53 'reas_anon' => array('it' => 'L\' accesso attraverso sistemi di anonimizzazione non è consentito.',
54 'en' => 'EN L\' accesso attraverso sistemi di anonimizzazione non è consentito.'),
55 '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\' <a href="mailto: brisk@alternativeoutput.it">amministratore</a> per aggiungerlo alle eccezioni.',
56 'en' => 'EN L\' accesso attraverso proxy non è consentito, se lo usi solo tu e pochi altri utenti comunica il suo indirizzo IP all\' <a href="mailto: brisk@alternativeoutput.it">amministratore</a> per aggiungerlo alle eccezioni.'),
57 'reas_anot' => array('it' => 'La tua sessione è stata assegnata ad un altro browser.',
58 'en' => 'EN La tua sessione è stata assegnata ad un altro browser.'),
59 'reas_cloud' => array('it' => 'La connessione dai computer di una cloud non è ammessa.',
60 'en' => 'Connection from cloud computers is not allowed.'),
62 'btn_enter' => array('it' => 'Entra.',
64 'passwarn' => array('it' => 'Se non hai ancora una password, lascia il campo in bianco ed entra.',
65 'en' => 'If you don\'t have a password, leave blank the field and enter.'),
66 'browwarn' => array('it' => 'Se qualcosa non funziona prova a ricaricare la pagina con <b>Ctrl + F5</b><br><br>Se non riesci più ad entrare nel nuovo Brisk e prima ci riuscivi potrebbe essere un problema di antivirus,<br>guarda la <a class=\'flat\' style=\'background-color: white; font-weight: bold;\' target=\'_blank\' href=\'http://www.alternativeoutput.it/blog/doku.php?id=brisk:guida_agli_antivirus\'>pagina sugli antivirus</a> per maggiori informazioni su come configurarlo.<br><br>Se ancora non funziona nulla contatta <a class=\'flat\' style=\'background-color: white; font-weight: bold;\' href=\'mailto:brisk@alternativeoutput.it\'>l\'amministratore del sito</a>.',
67 'en' => '(if something don\'t work<br>try to reload the current page with <b>Ctrl + F5</b>)'),
68 'regwarn' => array('it' => '<br>Il nickname che stai usando è già registrato,<br><br>se il suo proprietario si autentificherà<br><br>verrai rinominato d\'ufficio come ghost<i>N</i>.',
69 'en' => '<br>The nickname you are using it\'s already registered, <br><br>if its proprietary authenticates<br><br>you will named ghost<i>N</i>.'),
70 'btn_rettabs' => array('it' => 'torna ai tavoli',
71 'en' => 'back to tables'),
72 'btn_exit' => array('it' => 'Esco.',
74 'btn_save' => array('it' => 'Salva.',
76 'btn_reset' => array('it' => 'Annulla.',
78 'btn_close' => array('it' => 'Chiudi.',
80 'btn_send' => array('it' => 'Invia.',
82 'tit_tabl' => array('it' => 'Tavolo ',
84 'tit_stat' => array('it' => 'imposta lo stato del tuo utente',
85 'en' => 'set the status of the user'),
86 'stat_desc' => array('it' => 'stato',
88 'st_norm_desc' => array('it' => 'normale',
90 'st_paus_desc' => array('it' => 'pausa',
92 'st_out_desc' => array('it' => 'fuori',
94 'st_dog_desc' => array('it' => 'cane',
96 'st_food_desc' => array('it' => 'cibo',
98 'st_work_desc' => array('it' => 'lavoro',
100 'st_smok_desc' => array('it' => 'sigaretta',
102 'st_pres_desc' => array('it' => 'presente',
104 'st_rabb_desc' => array('it' => 'coniglio',
106 'st_socc_desc' => array('it' => 'calcio',
108 'st_baby_desc' => array('it' => 'pupo',
110 'st_mop_desc' => array('it' => 'pulizie',
112 'st_babbo_desc' => array('it' => 'babbo',
114 'st_renna_desc' => array('it' => 'renna',
116 'st_pupaz_desc' => array('it' => 'pupazzo',
118 'st_visch_desc' => array('it' => 'vischio',
121 'tit_ticker' => array('it' => 'scrivi un invito al tavolo e clicca',
122 'en' => 'write an invitation at the table and click'),
123 'itm_warr' => array('it' => 'garantisci',
124 'en' => 'guarantee'),
125 'warr_desc' => array('it' => 'garantisci per un tuo conoscente',
126 'en' => 'guarantee for a friend'),
127 'tit_warr' => array('it' => 'Garantisci per un tuo conoscente.',
128 'en' => 'Guarantee for a friend.'),
129 'itm_list' => array('it' => 'ascolta',
131 'list_desc' => array('it' => 'imposta le regole di ascolto',
132 'en' => 'set the listen rules'),
133 'tit_listall' => array('it' => 'tutti',
134 'en' => 'everybody'),
135 'listall_desc' => array('it' => 'leggi tutti i messaggi di tutti gli utenti collegati',
136 'en' => 'listen all messages from each user connected'),
137 'tit_listaut' => array('it' => 'solo autenticati',
138 'en' => 'only authorized'),
139 'tit_listisol' => array('it' => 'isolamento',
140 'en' => 'isolation'),
141 'listaut_desc' => array('it' => 'leggi soltanto i messaggi degli utenti con password',
142 'en' => 'listen messages only from authenticated users'),
143 'listisol_desc'=> array('it' => 'visualizza Brisk come se fosse solo per utenti con password',
144 'en' => 'show Brisk like an authenticated user only site'),
145 'suppcomp_tit' => array('it' => 'personalizza la tua S',
146 'en' => 'customize your S'),
147 'suppcomp_r' => array('it' => 'rosso',
149 'suppcomp_g' => array('it' => 'verde',
151 'suppcomp_b' => array('it' => 'blu',
153 'suppcomp_fg' => array('it' => 'colore',
155 'suppcomp_bg' => array('it' => 'sfondo',
156 'en' => 'background'),
157 'suppcomp_range' => array('it' => '(0-255)',
159 'tit_splash' => array('it' => 'splash',
161 'splash_desc' => array('it' => 'attiva la finestra di splash',
162 'en' => 'show the splash window'),
163 'tit_prefs' => array('it' => 'preferenze',
164 'en' => 'preferences'),
165 'prefs_desc' => array('it' => 'preferenze dell\' utente',
166 'en' => 'user\'s preferences'),
167 'tit_help' => array('it' => 'informazioni utili su Brisk',
168 'en' => 'usefull information about Brisk'),
169 'itm_help' => array('it' => 'aiuto',
171 'tit_hpage' => array('it' => 'homepage del progetto',
172 'en' => 'project homepage (ita)'),
173 'tit_what' => array('it' => 'di cosa si tratta',
174 'en' => 'what is the project'),
175 'itm_what' => array('it' => 'cos\'è',
176 'en' => 'what is it'),
177 'url_rules' => array('it' => 'http://it.wikipedia.org/wiki/Briscola#Gioco_a_5',
178 'en' => 'http://it.wikipedia.org/wiki/Briscola#Gioco_a_5&EN=true'),
179 'itm_rules' => array('it' => 'regole',
181 'tit_rules' => array('it' => 'come si gioca',
182 'en' => 'how to play'),
183 'tit_shot' => array('it' => 'screenshots dell\'applicazione',
184 'en' => 'screenshots of the web-application'),
185 'tit_comp' => array('it' => 'compatibilità con i browser',
186 'en' => 'browsers compatibility'),
187 'itm_comp' => array('it' => 'compatibilità',
188 'en' => 'compatibility'),
189 'tit_src' => array('it' => 'sorgenti dell\'applicazione web',
190 'en' => 'sources of the web-application'),
191 'itm_src' => array('it' => 'sorgenti',
193 'tit_ml' => array('it' => 'come iscriversi alla mailing list',
194 'en' => 'how to subscribe the mailing list'),
195 'itm_ml' => array('it' => 'mailing list',
196 'en' => 'mailing list'),
197 'tit_pro' => array('it' => 'come fare pubblicità a Brisk!',
198 'en' => 'how to spread Brisk!'),
199 'itm_pro' => array('it' => 'propaganda',
200 'en' => 'propaganda'),
201 'tit_mail' => array('it' => 'contatti',
203 'itm_mail' => array('it' => 'contatti',
205 'tit_cook' => array('it' => 'policy sui cookie',
206 'en' => 'cookie policy'),
207 'itm_cook' => array('it' => 'cookie',
209 'tit_cla' => array('it' => 'classifiche degli utenti',
210 'en' => 'user\'s placings'),
211 'itm_cla' => array('it' => 'classifiche',
213 'tit_mnu' => array('it' => 'minuta giornaliera',
214 'en' => 'daily report'),
215 'itm_mnu' => array('it' => 'minuta',
216 'en' => 'daily deport'),
217 'tit_rmap' => array('it' => 'prossime funzionalità implementate',
218 'en' => 'roadmap of next functionalities'),
219 'itm_rmap' => array('it' => 'roadmap',
221 'tit_meet' => array('it' => 'foto dei raduni di briskisti (serve Facebook)',
222 'en' => 'photos of brisk meetings'),
223 'itm_meet' => array('it' => 'BriskMeeting',
224 'en' => 'BriskMeeting'),
225 'tit_mesg' => array('it' => 'manda un messaggio o una segnalazione all\'amministratore del sito',
226 'en' => 'send a message or a signalling to the administrator' ),
227 'mesgtoadm_tit'=> array('it' => 'Invia un messaggio o una segnalazione all\'amministratore:',
228 'en' => 'Send a message to the administrator:'),
229 'mesgtoadm_sub'=> array('it' => 'soggetto:',
231 'info_login' => array('it' => 'Utente',
233 'info_status' => array('it' => 'Stato',
235 'info_status_tit' => array('it' => 'Stato dell\' utente.',
236 'en' => 'User status.'),
237 'info_guar' => array('it' => 'Garante',
238 'en' => 'Guarantee'),
239 'info_match' => array('it' => 'Partite',
241 'info_match_tit' => array('it' => 'Partite giocate ai tavoli riservati.',
242 'en' => 'Matches played at reserved tables.'),
243 'info_party' => array('it' => 'Party',
245 'info_party_tit' => array('it' => 'Bravura calcolata in base ad amici, agli amici fidati e agli amici degli amici fidati in base alla credibilità degli amici fidati.',
246 'en' => 'Skill calculated with party rules.'),
247 'info_game' => array('it' => 'Mani',
249 'info_game_tit' => array('it' => 'Mani giocate ai tavoli riservati.',
250 'en' => 'Hands played at reserved tables.'),
251 'info_frie' => array('it' => 'Conoscenza:',
252 'en' => 'Friendship:'),
253 'info_repfrie' => array('it' => 'Cosa ne pensano gli amici',
254 'en' => 'Friends reputation'),
255 'info_repbff' => array('it' => 'Cosa ne pensano gli amici fidati',
256 'en' => 'Best friends reputation'),
257 'info_skill' => array('it' => 'Bravura',
261 require_once("briskin5/Obj/briskin5.phh");
265 GLOBAL $G_with_poll, $G_poll_title, $G_poll_entries;
268 $ret = sprintf('<div style="padding: 0px;margin: 0px; height: 8px; font-size: 1px;"></div>
270 <img class="nobo" src="img/brisk_poll.png" onmouseover="menu_hide(0,0); menu_show(\'menu_poll\');">
272 <div style="width: 300px;" class="webstart" id="menu_poll" onmouseover="menu_over(1,this);" onmouseout="menu_over(-1,this);">
274 <form id="poll_form" accept-charset="utf-8" method="post" action="" onsubmit="return j_pollbox(this);">
275 <input type="hidden" name="realsub" value="666">', $G_poll_title);
276 for ($i = 0 ; $i < count($G_poll_entries) ; $i++) {
277 $ret .= sprintf('<INPUT TYPE="radio" NAME="category" VALUE="%s">%s<hr><br>', $G_poll_entries[$i]['id'],
278 $G_poll_entries[$i]['cont']);
280 $ret .= sprintf('<div style="text-align: center;"><input type="submit" class="input_sub" onclick="this.form.elements[\'realsub\'].value = this.value;" value="invia" name="sub" id="subid"/></div>
288 function sidebanners_init($sidebanner_idx)
290 for ($i = 0 ; $i < count($sidebanner_idx) ; $i++) {
291 printf(" sidebanner_init(%d);\n", $i);
295 function sidebanners_render($sidebanner, $sidebanner_idx)
297 $sb_n = count($sidebanner_idx);
306 for ($i = 0 ; $i < $sb_n ; $i++) {
307 $idx = $sidebanner_idx[$i];
308 $sb = $sidebanner[$idx];
309 if (!array_key_exists('link', $sb)
310 || !array_key_exists('title', $sb)
311 || !array_key_exists('icon_big', $sb)) {
314 $sb_type = (array_key_exists('type', $sb) ? $sb['type'] : 'meeting');
315 if (array_key_exists('icon', $sb)) {
316 $sb_icon = $sb['icon'];
319 if ($sb_type == 'meeting') {
321 $sb_icon = 'img/brisk_meeting60.gif';
324 $sb_icon = 'img/brisk_meeting35.gif';
328 // no standard icon for other type of events please add them
332 $sb_dx = (array_key_exists('dx', $sb) ? $sb['dx'] : 100);
333 $sb_dy = (array_key_exists('dy', $sb) ? $sb['dy'] : -230);
335 printf('<div class="sidebanner" style="background: #ffd780; border: solid 1px #ffae00; width: 60px;" id="sidebanner%d">', $i);
336 printf('<a target="_blank" href="%s">', $sb['link']);
337 printf('<img style="position: static; border: solid 0px black;" src="%s"', $sb_icon);
338 printf(' onMouseOver="show_bigpict($(\'sidebanner%d\'), \'over\', %d, %d, \'\');"', $i, $sb_dx, $sb_dy);
339 printf(' onMouseOut="show_bigpict($(\'sidebanner%d\'), \'out\', 0, 0, \'\');"', $i);
340 $tit = eschtml($sb['title']);
341 printf(' alt="%s" title="%s"></a></div>', $tit, $tit);
345 if (array_key_exists('icon_big_class', $sb)) {
346 $ib_class = $sb['icon_big_class'];
349 printf('<img class="nobohide bordergray %s" style="z-index: 255;" id="sidebanner%d_big" src="%s">', $ib_class, $i, $sb['icon_big']);
354 function index_main(&$brisk, $transp_type, $header, &$header_out, $remote_addr_full, $get, $post, $cookie)
356 GLOBAL $G_with_donors, $G_donors_cur, $G_donors_all;
357 GLOBAL $G_with_topbanner, $G_topbanner, $G_is_local;
358 GLOBAL $G_sidebanner, $G_sidebanner_idx;
360 GLOBAL $G_lang, $G_lng, $mlang_room;
361 GLOBAL $BRISK_SHOWHTML, $BRISK_DEBUG, $_SERVER, $_COOKIE;
363 if (($sess = gpcs_var('sess', $get, $post, $cookie)) === FALSE)
365 if (($name = gpcs_var('name', $get, $post, $cookie)) === FALSE)
368 log_step("LOGIN: $name");
370 if (($pass_private = gpcs_var('pass_private', $get, $post, $cookie)) === FALSE)
371 unset ($pass_private);
372 if (($table_idx = gpcs_var('table_idx', $get, $post, $cookie)) === FALSE)
374 if (($table_token = gpcs_var('table_idx', $get, $post, $cookie)) === FALSE)
375 unset ($table_token);
378 $_cookie_law_3party = 'true';
379 if (isset($cookie['_cookie_law_3party']))
380 $_cookie_law_3party = $cookie['_cookie_law_3party'];
382 $remote_addr = addrtoipv4($remote_addr_full);
392 if (isset($BRISK_SHOWHTML) == FALSE) {
394 log_main("lock Brisk");
398 if (($ghost_sess = $brisk->ghost_sess->pop($sess)) != FALSE) {
399 switch ($ghost_sess->reas) {
400 case GHOST_SESS_REAS_LOUT:
401 $last_msg = $mlang_room['reas_lout'][$G_lang];
403 case GHOST_SESS_REAS_ANOT:
404 $last_msg = $mlang_room['reas_anot'][$G_lang];
406 case GHOST_SESS_REAS_TOUT:
407 $last_msg = $mlang_room['reas_tout'][$G_lang];
409 case GHOST_SESS_REAS_TTOT:
410 $last_msg = $mlang_room['reas_ttot'][$G_lang];
412 case GHOST_SESS_REAS_ANON:
413 $last_msg = $mlang_room['reas_anon'][$G_lang];
415 case GHOST_SESS_REAS_PROX:
416 $last_msg = $mlang_room['reas_prox'][$G_lang];
419 $last_msg = $mlang_room['reas_unkn'][$G_lang];
423 if ($brisk->cloud_check($remote_addr)) {
424 // TODO: find a way to add a nonblocking sleep(5) here
426 $last_msg = $mlang_room['reas_cloud'][$G_lang];
430 if (validate_sess($sess)) {
431 log_main("pre garbage_manager UNO");
432 $brisk->garbage_manager(TRUE);
433 log_main("post garbage_manager");
434 if (($user = &$brisk->get_user($sess, &$idx)) != FALSE) {
435 if ($user->the_end == FALSE) {
436 $brisk->sess_cur_set($user->sess);
437 log_main("user stat: ".$user->stat);
438 if ($user->stat == "table") {
439 $cookies = new Cookies();
440 $cookies->add("table_token", $user->table_token, $curtime + 31536000);
441 $cookies->add("table_idx", $user->table, $curtime + 31536000);
442 $header_out['cookies'] = $cookies;
443 $header_out['Location'] = "briskin5/index.php";
450 if (!$banned && $ACTION == "login" && isset($name)) {
451 log_main("pre garbage_manager DUE");
453 if (isset($pass_private) == FALSE || $pass_private == "") {
454 $pass_private = FALSE;
456 if ($brisk->ban_check($remote_addr)) {
457 // TODO: find a way to add a nonblocking sleep(5) here
463 $brisk->garbage_manager(TRUE);
466 if ($banned == FALSE &&
467 ($user = $brisk->add_user(&$sess, &$idx, $name, $pass_private,
468 $remote_addr, $header, $cookie)) != FALSE) {
469 $brisk->sess_cur_set($user->sess);
476 log_legal($curtime, $remote_addr, $user, "STAT:LOGIN", '');
478 // recovery lost game
479 if ($user->stat == "table") {
480 $cookies = new Cookies();
481 $cookies->add("table_token", $user->table_token, $curtime + 31536000);
482 $cookies->add("table_idx", $user->table, $curtime + 31536000);
483 $header_out['cookies'] = $cookies;
484 $header_out['Location'] = "briskin5/index.php";
489 fprintf(STDERR, "POST CHECK QUI\n");
490 /* Login Rendering */
508 $body .= '<div class="urgmsg"><b>'.$mlang_room['userpass'.$sfx][$G_lang].'</b></div>';
514 if ($BRISK_SHOWHTML == "debugtable") {
517 else if ($BRISK_SHOWHTML == "debuglogin") {
521 if ($ACTION == "room") {
522 $tables .= '<div class="room_tab">';
523 $tables .= '<table class="room_tab">';
524 for ($ii = 0 ; $ii < TABLES_N ; $ii++) {
525 if ($user->is_auth() && !$user->is_appr())
528 $i = TABLES_N - $ii - 1;
531 $tables .= '<tr id = "tr_noauth'.$ii.'">';
533 if (TRUE || !($user->flags & USER_FLAG_ISOLAUTH) || $ii < TABLES_AUTH_N) {
534 $tables .= '<td id = "td_noauth'.$ii.'">';
536 $tables .= '<div class="room_div"><div class="room_tit"><b>'.$mlang_room['tit_tabl'][$G_lang].$i.'</b></div>';
537 $tables .= sprintf('<div class="proxhr" id="table%d"></div>', $i);
538 $tables .= sprintf('<div class="table_act" id="table_act%d"></div>', $i);
540 $tables .= '</td>'."\n";
546 $tables .= '</table></div>';
548 $standup .= '<table class="room_standup"><tr><td><div class="room_standup_orig" id="room_standup_orig"></div>';
549 $standup .= '<div class="room_ex_standup">';
550 /* MLANG: "Giocatori in piedi" */
551 // $standup .= '<div id="room_tit"><span class="room_titin"><b>Giocatori in piedi</b> - <a target="_blank" href="weboftrust.php">Come ottenere user e password</a> - </span></div>';
552 $standup .= '<div id="room_tit"><span class="room_titin"><b>'.$mlang_room['standing'][$G_lang].'</b></span></div>';
554 $standup .= sprintf('<div id="standup" class="room_standup"></div>');
556 $standup .= '<div id="esco" class="esco"><input type="button" class="button" name="xreload" value="Reload." onclick="act_reloadroom();"><input class="button" name="logout" value="'.$mlang_room['btn_exit'][$G_lang].'" onclick="esco_cb();" type="button"></div>';
557 $standup .= '</div></td></tr></table>';
560 $altout_sponsor_arr = array( array ( 'id' => 'btn_altout',
561 'url' => 'http://www.alternativeoutput.it',
562 'content' => 'img/altout80x15.png',
563 'content_big' => 'img/logotxt_banner.png'),
564 array ( 'id' => 'btn_virtualsky',
565 'url' => 'http://virtualsky.alternativeoutput.it',
566 'content' => 'img/virtualsky80x15a.gif',
567 'content_big' => 'img/virtualsky_big.png'),
568 array ( 'id' => 'btn_dynamica',
569 'url' => 'http://www.dynamica.it',
570 'content' => 'img/dynamica.png',
571 'content_big' => 'img/dynamica_big.png')
574 $altout_support_arr = array( array ( 'id' => 'btn_brichi',
575 'url' => 'http://www.briscolachiamata.it',
576 'content' => 'img/brichi.png',
577 'content_big' => 'img/brichi_big.png'),
578 array ( 'id' => 'btn_foroli',
579 'url' => 'http://www.forumolimpia.it',
580 'content' => 'img/forumolimpia.gif',
581 'content_big' => 'img/forumolimpia_big.png' ),
582 array ( 'id'=> 'btn_niini',
583 'url' => 'http://www.niinivirta.it',
584 'content' => 'img/niinivirta.png',
585 'content_big' => 'img/niinivirta_big.png') );
589 $altout_support = "";
590 $altout_support_big = "";
591 for ($i = 0 ; $i < 4 ; $i++) {
592 $ii = ($i < 3 ? $i : 0);
594 $altout_support .= sprintf('<a style="position: absolute; top: %dpx; left: 7px;" target="_blank" href="%s"><img class="nobo" id="%s" src="%s" onMouseOver="show_bigpict(this, \'over\',100,10);" onMouseOut="show_bigpict(this, \'out\',0,0);"></a><br>'."\n",
595 $i * 20, $altout_support_arr[$ii]['url'],
596 $altout_support_arr[$ii]['id'], $altout_support_arr[$ii]['content']);
598 $altout_support_big .= sprintf('<img style="position: absolute;" class="nobohide" id="%s_big" src="%s">',
599 $altout_support_arr[$ii]['id'], $altout_support_arr[$ii]['content_big']);
603 // seed with microseconds since last "whole" second
604 // srand ((double) microtime() * 1000000);
605 // $randval = rand(0,count($altout_sponsor_arr)-1);
606 $altout_sponsor = "";
607 $altout_sponsor_big = "";
608 for ($i = 0 ; $i < 4 ; $i++) {
609 $ii = ($i < 3 ? $i : 0);
611 $altout_sponsor .= sprintf('<a style="position: absolute; top: %dpx; left: 7px;" target="_blank" href="%s"><img class="nobo" id="%s" src="%s" onMouseOver="show_bigpict(this, \'over\',100,10);" onMouseOut="show_bigpict(this, \'out\',0,0);"></a><br>'."\n",
612 $i * 20, $altout_sponsor_arr[$ii]['url'],
613 $altout_sponsor_arr[$ii]['id'], $altout_sponsor_arr[$ii]['content']);
615 $altout_sponsor_big .= sprintf('<img class="nobohide" id="%s_big" src="%s">',
616 $altout_sponsor_arr[$ii]['id'], $altout_sponsor_arr[$ii]['content_big']);
621 /* NOTE: Brisk donate or donate fake if local */
623 $brisk_donate = file_get_contents(FTOK_PATH."/brisk_donate.txt");
625 $brisk_donate = '<div style="background-color: #ff0; height: 27px; margin-top: 4px;">BRISK_DONATE</div>';
627 if ($brisk_donate == FALSE)
631 /* MLANG: "briscola chiamata in salsa ajax", */
633 mt_srand(make_seed());
634 if (!$G_is_local && $_cookie_law_3party == 'true') {
638 $banner_top_left = '<script type="text/javascript"><!--
639 google_ad_client = "pub-5246925322544303";
640 google_ad_width = 234;
641 google_ad_height = 60;
642 google_ad_format = "234x60_as";
643 google_ad_type = "text_image";
644 google_ad_channel = "";
645 google_color_border = "808080";
646 google_color_bg = "f6f6f6";
647 google_color_link = "ffae00";
648 google_color_text = "404040";
649 google_color_url = "000000";
652 <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>';
653 $banner_top_right = carousel_top();
656 $banner_top_left = carousel_top();
657 $banner_top_right = '<script type="text/javascript"><!--
658 google_ad_client = "pub-5246925322544303";
659 google_ad_width = 234;
660 google_ad_height = 60;
661 google_ad_format = "234x60_as";
662 google_ad_type = "text_image";
663 google_ad_channel = "";
664 google_color_border = "808080";
665 google_color_bg = "f6f6f6";
666 google_color_link = "ffae00";
667 google_color_text = "404040";
668 google_color_url = "000000";
671 <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>';
674 else { // !$G_is_local
675 $banner_top_left = carousel_top();
676 $banner_top_right = carousel_top();
679 $brisk_header_form = '<div class="container">
680 <!-- =========== header =========== -->
681 <div id="header" class="header">
682 <table width="100%%" border="0" cols="3"><tr>
683 <td align="left"><div style="padding-left: 8px;">'.$banner_top_left.'</div></td>
684 <td align="center">'.(($G_with_topbanner || $G_with_donors) ? '<table><tr><td>' : '').'<div style="text-align: center;">
685 <img class="nobo" src="img/brisk_logo64.png">
686 '.$mlang_room['headline'][$G_lang].'<br>
687 </div>'.( ($G_with_topbanner || $G_with_donors) ? sprintf('</td><td>%s</td></tr></table>',
688 ($G_with_topbanner ? $G_topbanner :
689 "<div style='background-color: #ffd780; border: 1px solid black; text-align: center;'><img class='nobo' src=\"donometer.php?c=".$G_donors_cur."&a=".$G_donors_all."\"><div style='padding: 1px; background-color: white;'><b>donatori</b></div></div>") ) : '').'</td>
690 <td align="right"><div style="padding-right: 8px;">
691 '.$banner_top_right.'</div></td>
695 /* MLANG: ALL THE VERTICAL MENU */
696 $brisk_vertical_menu = '
697 <!-- =========== vertical menu =========== -->
698 <div class="topmenu">
699 <!-- <a target="_blank" href="/briskhome.php"></a> -->
701 <div class="webstart_hilite">
702 <img class="nobo" style="cursor: pointer;" src="img/brisk_start.png" onmouseover="menu_hide(0,0); menu_show(\'menu_webstart\');">
703 <div class="webstart" id="menu_webstart" onmouseover="menu_over(1,this);" onmouseout="menu_over(-1,this);">
705 <a href="#" onmouseover="menu_hide(0,1);" title="'.$mlang_room['tit_help'][$G_lang].'" onclick="act_help();"
706 >'.$mlang_room['itm_help'][$G_lang].'</a><br>
708 <a target="_blank" href="http://www.alternativeoutput.it/briskhome.php"
709 onmouseover="menu_hide(0,1);"
710 title="'.$mlang_room['tit_hpage'][$G_lang].'">homepage</a><br>
712 <a target="_blank" href="http://www.alternativeoutput.it/briskhome.php#cose"
713 onmouseover="menu_hide(0,1);"
714 title="'.$mlang_room['tit_what'][$G_lang].'">'.$mlang_room['itm_what'][$G_lang].'</a><br>
716 <a target="_blank" href="'.$mlang_room['url_rules'][$G_lang].'"
717 onmouseover="menu_hide(0,1);"
718 title="'.$mlang_room['tit_rules'][$G_lang].'">'.$mlang_room['itm_rules'][$G_lang].'</a><br>
720 <a target="_blank" href="http://www.alternativeoutput.it/briskhome.php#shots"
721 onmouseover="menu_hide(0,1);"
722 title="'.$mlang_room['tit_shot'][$G_lang].'">screenshoots</a><br>
724 <a target="_blank" href="http://www.alternativeoutput.it/briskhome.php#comp"
725 onmouseover="menu_hide(0,1);"
726 title="'.$mlang_room['tit_comp'][$G_lang].'">'.$mlang_room['itm_comp'][$G_lang].'</a><br>
728 <a target="_blank" href="http://www.alternativeoutput.it/briskhome.php#sources"
729 onmouseover="menu_hide(0,1);"
730 title="'.$mlang_room['tit_src'][$G_lang].'">'.$mlang_room['itm_src'][$G_lang].'</a><br>
732 <a target="_blank" href="http://www.alternativeoutput.it/briskhome.php#mailing"
733 onmouseover="menu_hide(0,1);"
734 title="'.$mlang_room['tit_ml'][$G_lang].'">'.$mlang_room['itm_ml'][$G_lang].'</a><br>
736 <a target="_blank" href="http://www.alternativeoutput.it/briskhome.php#prop"
737 onmouseover="menu_hide(0,1);"
738 title="'.$mlang_room['tit_pro'][$G_lang].'">'.$mlang_room['itm_pro'][$G_lang].'</a><br>
740 onmouseover="menu_hide(0,1);"
741 title="credits" onclick="act_about();">about</a><br>
743 <a href="mailto:brisk@alternativeoutput.it"
744 onmouseover="menu_hide(0,1);"
745 title="'.$mlang_room['tit_mail'][$G_lang].'">'.$mlang_room['itm_mail'][$G_lang].'</a><br>
747 <a target="_blank" href="http://www.alternativeoutput.it/cookie.php"
748 onmouseover="menu_hide(0,1);"
749 title="'.$mlang_room['tit_cook'][$G_lang].'"
750 alt="'.$mlang_room['tit_cook'][$G_lang].'">'.$mlang_room['itm_cook'][$G_lang].'</a><br>
754 onmouseover="menu_hide(0,1);"
755 title="'.$mlang_room['tit_cla'][$G_lang].'" onclick="act_placing();">'.$mlang_room['itm_cla'][$G_lang].'</a><br>
757 <a target="_blank" href="briskin5/explain.php"
758 onmouseover="menu_hide(0,1);"
759 title="'.$mlang_room['tit_mnu'][$G_lang].'">'.$mlang_room['itm_mnu'][$G_lang].'</a><br>
762 onmouseover="menu_hide(0,1);"
763 title="'.$mlang_room['tit_rmap'][$G_lang].'" onclick="act_roadmap();">'.$mlang_room['itm_rmap'][$G_lang].'</a><br>
765 <a href="#" title="'.$mlang_room['tit_meet'][$G_lang].'"
766 onmouseover="menu_show(\'menu_meeting\');">'.$mlang_room['itm_meet'][$G_lang].'</a><br>
768 <div style="text-align: right;" id="menu_meeting" class="webstart">
769 <a href="http://it-it.facebook.com/event.php?eid=262482143080&index=1"
770 target="_blank" onmouseover="menu_hide(0,2);"
771 title="1° Torneo-Meeting di Lodi del 21/02/2010" ><img style="display: inline;" class="nobo" src="img/coppa16.png">Lodi 02/10</a><br>
773 <a href="http://it-it.facebook.com/event.php?eid=165523204539&index=1"
774 target="_blank" onmouseover="menu_hide(0,2);"
775 title="1° Torneo-Meeting di Parma del 22/11/2009"><img style="display: inline;" class="nobo" src="img/coppa16.png">Parma 11/09</a><br>
777 <a href="http://it-it.facebook.com/event.php?eid=105699129890&index=1"
778 target="_blank" onmouseover="menu_hide(0,2);"
779 title="BriskMeeting di Parma del 13/09/2009" >Parma 09/09</a><br>
781 <a href="http://it-it.facebook.com/event.php?eid=97829048656&index=1"
782 target="_blank" onmouseover="menu_hide(0,2);"
783 title="BriskMeeting di Clusane d\'Iseo del 5/07/2009" >Clusane 07/09</a><br>
785 <a href="http://it-it.facebook.com/event.php?eid=103366692570&index=1"
786 target="_blank" onmouseover="menu_hide(0,2);"
787 title="BriskMeeting Siciliano del 14/06/2009" >Catania 06/09</a><br>
789 <a href="http://it-it.facebook.com/event.php?eid=81488770852&index=1"
790 target="_blank" onmouseover="menu_hide(0,2);"
791 title="BriskMeeting di Piacenza del 19/04/2009" >Piacenza 04/09</a><br>
793 <a href="http://it-it.facebook.com/event.php?eid=51159131399&index=1"
794 target="_blank" onmouseover="menu_hide(0,2);"
795 title="BriskMeeting di Parma del 22/02/2009" >Parma 02/09</a><br>
797 <a href="http://www.anomalia.it/mop/photoo?album=brisk_pc0806"
798 target="_blank" onmouseover="menu_hide(0,2);"
799 title="Raduno di Piacenza del del 15/06/2008" >Piacenza 06/08</a><br>
801 <a href="http://www.anomalia.it/mop/photoo"
802 target="_blank" onmouseover="menu_hide(0,2);"
803 title="Torneo di Milano del 17/05/2008" >Milano 05/08</a><br>
806 </div>'. ($ACTION == "room" ? '<div style="padding: 0px; margin: 0px; width: 50px; height: 8px; font-size: 1px;"></div><img class="nobo" style="cursor: pointer;" src="img/brisk_commands'.langtolng($G_lang).'.png" onmouseover="menu_hide(0,0); menu_show(\'menu_commands\');">
808 <div class="webstart" id="menu_commands" onmouseover="menu_over(1,this);" onmouseout="menu_over(-1,this);">
812 .$mlang_room['tit_stat'][$G_lang].
814 onmouseover="menu_hide(0,1); menu_show(\'menu_state\');">'
816 .$mlang_room['stat_desc'][$G_lang].
818 <div id="menu_state" class="webstart">
820 onmouseover="menu_hide(0,2);"
821 title="" onclick="act_chatt(\'/st normale\'); menu_over(-1,this);">'
823 .$mlang_room['st_norm_desc'][$G_lang].
827 onmouseover="menu_hide(0,2);"
828 title="" onclick="act_chatt(\'/st pausa\'); menu_over(-1,this);">'
830 .$mlang_room['st_paus_desc'][$G_lang].
831 ' <img class="unbo" src="img/st_pau.png"></a><br>
834 onmouseover="menu_hide(0,2);"
835 title="" onclick="act_chatt(\'/st fuori\'); menu_over(-1,this);">'
837 .$mlang_room['st_out_desc'][$G_lang].
838 ' <img class="unbo" src="img/st_out.png"></a><br>
841 onmouseover="menu_hide(0,2);"
842 title="" onclick="act_chatt(\'/st cane\'); menu_over(-1,this);">'
844 .$mlang_room['st_dog_desc'][$G_lang].
845 ' <img class="unbo" src="img/st_dog.png"></a><br>
848 onmouseover="menu_hide(0,2);"
849 title="" onclick="act_chatt(\'/st cibo\'); menu_over(-1,this);">'
851 .$mlang_room['st_food_desc'][$G_lang].
852 ' <img class="unbo" src="img/st_eat.png"></a><br>
855 onmouseover="menu_hide(0,2);"
856 title="" onclick="act_chatt(\'/st lavoro\'); menu_over(-1,this);">'
858 .$mlang_room['st_work_desc'][$G_lang].
859 ' <img class="unbo" src="img/st_wrk.png"></a><br>
862 onmouseover="menu_hide(0,2);"
863 title="" onclick="act_chatt(\'/st sigaretta\'); menu_over(-1,this);">'
865 .$mlang_room['st_smok_desc'][$G_lang].
866 ' <img class="unbo" src="img/st_smk.png"></a><br>
869 onmouseover="menu_hide(0,2);"
870 title="" onclick="act_chatt(\'/st presente\'); menu_over(-1,this);">'
872 .$mlang_room['st_pres_desc'][$G_lang].
873 ' <img class="unbo" src="img/st_eye.png"></a><br>
876 onmouseover="menu_hide(0,2);"
877 title="" onclick="act_chatt(\'/st coniglio\'); menu_over(-1,this);">'
879 .$mlang_room['st_rabb_desc'][$G_lang].
880 ' <img class="unbo" src="img/st_rabbit.png"></a><br>
883 onmouseover="menu_hide(0,2);"
884 title="" onclick="act_chatt(\'/st calcio\'); menu_over(-1,this);">'
886 .$mlang_room['st_socc_desc'][$G_lang].
887 ' <img class="unbo" src="img/st_soccer.png"></a><br>
890 onmouseover="menu_hide(0,2);"
891 title="" onclick="act_chatt(\'/st pupo\'); menu_over(-1,this);">'
893 .$mlang_room['st_baby_desc'][$G_lang].
894 ' <img class="unbo" src="img/st_baby.png"></a><br>
897 onmouseover="menu_hide(0,2);"
898 title="" onclick="act_chatt(\'/st pulizie\'); menu_over(-1,this);">'
900 .$mlang_room['st_mop_desc'][$G_lang].
901 ' <img class="unbo" src="img/st_mop.png"></a><br>
904 onmouseover="menu_hide(0,2);"
905 title="" onclick="act_chatt(\'/st babbo\'); menu_over(-1,this);">'
907 .$mlang_room['st_babbo_desc'][$G_lang].
908 ' <img class="unbo" src="img/st_babbo.png"></a><br>
911 onmouseover="menu_hide(0,2);"
912 title="" onclick="act_chatt(\'/st renna\'); menu_over(-1,this);">'
914 .$mlang_room['st_renna_desc'][$G_lang].
915 ' <img class="unbo" src="img/st_renna.png"></a><br>
918 onmouseover="menu_hide(0,2);"
919 title="" onclick="act_chatt(\'/st pupazzo\'); menu_over(-1,this);">'
921 .$mlang_room['st_pupaz_desc'][$G_lang].
922 ' <img class="unbo" src="img/st_pupaz.png"></a><br>
925 onmouseover="menu_hide(0,2);"
926 title="" onclick="act_chatt(\'/st vischio\'); menu_over(-1,this);">'
928 .$mlang_room['st_visch_desc'][$G_lang].
929 ' <img class="unbo" src="img/st_visch.png"></a><br>
933 <a href="#" title="avvia un ticker pubblicitario per il tuo tavolo"
934 onmouseover="menu_hide(0,1);" onclick="act_chatt(\'/tav \'+$(\'txt_in\').value); menu_over(-1,this);">ticker <img class="unbo" src="img/train.png"></a><br>
937 // MLANG garantisci per un tuo conoscente
938 .$mlang_room['warr_desc'][$G_lang].
940 onmouseover="menu_hide(0,1);" onclick="act_chatt(\'/authreq\'); menu_over(-1,this);">'
942 .$mlang_room['itm_warr'][$G_lang].
948 // MLANG garantisci per un tuo conoscente
949 .$mlang_room['splash_desc'][$G_lang].
951 onmouseover="menu_hide(0,1);" onclick="act_splash(); menu_over(-1,this);">'
953 .$mlang_room['tit_splash'][$G_lang].
955 '.($user->is_auth() ? '
957 // MLANG garantisci per un tuo conoscente
958 .$mlang_room['prefs_desc'][$G_lang].'"
959 onmouseover="menu_hide(0,1);" onclick="g_prefsf.visible(true); menu_over(-1,this);">'
961 .$mlang_room['tit_prefs'][$G_lang].'</a><br>' : '').'
963 </div>'.($G_with_poll ? '' : '<div style="padding: 0px; margin: 0px; witdh: 50px; height: 8px; font-size: 1px;"></div>
964 <img style="cursor: pointer;" class="nobo" src="img/brisk_help'.langtolng($G_lang).'.png" title="'.$mlang_room['tit_help'][$G_lang].'" onmouseover="menu_hide(0,0);" onclick="act_help();">').'
965 <div style="padding: 0px; margin: 0px; witdh: 50px; height: 8px; font-size: 1px;"></div>
966 '.($user->flags & USER_FLAG_AUTH ? '
967 <img style="cursor: pointer;" class="nobo" src="img/brisk_signal'.langtolng($G_lang).'.png" title="'.$mlang_room['tit_mesg'][$G_lang].'" onmouseover="menu_hide(0,0);" onclick="act_chatt(\'/mesgtoadm\');">'.poll_dom()
969 <img style="cursor: pointer;" class="nobo" src="img/brisk_password.png" title="Come ottenere una password su Brisk." onmouseover="menu_hide(0,0);" onclick="act_passwdhowto();">
975 <div style="padding: 0px; margin: 0px; witdh: 50px; height: 8px; font-size: 1px;"></div>
977 <div style="padding: 0px; margin: 0px; witdh: 50px; height: 4px; font-size: 1px;"></div>
978 <div id="spon_caro" style="overflow: hidden; height: 18px; /* border: 1px solid red; */ ">
979 <div style="/*background-color: green; */ text-align: left; position: relative; padding: 0px; margin: 0px; top: 0px; height: 80px;">'.$altout_sponsor.'<br>
981 <div style="position: absolute;">
982 '.$altout_sponsor_big.'
984 <div style="padding: 0px; margin: 0px; witdh: 50px; height: 8px; font-size: 1px;"></div>
986 <div style="padding: 0px; margin: 0px; witdh: 50px; height: 4px; font-size: 1px;"></div>
987 <div id="supp_caro" style="overflow: hidden; height: 18px; /* border: 1px solid red; */">
988 <div style="/* background-color: green; */ text-align: left; position: relative; padding: 0px; margin: 0px; top: 0px; height: 80px;">'.$altout_support.'<br>
992 <div style="position: absolute;">
993 '.$altout_support_big.'
995 <a style="/* position: absolute; top: 40px; left: 6px; */" target="_blank" href="http://it-it.facebook.com/group.php?gid=59742820791"><img class="nobo" id="btn_facebook" src="img/facebook_btn.png" title="unisciti al gruppo \'quelli della brisk\'"></a>
996 ' . ( /* NOTE: here facebook or fake facebook */
997 (!$G_is_local && $_cookie_law_3party == 'true') ?
998 '<div class="fb-like" style="margin-top: 4px;" data-href="https://www.facebook.com/pages/Brisk-briscola-chiamata-in-salsa-ajax/716026558416911" data-share="false" data-send="true" data-width="70" data-show-faces="false" data-colorscheme="dark" layout="button_count"></div>
999 ' : '' ) . '<div id="proflashext" class="proflashext"><div id="proflash" class="proflash"></div></div>
1000 <img id="stm_stat" class="nobo" style="margin-top: 4px;" src="img/line-status_b.png">
1006 if ($ACTION == 'login') {
1007 $header_out['Content-type'] = "text/html; charset=\"utf-8\"";
1011 <title>Brisk</title>
1012 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
1013 <link rel="shortcut icon" href="img/brisk_ico.png">
1014 <script type="text/javascript" src="commons.js"></script>
1015 <script type="text/javascript" src="fieldify.js"></script>
1016 <script type="text/javascript" src="info.js"></script>
1017 <!-- <script type="text/javascript" src="myconsole.js"></script> -->
1018 <script type="text/javascript" src="menu.js"></script>
1019 <script type="text/javascript" src="heartbit.js"></script>
1020 <script type="text/javascript" src="xynt-streaming.js"></script>
1021 <script type="text/javascript" src="preload_img<?php echo langtolng($G_lang); ?>.js"></script>
1022 <script type="text/javascript" src="AC_OETags.js"></script>
1023 <script type="text/javascript" src="room.js"></script>
1024 <script type="text/javascript" src="md5.js"></script>
1025 <script type="text/javascript" src="probrowser.js"></script>
1026 <script type="text/javascript" src="json2.js"></script>
1027 <script type="text/javascript" src="/cookie_law.js"></script>
1028 <link rel="stylesheet" type="text/css" href="/cookie_law.css">
1029 <link rel="stylesheet" type="text/css" href="brisk.css">
1030 <link rel="stylesheet" type="text/css" href="room.css">
1032 <script type="text/javascript"><!--
1034 var g_lang = "<? echo $G_lang; ?>";
1035 var g_lng = "<? echo $G_lng; ?>";
1036 var g_tables_n = <? echo TABLES_N; ?>;
1037 var g_tables_appr_n = <? echo TABLES_APPR_N; ?>;
1038 var g_tables_auth_n = <? echo TABLES_AUTH_N; ?>;
1039 var g_tables_cert_n = <? echo TABLES_CERT_N; ?>;
1040 var g_prefs, g_prefs_new = null;
1041 var g_prefsn = null, g_prefsn_old = null;
1043 var g_withflash = false;
1047 var gst = new globst();
1048 var topbanner_sfx, topbanner_dx;
1050 var sess = "not_connected";
1051 var spo_slide, sup_slide;
1053 window.onload = function() {
1054 // alert(window.onbeforeunload);
1055 g_brow = get_browser_agent();
1057 spo_slide = new sideslide($('spon_caro'), 80, 20);
1058 sup_slide = new sideslide($('supp_caro'), 80, 20);
1062 if ($G_with_topbanner) {
1063 printf(" topbanner_init();\n");
1065 sidebanners_init($G_sidebanner_idx);
1068 g_withflash = DetectFlashVer(6,0,0);
1069 if (g_withflash == false) {
1070 $("proflash").innerHTML = 'Audio con Flash.<br><a href="http://www.macromedia.com/"><img class="nobo" style="padding: 4px; width:73; height: 19;" src="img/download_now_flash.gif"></a>';
1073 $("proflashext").innerHTML = "";
1074 $("nameid").focus();
1080 if (!$G_is_local && $_cookie_law_3party == 'true') {
1082 <!-- if myconsole <body onunload="deconsole();"> -->
1083 <body xmlns:fb="http://ogp.me/ns/fb#">
1084 <div id="fb-root"></div>
1085 <script type="text/javascript"><!--
1086 (function(d, s, id) {
1087 var js, fjs = d.getElementsByTagName(s)[0];
1088 if (d.getElementById(id)) return;
1089 js = d.createElement(s); js.id = id;
1090 js.src = "//connect.facebook.net/it_IT/all.js#xfbml=1";
1091 fjs.parentNode.insertBefore(js, fjs);
1092 }(document, 'script', 'facebook-jssdk'));</script>
1100 printf($brisk_header_form);
1101 printf("<table class=\"floaty\"><tr><td class=\"floatyleft\">\n");
1102 printf($brisk_vertical_menu, '', '');
1104 sidebanners_render($G_sidebanner, $G_sidebanner_idx);
1105 printf("</td><td>");
1108 <!-- =========== tables =========== -->
1111 /* MLANG: "Digita il tuo nickname per accedere ai tavoli della briscola.", "entra", "Se non hai ancora una password, lascia il campo in bianco ed entra." ,"(se usi firefox e qualcosa non funziona prova a ricaricare la pagina con Ctrl + F5)" */
1115 <div style="text-align: center;">
1117 <div class="bye_msg" id="bye_msg"><?php echo "$last_msg"; ?></div>
1119 <?php echo $mlang_room['welcome'][$G_lang];?>
1121 <form accept-charset="utf-8" method="post" action="" onsubmit="return j_login_manager(this);">
1122 <input id="passid_private" name="pass_private" type="hidden" value="">
1123 <table class="login">
1124 <tr><td>nickname:</td>
1125 <td><input id="nameid" class="input_text" name="name" type="text" size="24" maxlength="12" value=""></td></tr>
1126 <tr><td>password:</td>
1127 <td><input id="passid" class="input_text" name="pass" type="password" size="24" maxlength="64" value=""></td></tr>
1128 <tr><td colspan="2"><input id="sub" value="<?php echo $mlang_room['btn_enter'][$G_lang];?>" type="submit" class="button"></td></tr>
1132 <?php echo $mlang_room['passwarn'][$G_lang];?><br><br>
1134 <button onclick="$('apprentice_div').style.display = ($('apprentice_div').style.display == 'none' ? 'inline-block' : 'none');">Vuoi ottenere un accesso da apprendista ?</button><br><br>
1135 <div id="apprentice_div" style="display: none;" class="apprentice">
1137 Inserisci il tuo nickname e il tuo indirizzo e-mail.<br>
1138 Il tuo nickname non può essere più lungo di 12 caratteri,<br>deve essere composto soltanto da lettere non accentate e numeri,<br>senza ripetere più di due volte lo stesso carattere (o delle cifre) consecutivamente.<br><br>
1139 <form accept-charset="utf-8" method="post" action="" onsubmit="return j_new_apprentice(this);">
1140 <input type="hidden" name="realsub" value="666">
1141 <table class="login">
1142 <tr><td>nickname:</td>
1143 <td><input id="nameid" class="input_text" name="cli_name" type="text" size="24" maxlength="12" value=""></td></tr>
1144 <tr><td>e-mail:</td>
1145 <td><input id="emailid" class="input_text" name="cli_email" type="text" size="24" maxlength="512" value=""></td></tr>
1146 <tr><td colspan="2"><table style="margin: auto;"><tr><td><input id="send" onclick="submit_click(this);" value="<?php echo $mlang_room['btn_send'][$G_lang];?>" type="submit" class="button"></td>
1147 <td><input id="close" onclick="submit_click(this);" value="<?php echo $mlang_room['btn_close'][$G_lang];?>" type="submit" class="button"></td></tr></table></td></tr>
1151 <?php echo $mlang_room['browwarn'][$G_lang];?><br>
1154 <div id="imgct"></div>
1155 <div id="logz"></div>
1156 <div id="sandbox"></div>
1157 <div id="sandbox2"></div>
1158 <div id="response"></div>
1159 <div id="xhrstart"></div>
1161 <div id="xhrlog"></div>
1163 <div id="xhrdeltalog"></div>
1165 <script language="JavaScript">
1174 else if ($ACTION == 'room') {
1175 $header_out['Content-type'] = "text/html; charset=\"utf-8\"";
1179 <title>Brisk</title>
1180 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
1181 <link rel="shortcut icon" href="img/brisk_ico.png">
1182 <script type="text/javascript" src="commons.js"></script>
1183 <script type="text/javascript" src="fieldify.js"></script>
1184 <script type="text/javascript" src="prefs.js"></script>
1185 <script type="text/javascript" src="info.js"></script>
1186 <!-- <script type="text/javascript" src="myconsole.js"></script> -->
1187 <script type="text/javascript" src="menu.js"></script>
1188 <script type="text/javascript" src="ticker.js"></script>
1189 <script type="text/javascript" src="heartbit.js"></script>
1190 <script type="text/javascript" src="xynt-streaming.js"></script>
1191 <script type="text/javascript" src="room.js"></script>
1192 <script type="text/javascript" src="preload_img<?php echo langtolng($G_lang); ?>.js"></script>
1193 <script type="text/javascript" src="AC_OETags.js"></script>
1194 <script type="text/javascript" src="probrowser.js"></script>
1195 <script type="text/javascript" src="json2.js"></script>
1196 <script type="text/javascript" src="/cookie_law.js"></script>
1197 <link rel="stylesheet" type="text/css" href="/cookie_law.css">
1198 <link rel="stylesheet" type="text/css" href="brisk.css">
1199 <link rel="stylesheet" type="text/css" href="room.css">
1200 <script type="text/javascript"><!--
1201 var sess = "not_connected";
1203 var g_lang = "<? echo $G_lang; ?>";
1204 var g_lng = "<? echo $G_lng; ?>";
1205 var g_tables_n = <? echo TABLES_N; ?>;
1206 var g_tables_appr_n = <? echo TABLES_APPR_N; ?>;
1207 var g_tables_auth_n = <? echo TABLES_AUTH_N; ?>;
1208 var g_tables_cert_n = <? echo TABLES_CERT_N; ?>;
1209 var g_prefs, g_prefs_new = null;
1210 var g_prefsn = null, g_prefsn_old = null;
1213 var g_withflash = false;
1215 var g_imgtot = g_preload_img_arr.length;
1221 var gst = new globst();
1222 var topbanner_sfx, topbanner_dx;
1223 // var nonunload = false;
1224 var spo_slide, sup_slide;
1227 window.onload = function() {
1228 g_brow = get_browser_agent();
1230 g_prefs = new client_prefs(null);
1231 /* g_prefsn = new Prefsn($('prefsn')); */
1232 prefsf_initialize();
1233 // console.log(g_prefsf);
1234 spo_slide = new sideslide($('spon_caro'), 80, 20);
1235 sup_slide = new sideslide($('supp_caro'), 80, 20);
1237 g_prefsf.page_set('index_wr.php?mesg=prefsf');
1239 if ($BRISK_SHOWHTML == "debugtable") {
1241 room_checkspace(12, <?php echo TABLES_N; ?>, 50);
1246 // alert("INDEX START");
1249 if ($G_with_topbanner) {
1250 printf(" topbanner_init();\n");
1252 sidebanners_init($G_sidebanner_idx);
1254 sess = "<?php echo "$sess"; ?>";
1255 xstm = new xynt_streaming(window, "<?php echo "$transp_type"; ?>", 80, 2, null /* console */, gst, 'index_php', 'sess', sess, $('sandbox'), 'index_rd.php', function(com){eval(com);});
1256 xstm.hbit_set(heartbit);
1257 tra = new train($('room_tit'));
1258 window.onunload = onunload_cb;
1259 window.onbeforeunload = onbeforeunload_cb;
1260 g_withflash = DetectFlashVer(6,0,0);
1261 if (g_withflash == false) {
1262 $("proflash").innerHTML = 'Audio con Flash.<br><a href="http://www.macromedia.com/"><img class="nobo" style="padding: 4px; width:73; height: 19;" src="img/download_now_flash.gif"></a>';
1265 $("proflashext").innerHTML = "";
1267 // console.log("session from main: "+sess);
1269 // alert("ARR LENGTH "+g_preload_img_arr.length);
1270 // FIXME: preload image will be fired by stream instead here
1271 // setTimeout(preload_images, 0, g_preload_img_arr, g_imgct);
1272 $("txt_in").focus();
1275 /* MLANG: "<br>Il nickname che stai usando è già registrato,<br><br>se il suo proprietario si autentificherà<br><br>verrai rinominato d'ufficio come ghost<i>N</i>.", "torna ai tavoli" */
1276 echo show_notify($mlang_room['regwarn'][$G_lang], 0, $mlang_room['btn_rettabs'][$G_lang], 400, 150);
1285 if (!$G_is_local && $_cookie_law_3party == 'true') {
1287 <!-- if myconsole <body onunload="deconsole();"> -->
1288 <body xmlns:fb="http://ogp.me/ns/fb#">
1289 <div id="fb-root"></div>
1290 <script>(function(d, s, id) {
1291 var js, fjs = d.getElementsByTagName(s)[0];
1292 if (d.getElementById(id)) return;
1293 js = d.createElement(s); js.id = id;
1294 js.src = "//connect.facebook.net/it_IT/all.js#xfbml=1";
1295 fjs.parentNode.insertBefore(js, fjs);
1296 }(document, 'script', 'facebook-jssdk'));</script>
1304 printf($brisk_header_form);
1305 printf("<table class=\"floaty\"><tr><td class=\"floatyleft\">\n");
1306 printf($brisk_vertical_menu, '', $brisk_donate);
1308 sidebanners_render($G_sidebanner, $G_sidebanner_idx);
1310 printf("</td><td>");
1312 <!-- =========== tables =========== -->
1313 <input name="sess" type="hidden" value="<?php echo "$user->sess"; ?>">
1314 <table class="macro"><tr><td>
1315 <?php echo "$tables";?>
1317 <?php echo "$standup";?>
1321 <!-- =========== bottom =========== -->
1322 <div id="bottom" class="bottom">
1323 <b>Chat</b> <span id="list_info" style="color: red;"></span><br>
1324 <div id="txt" class="chatt">
1326 <div style="text-align: center; ">
1327 <!-- MLANG: scrivi un invito al tavolo e clicca -->
1328 <table style="width: 98%; margin: auto;"><tr><td id="tickbut" class="tickbut"><img class="tickbut" src="img/train.png" onclick="act_tav();" title="<?php echo $mlang_room['tit_ticker'][$G_lang];?>"></td><td style="width:1%; text-align: center;">
1329 <div id="myname"></div>
1331 <input id="txt_in" maxlength="128" type="text" style="width: 100%;" onkeypress="chatt_checksend(this,event);">
1336 <div id="authbox" class="notify" style="text-align: center;">
1339 <!-- MLANG: Garantisci per un tuo conoscente: -->
1340 <?php echo $mlang_room['tit_warr'][$G_lang];?>
1344 <form id="auth_form" accept-charset="utf-8" method="post" action="" onsubmit="return j_authbox(this);">
1345 <input type="hidden" name="realsub" value="666">
1346 <table class="login">
1347 <tr><td>nickname:</td>
1348 <td><input id="nameid" class="input_text" name="name" type="text" size="24" maxlength="12" value=""></td></tr>
1349 <tr><td>e-mail:</td>
1350 <td><input id="emailid" class="input_text" name="email" type="text" size="24" maxlength="1024" value=""></td></tr>
1351 <tr><td colspan="2" style="text-align: center;">
1352 <!-- MLANG: Garantisci per un tuo conoscente: -->
1353 <input id="subid" name="sub" value=
1354 "<?php echo $mlang_room['btn_send'][$G_lang]; ?>"
1355 type="submit" onclick="this.form.elements['realsub'].value = 'invia';" class="button">
1356 <!-- MLANG: Garantisci per un tuo conoscente: -->
1357 <input id="cloid" name="clo" value=
1358 "<?php echo $mlang_room['btn_close'][$G_lang]; ?>"
1359 type="submit" class="button" onclick="this.form.elements['realsub'].value = 'chiudi';"></td></tr>
1363 <div id="mesgtoadmbox" class="notify_opaque" style="text-align: center;">
1365 <!--MLANG: Invia un messaggio o una segnalazione all\'amministratore: -->
1366 <b><?php echo $mlang_room['mesgtoadm_tit'][$G_lang];?></b>
1368 <form id="mesgtoadm_form" accept-charset="utf-8" method="post" action="" onsubmit="return j_mesgtoadmbox(this);">
1369 <input type="hidden" name="realsub" value="666">
1370 <table class="login">
1371 <!--MLANG: soggetto -->
1372 <tr><td><b><?php echo $mlang_room['mesgtoadm_sub'][$G_lang];?></b></td>
1373 <td><input id="subjid" class="input_text" name="subj" type="text" size="32" maxlength="255" value=""></td></tr></table>
1374 <table class="login">
1375 <tr><td><img title="messaggio" class="nobo" src="img/mesgtoadm_mesg<?php echo $G_lng;?>.png"></td>
1376 <td><textarea id="mesgid" class="input_text" name="mesg" cols="40" rows="8" wrap="soft"></textarea></td></tr>
1377 <tr><td colspan="2" style="text-align: center;">
1378 <input id="subid" name="sub" value="<?php echo $mlang_room['btn_send'][$G_lang];?>" type="submit" onclick="submit_click(this);" class="button">
1379 <input id="cloid" name="clo" value="<?php echo $mlang_room['btn_close'][$G_lang];?>" type="submit" class="button" onclick="submit_click(this);"></td></tr>
1383 <div id="heartbit"></div>
1384 <div id="sandbox"></div>
1385 <div id="imgct"></div>
1386 <div id="logz"></div>
1387 <div id="sandbox2"></div>
1388 <div id="response"></div>
1389 <div id="remark"></div>
1390 <div id="xhrstart"></div>
1391 <div id="xhrlog"></div>
1392 <div id="xhrdeltalog"></div>
1395 <div id="info" class="notify" style="z-index: 200; width: 500px; margin-left: -250px; height: 340px; top: 150px; visibility: hidden;">
1396 <table class="info">
1399 <td class="head"><span><?php echo $mlang_room['info_login'][$G_lang]; ?>:</span></td>
1400 <td class="ri b-right data"><span class="login_id"></span></td>
1401 <td class="head"><span><?php echo $mlang_room['info_status'][$G_lang]; ?>:</span></td>
1402 <td class="ri data"><span class="state_id"></span></td>
1406 <td class="head"><span><?php echo $mlang_room['info_guar'][$G_lang]; ?>:</span></td>
1407 <td class="ri b-right data"><span class="guar_id"></span></td>
1408 <td class="head"><span class="title" title="<?php echo $mlang_room['info_match_tit'][$G_lang]; ?>"><?php echo $mlang_room['info_match'][$G_lang]; ?>:</span></td>
1409 <td class="ri data"><span class="match_id"></span></td>
1413 <td class="head"><span class="title" title="<?php echo $mlang_room['info_party_tit'][$G_lang]; ?>"><?php echo $mlang_room['info_party'][$G_lang]; ?>:</span></td>
1414 <td class="ri b-right data"><span class="party_id"></span></td>
1415 <td class="head"><span class="title" title="<?php echo $mlang_room['info_game_tit'][$G_lang]; ?>"><?php echo $mlang_room['info_game'][$G_lang]; ?>:</span></td>
1416 <td class="ri data"><span class="game_id"></span></td>
1419 <tr class="widefriend_id">
1420 <td colspan="3" class="head"><span><?php echo $mlang_room['info_repfrie'][$G_lang]; ?>:</span></td>
1421 <td class="le data"><?php echo $mlang_room['info_skill'][$G_lang]; ?>: <span class="skill_id"></span></td>
1424 <tr class="widefriend_id"><td class="le info-opt data">Da evitare: <span class="black_id"></span></td>
1425 <td class="le info-opt data">In prova: <span class="test_id"></span></td>
1426 <td class="le info-opt data">Amico: <span class="friend_id"></span></td>
1427 <td class="le data">Fidato: <span class="bff_id"></span></td></tr>
1429 <tr class="narrowfriend_id">
1430 <td colspan="3" class="head"><span><?php echo $mlang_room['info_repbff'][$G_lang]; ?>:</span></td>
1431 <td class="le data"><?php echo $mlang_room['info_skill'][$G_lang]; ?>: <span class="skill_id"></span></td></tr>
1433 <tr class="narrowfriend_id"><td class="le info-opt data">Da evitare: <span class="black_id"></span></td>
1434 <td class="le info-opt data">In prova: <span class="test_id"></span></td>
1435 <td class="le info-opt data">Amico: <span class="friend_id"></span></td>
1436 <td class="le data">Fidato: <span class="bff_id"></span></td></tr>
1437 <tr><td class="le ri triple" colspan="3"><b><?php echo $mlang_room['info_frie'][$G_lang]; ?></b></td>
1438 <td class="le data triple">
1439 <input type="radio" name="friend" class="friend_id" value="black">
1440 <span class="friend_t_id" data-ffy-value="black">Da evitare</span>
1443 <td class="le info-opt data"><input type="radio" name="friend" class="friend_id" value="unknown">
1444 <span class="friend_t_id" data-ffy-value="unknown">Sconosciuto</span></td>
1445 <td class="le info-opt data"><input type="radio" name="friend" class="friend_id" value="test">
1446 <span class="friend_t_id" data-ffy-value="test">In prova</span></td>
1447 <td class="ri info-opt data"><input type="radio" name="friend" class="friend_id" value="friend">
1448 <span class="friend_t_id" data-ffy-value="friend">Amico</span></td>
1449 <td class="ri info-opt data"><input type="radio" name="friend" class="friend_id" value="bff">
1450 <span class="friend_t_id" data-ffy-value="bff">Amico fidato</span></td>
1452 <tr class="onlyifknown_gid">
1453 <td class="le head"><span><?php echo $mlang_room['info_skill'][$G_lang]; ?>:</span></td>
1455 <table class="fiverank" style="margin: auto;">
1456 <tr><td class="c1t"><span class="skill_t_id" data-ffy-value="1">1</span></td>
1457 <td class="c2t"><span class="skill_t_id" data-ffy-value="2">2</span></td>
1458 <td class="c3t"><span class="skill_t_id" data-ffy-value="3">3</span></td>
1459 <td class="c4t"><span class="skill_t_id" data-ffy-value="4">4</span></td>
1460 <td class="c5t"><span class="skill_t_id" data-ffy-value="5">5</span></td></tr>
1461 <tr><td class="c1b"><input type="radio" name="skill" class="skill_id" value="1"></td>
1462 <td class="c2b"><input type="radio" name="skill" class="skill_id" value="2"></td>
1463 <td class="c3b"><input type="radio" name="skill" class="skill_id" value="3"></td>
1464 <td class="c4b"><input type="radio" name="skill" class="skill_id" value="4"></td>
1465 <td class="c5b"><input type="radio" name="skill" class="skill_id" value="5"></td>
1469 <td class="le"><b>Credibilità:</b></td>
1471 <table class="fiverank" style="margin: auto;">
1472 <tr><td class="c1t"><span class="trust_t_id" data-ffy-value="1">1</span></td>
1473 <td class="c2t"><span class="trust_t_id" data-ffy-value="2">2</span></td>
1474 <td class="c3t"><span class="trust_t_id" data-ffy-value="3">3</span></td>
1475 <td class="c4t"><span class="trust_t_id" data-ffy-value="4">4</span></td>
1476 <td class="c5t"><span class="trust_t_id" data-ffy-value="5">5</span></td></tr>
1477 <tr><td class="c1b"><input type="radio" name="trust" class="trust_id" value="1"></td>
1478 <td class="c2b"><input type="radio" name="trust" class="trust_id" value="2"></td>
1479 <td class="c3b"><input type="radio" name="trust" class="trust_id" value="3"></td>
1480 <td class="c4b"><input type="radio" name="trust" class="trust_id" value="4"></td>
1481 <td class="c5b"><input type="radio" name="trust" class="trust_id" value="5"></td>
1486 <div style="position: absolute; bottom: 8px; margin: auto; width: 100%;">
1487 <input type="submit" class="input_sub" style="bottom: 4px;" onclick="$('info').style.visibility = 'hidden';" value="<?php echo $mlang_room['btn_close'][$G_lang]; ?>"/>
1488 <input type="submit" class="input_sub" style="bottom: 4px;" onclick="info_reset();" value="<?php echo $mlang_room['btn_reset'][$G_lang]; ?>"/>
1489 <input type="submit" class="input_sub" style="bottom: 4px;" onclick="info_save();" value="<?php echo $mlang_room['btn_save'][$G_lang]; ?>"/>
1496 <!-- PREFERENCES -->
1497 <div id="preferences" class="notify" style="z-index: 200; width: 600px; margin-left: -300px; height: 240px; top: 150px; visibility: hidden;">
1498 <div id="preferences_child" style="border-bottom: 1px solid gray; overflow: auto; height: 370px;">
1500 <h2><?php echo $mlang_room['tit_prefs'][$G_lang]; ?></h2>
1501 <table style="margin: auto;"><tr><td style="vertical-align: top;">
1505 <div style="float: left; padding: 8px;">
1506 <table style="border: 1px solid gray;"><tr><th style="background-color: #cccccc;">
1507 <?php echo $mlang_room['itm_list'][$G_lang];?>
1509 <tr><td><input style="vertical-align: bottom;" id="ra_listen_all" type="radio" name="listen" value="0" onclick="prefs_update('listen');" title="<?php echo $mlang_room['listall_desc'][$G_lang];?>"><span id="list_all">
1510 <?php echo $mlang_room['tit_listall'][$G_lang];?>
1512 <tr><td><input style="vertical-align: bottom;" id="ra_listen_auth" type="radio" name="listen" value="1" onclick="prefs_update('listen');" title="<?php echo $mlang_room['listaut_desc'][$G_lang];?>"><span id="list_auth">
1513 <?php echo $mlang_room['tit_listaut'][$G_lang];?>
1515 <tr><td><input style="vertical-align: bottom;" id="ra_listen_isol" type="radio" name="listen" value="2" onclick="prefs_update('listen');" title="<?php echo $mlang_room['listisol_desc'][$G_lang];?>"><span id="list_isol">
1516 <?php echo $mlang_room['tit_listisol'][$G_lang];?>
1521 if ($user->is_supp_custom()) {
1524 <td style="vertical-align: top;">
1528 <div style="float: left; padding: 8px;">
1529 <table style="border: 1px solid gray;"><tr><th colspan="4" style="background-color: #cccccc;">
1530 <?php echo $mlang_room['suppcomp_tit'][$G_lang];?>
1534 <?php echo $mlang_room['suppcomp_fg'][$G_lang];?>
1535 </th><td><input style="width: 3em;" id="s_fg_r" type="text" maxlength="3" size="3" name="s_fg_r"
1536 onchange="prefs_update('supp');" value="255"
1537 title="'<?php echo $mlang_room['suppcomp_range'][$G_lang];?>'">
1538 <span id="list_all"><?php echo $mlang_room['suppcomp_r'][$G_lang];?></span></td>
1539 <td><input style="width: 3em;" id="s_fg_g" type="text" maxlength="3" size="3" name="s_fg_g"
1540 onchange="prefs_update('supp');" value="255"
1541 title="'<?php echo $mlang_room['suppcomp_range'][$G_lang];?>'">
1542 <span id="list_all"><?php echo $mlang_room['suppcomp_g'][$G_lang];?></span></td>
1543 <td><input style="width: 3em;" id="s_fg_b" type="text" maxlength="3" size="3" name="s_fg_b"
1544 onchange="prefs_update('supp');" value="255"
1545 title="'<?php echo $mlang_room['suppcomp_range'][$G_lang];?>'">
1546 <span id="list_all"><?php echo $mlang_room['suppcomp_b'][$G_lang];?></span></td>
1550 <?php echo $mlang_room['suppcomp_bg'][$G_lang];?>
1552 <td><input style="width: 3em;" id="s_bg_r" type="text" maxlength="3" size="3" name="s_bg_r"
1553 onchange="prefs_update('supp');" value="255"
1554 title="'<?php echo $mlang_room['suppcomp_range'][$G_lang];?>'">
1555 <span id="list_all"><?php echo $mlang_room['suppcomp_r'][$G_lang];?></span></td>
1556 <td><input style="width: 3em;" id="s_bg_g" type="text" maxlength="3" size="3" name="s_bg_g"
1557 onchange="prefs_update('supp');" value="255"
1558 title="'<?php echo $mlang_room['suppcomp_range'][$G_lang];?>'">
1559 <span id="list_all"><?php echo $mlang_room['suppcomp_g'][$G_lang];?></span></td>
1560 <td><input style="width: 3em;" id="s_bg_b" type="text" maxlength="3" size="3" name="s_bg_b"
1561 onchange="prefs_update('supp');" value="255"
1562 title="'<?php echo $mlang_room['suppcomp_range'][$G_lang];?>'">
1563 <span id="list_all"><?php echo $mlang_room['suppcomp_b'][$G_lang];?></span></td>
1565 <tr><td colspan="4" style="text-align: center;">
1566 <img id="s_img" class="nobo" src="img/noimg.png">
1576 <input id="s_fg_r" type="hidden" name="s_fg_r">
1577 <input id="s_fg_g" type="hidden" name="s_fg_g">
1578 <input id="s_fg_b" type="hidden" name="s_fg_b">
1579 <input id="s_bg_r" type="hidden" name="s_bg_r">
1580 <input id="s_bg_g" type="hidden" name="s_bg_g">
1581 <input id="s_bg_b" type="hidden" name="s_bg_b">
1582 <input id="s_img" type="hidden" name="s_bg_b">
1587 <div style="width: 95%; /* background-color: red; */ margin: auto; text-align: left;">
1589 <!-- <input type="checkbox" name="pref_ring_endauct" id="pref_ring_endauct" onclick="pref_ring_endauct_set(this);"><?php /* echo $mlang_room['itm_ringauc'][$G_lang]; */ ?> -->
1592 <div class="notify_clo">
1593 <input type="submit" class="input_sub" style="bottom: 4px;" onclick="$('preferences').style.visibility = 'hidden';" value="<?php echo $mlang_room['btn_close'][$G_lang]; ?>"/>
1594 <input type="submit" class="input_sub" style="bottom: 4px;" onclick="prefs_reset();" value="<?php echo $mlang_room['btn_reset'][$G_lang]; ?>"/>
1595 <input type="submit" class="input_sub" style="bottom: 4px;" onclick="prefs_save();" value="<?php echo $mlang_room['btn_save'][$G_lang]; ?>"/>
1597 </div> <!-- end preferences -->
1603 <div id="prefsf" class="notify" style="z-index: 200; width: 600px; margin-left: -300px; height: 240px; top: 150px; visibility: hidden;">
1604 <div id="prefsf_child" style="background-color: text-align: left; border-bottom: 1px solid gray; overflow: auto; height: 370px;">
1605 <h4 style="text-align: left;"><?php echo $mlang_room['tit_prefs'][$G_lang]; ?> <img style="border: 0px; position: relative;" id="prefsf-status-flag" src="img/light-none.png"></h4>
1606 <table style="text-align: center; margin: auto; border-collapse: collapse;"><tr><td style="vertical-align: top;">
1607 <tr><td style="vertical-align: top; border: 1px solid black; border-width: 1px 0px 1px 0px;">
1612 <span style="font-weight: bold;"><?php echo $mlang_room['itm_list'][$G_lang];?>:</span>
1615 <input class="listen_id" style="vertical-align: bottom;" type="radio" name="listen" value="0" title="<?php echo $mlang_room['listall_desc'][$G_lang];?>">
1616 <span class="listen_t_id" data-ffy-value="0"><?php echo $mlang_room['tit_listall'][$G_lang];?></span>
1618 <input class="listen_id" style="vertical-align: bottom;" type="radio" name="listen" value="1" title="<?php echo $mlang_room['listaut_desc'][$G_lang];?>">
1619 <span class="listen_t_id" data-ffy-value="1"><?php echo $mlang_room['tit_listaut'][$G_lang];?></span>
1621 <input class="listen_id" style="vertical-align: bottom;" type="radio" name="listen" value="2" title="<?php echo $mlang_room['listisol_desc'][$G_lang];?>">
1622 <span class="listen_t_id" data-ffy-value="2"><?php echo $mlang_room['tit_listisol'][$G_lang];?></span>
1627 if ($user->is_supp_custom()) {
1629 <td style="vertical-align: top; border: 1px solid black; border-width: 1px 0px 1px 1px;"">
1634 <tr><td colspan="4">
1635 <span style="font-weight: bold;"><?php echo $mlang_room['suppcomp_tit'][$G_lang];?>:
1637 <tr class="fg_id"><td style="border: 0px solid black; border-width: 0px 0px 1px 0px;">
1638 <span style="font-weight: bold;"><?php echo $mlang_room['suppcomp_fg'][$G_lang];?>:</span>
1639 </td><td style="border: 0px solid black; border-width: 0px 0px 1px 0px;">
1640 <input class="r_id" style="width: 3em;" type="text" maxlength="3" size="3" value="255"
1641 title="<?php echo $mlang_room['suppcomp_range'][$G_lang];?>">
1642 <span id="list_all"><?php echo $mlang_room['suppcomp_r'][$G_lang];?></span>
1643 </td><td style="border: 0px solid black; border-width: 0px 0px 1px 0px;">
1644 <input class="g_id" style="width: 3em;" type="text" maxlength="3" size="3" value="255"
1645 title="<?php echo $mlang_room['suppcomp_range'][$G_lang];?>">
1646 <span id="list_all"><?php echo $mlang_room['suppcomp_g'][$G_lang];?></span>
1647 </td><td style="border: 0px solid black; border-width: 0px 0px 1px 0px;">
1648 <input class="b_id" style="width: 3em;" type="text" maxlength="3" size="3" value="255"
1649 title="<?php echo $mlang_room['suppcomp_range'][$G_lang];?>">
1650 <span id="list_all"><?php echo $mlang_room['suppcomp_b'][$G_lang];?></span>
1652 <tr class="bg_id"><td>
1653 <span style="font-weight: bold;">
1654 <?php echo $mlang_room['suppcomp_bg'][$G_lang];?>:</span>
1656 <input class="r_id" style="width: 3em;" type="text" maxlength="3" size="3" value="255"
1657 title="<?php echo $mlang_room['suppcomp_range'][$G_lang];?>">
1658 <span id="list_all"><?php echo $mlang_room['suppcomp_r'][$G_lang];?></span>
1660 <input class="g_id" style="width: 3em;" type="text" maxlength="3" size="3" value="255"
1661 title="<?php echo $mlang_room['suppcomp_range'][$G_lang];?>">
1662 <span id="list_all"><?php echo $mlang_room['suppcomp_g'][$G_lang];?></span>
1664 <input class="b_id" style="width: 3em;" type="text" maxlength="3" size="3" value="255"
1665 title="<?php echo $mlang_room['suppcomp_range'][$G_lang];?>">
1666 <span id="list_all"><?php echo $mlang_room['suppcomp_b'][$G_lang];?></span>
1668 <tr><td colspan="4" style="text-align: center;">
1669 <img id="s_img" class="nobo" src="img/noimg.png">
1676 <div style="width: 95%; /* background-color: red; */ margin: auto; text-align: left;">
1678 <!-- <input type="checkbox" name="pref_ring_endauct" id="pref_ring_endauct" onclick="pref_ring_endauct_set(this);"><?php /* echo $mlang_room['itm_ringauc'][$G_lang]; */ ?> -->
1681 <div class="notify_clo">
1682 <input type="submit" class="input_sub" style="bottom: 4px;" onclick="g_prefsf.visible(false);" value="<?php echo $mlang_room['btn_close'][$G_lang]; ?>"/>
1683 <input type="submit" class="input_sub" style="bottom: 4px;" onclick="g_prefsf.reset();" value="<?php echo $mlang_room['btn_reset'][$G_lang]; ?>"/>
1684 <input type="submit" class="input_sub" style="bottom: 4px;" onclick="g_prefsf.save();" value="<?php echo $mlang_room['btn_save'][$G_lang]; ?>"/>
1686 </div> <!-- end prefsf -->
1688 <script language="JavaScript">