3 * brisk - briskin5/index.php
5 * Copyright (C) 2006-2012 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 /* MLANG: le img dell'asta */
29 require_once("../Obj/brisk.phh");
30 require_once("../Obj/proxyscan.phh");
31 require_once("Obj/briskin5.phh");
33 $mlang_bin5_index = array( 'aucwin' => array( 'it' => 'Hai vinto l\'asta.<br> Scegli il seme:',
34 'en' => 'You win the auction.<br> Choose the seed:' ),
35 'tit_info' => array( 'it' => 'Info',
37 'tit_relo' => array( 'it' => 'Reload',
39 'tit_out' => array( 'it' => 'Fuori',
41 'tit_pref' => array( 'it' => 'Prefs',
43 'itm_ringauc' => array('it' => 'riproduci un suono di notifica alla fine dell\' asta',
44 'en' => 'play a sound at the end of the auction'),
45 'btn_update' => array('it' => 'Aggiorna.',
50 function bin5_index_main($transp_type, &$header_out, $addr, $get, $post, $cookie)
52 GLOBAL $G_lang, $mlang_bin5_index;
53 if (($table_idx = gpcs_var('table_idx', $get, $post, $cookie)) === FALSE)
55 if (($laststate = gpcs_var('laststate', $get, $post, $cookie)) === FALSE)
57 if (($sess = gpcs_var('sess', $get, $post, $cookie)) === FALSE)
60 // Use of proxies isn't allowed.
65 // header('Content-type: text/html; charset="utf-8"',true);
69 <title>Brisk - Tavolo <?php echo "$table_idx";?></title>
70 <link rel="shortcut icon" href="../img/brisk_ico.png">
71 <script type="text/javascript" src="../commons.js"></script>
72 <script type="text/javascript" src="../heartbit.js"></script>
73 <script type="text/javascript" src="../xynt-streaming.js"></script>
74 <script type="text/javascript" src="dnd.js"></script>
75 <script type="text/javascript" src="dom-drag.js"></script>
76 <script type="text/javascript" src="preload_img<?php echo langtolng($G_lang); ?>.js"></script>
77 <script type="text/javascript" src="briskin5.js"></script>
78 <script type="text/javascript" src="../AC_OETags.js"></script>
79 <link rel="stylesheet" type="text/css" href="../brisk.css">
80 <link rel="stylesheet" type="text/css" href="briskin5.css">
83 <SCRIPT type="text/javascript">
84 var sess = "not_connected";
86 var g_lang = "<?php echo "$G_lang"; ?>";
90 var g_withflash = false;
95 var gst = new globst();
97 log_load("bin5/index.php");
99 if (isset($laststate) == false) {
105 // var g_table_idx=<?php echo "$table_idx";?>;
108 var g_imgtot = g_preload_img_arr.length;
111 window.onload = function() {
112 g_withflash = DetectFlashVer(6,0,0);
116 preferences_update();
118 sess = "<?php echo "$sess"; ?>";
119 xstm = new xynt_streaming(window, "<?php echo "$transp_type"; ?>", 80, 2, null /* console */, gst, 'table_php', 'sess', sess, $('sandbox'), 'index_rd.php', function(com){eval(com);});
120 xstm.hbit_set(heartbit);
122 window.onbeforeunload = onbeforeunload_cb;
123 window.onunload = onunload_cb;
126 // FIXME: add this setTimeout(preload_images into data stream to avoid
127 // race on opened socket
128 // setTimeout(preload_images, 0, g_preload_img_arr, g_imgct);
131 <div id="bg" class="area">
133 <div id="remark" class="remark0"></div>
134 <img id="card0" src="img/00.png" class="card">
135 <img id="card1" src="img/01.png" class="card">
136 <img id="card2" src="img/02.png" class="card">
137 <img id="card3" src="img/03.png" class="card">
138 <img id="card4" src="img/04.png" class="card">
139 <img id="card5" src="img/05.png" class="card">
140 <img id="card6" src="img/06.png" class="card">
141 <img id="card7" src="img/07.png" class="card">
142 <img id="takes" src="img/cover.png" class="cover">
143 <img id="card_ne0" src="img/cover.png" class="cover">
144 <img id="card_ne1" src="img/cover.png" class="cover">
145 <img id="card_ne2" src="img/cover.png" class="cover">
146 <img id="card_ne3" src="img/cover.png" class="cover">
147 <img id="card_ne4" src="img/cover.png" class="cover">
148 <img id="card_ne5" src="img/cover.png" class="cover">
149 <img id="card_ne6" src="img/cover.png" class="cover">
150 <img id="card_ne7" src="img/cover.png" class="cover">
151 <img id="takes_ne" src="img/cover.png" class="cover">
152 <img id="card_nw0" src="img/cover.png" class="cover">
153 <img id="card_nw1" src="img/cover.png" class="cover">
154 <img id="card_nw2" src="img/cover.png" class="cover">
155 <img id="card_nw3" src="img/cover.png" class="cover">
156 <img id="card_nw4" src="img/cover.png" class="cover">
157 <img id="card_nw5" src="img/cover.png" class="cover">
158 <img id="card_nw6" src="img/cover.png" class="cover">
159 <img id="card_nw7" src="img/cover.png" class="cover">
160 <img id="takes_nw" src="img/cover.png" class="cover">
161 <img id="card_ea0" src="img/cover_ea.png" class="cover">
162 <img id="card_ea1" src="img/cover_ea.png" class="cover">
163 <img id="card_ea2" src="img/cover_ea.png" class="cover">
164 <img id="card_ea3" src="img/cover_ea.png" class="cover">
165 <img id="card_ea4" src="img/cover_ea.png" class="cover">
166 <img id="card_ea5" src="img/cover_ea.png" class="cover">
167 <img id="card_ea6" src="img/cover_ea.png" class="cover">
168 <img id="card_ea7" src="img/cover_ea.png" class="cover">
169 <img id="takes_ea" src="img/cover_ea.png" class="cover">
170 <img id="card_we0" src="img/cover_we.png" class="cover">
171 <img id="card_we1" src="img/cover_we.png" class="cover">
172 <img id="card_we2" src="img/cover_we.png" class="cover">
173 <img id="card_we3" src="img/cover_we.png" class="cover">
174 <img id="card_we4" src="img/cover_we.png" class="cover">
175 <img id="card_we5" src="img/cover_we.png" class="cover">
176 <img id="card_we6" src="img/cover_we.png" class="cover">
177 <img id="card_we7" src="img/cover_we.png" class="cover">
178 <img id="takes_we" src="img/cover_we.png" class="cover">
179 <div id="asta" class="asta">
180 <img id="asta0" src="img/asta0.png" class="astacard">
181 <img id="asta1" src="img/asta1.png" class="astacard">
182 <img id="asta2" src="img/asta2.png" class="astacard">
183 <img id="asta3" src="img/asta3.png" class="astacard">
184 <img id="asta4" src="img/asta4.png" class="astacard">
185 <img id="asta5" src="img/asta5.png" class="astacard">
186 <img id="asta6" src="img/asta6.png" class="astacard">
187 <img id="asta7" src="img/asta7.png" class="astacard">
188 <img id="asta8" src="img/asta8.png" class="astacard">
189 <img id="asta9" src="img/asta9.png" class="astacard">
190 <div id="astaptdiv" class="punti">
191 <input class="puntifield" id="astapt" name="astapt" type="text" maxsize="3" size="3" value="61">
193 <img id="astaptsub" src="img/astaptsub_ro.png" class="astacard">
194 <img id="astapasso" src="img/astapasso_ro.png" class="astacard">
195 <img id="astalascio" src="img/astalascio_ro.png" class="astacard">
197 <div id="name" class="pubinfo"></div>
198 <div id="public" class="public">
199 <div class="vert_midfloat">
200 <div id="pubasta" class="vert_innfloat_so">
201 <img id="pubacard" src="img/astapasso_ro.png" class="pubacard">
202 <div id="pubapnt"></div>
206 <div id="name_ea" class="pubinfo_ea"></div>
207 <div id="public_ea" class="public_ea">
208 <div class="vert_midfloat">
209 <div id="pubasta_ea" class="vert_innfloat">
210 <img id="pubacard_ea" src="img/astapasso_ro.png" class="pubacard_ea">
211 <div id="pubapnt_ea"></div>
215 <div id="name_ne" class="pubinfo_ne"></div>
216 <div id="public_ne" class="public_ne">
217 <div class="vert_midfloat">
218 <div id="pubasta_ne" class="vert_innfloat">
219 <img id="pubacard_ne" src="img/astapasso_ro.png" class="pubacard_ne">
220 <div id="pubapnt_ne"></div>
224 <div id="name_nw" class="pubinfo_nw"></div>
225 <div id="public_nw" class="public_nw">
226 <div class="vert_midfloat">
227 <div id="pubasta_nw" class="vert_innfloat">
228 <img id="pubacard_nw" src="img/astapasso_ro.png" class="pubacard_nw">
229 <div id="pubapnt_nw"></div>
233 <div id="name_we" class="pubinfo_we"></div>
234 <div id="public_we" class="public_we">
235 <div class="vert_midfloat">
236 <div id="pubasta_we" class="vert_innfloat">
237 <img id="pubacard_we" src="img/astapasso_ro.png" class="pubacard_we">
238 <div id="pubapnt_we"></div>
242 <div id="chooseed" class="chooseed">
243 <?php echo $mlang_bin5_index['aucwin'][$G_lang]; ?>
244 <img id="seed0" src="img/00.png" class="seed0">
245 <img id="seed1" src="img/10.png" class="seed1">
246 <img id="seed2" src="img/20.png" class="seed2">
247 <img id="seed3" src="img/30.png" class="seed3">
249 <div id="caller" class="caller">
250 <div id="callerinfo" class="callerinfo">Info</div>
251 <img id="callerimg" src="img/noimg.png" class="callerimg">
253 <div class="table_commands">
256 <td style="text-align: center;"><input type="button" class="button" name="xinfo" value="<?php echo $mlang_bin5_index['tit_info'][$G_lang]; ?>" onclick="act_tableinfo();"></td>
257 <td style="text-align: center;"><input type="button" class="button" name="xreload" value="<?php echo $mlang_bin5_index['tit_relo'][$G_lang]; ?>" onclick="act_reload();"></td>
258 <td style="text-align: center;"><input type="button" class="button" name="xout" value="<?php echo $mlang_bin5_index['tit_out'][$G_lang]; ?>" onclick="safelogout();"></td>
260 <td style="text-align: center;"><img id="stm_stat" class="nobo" src="img/line-status_b.png"></td>
261 <td style="text-align: center;"><input type="button" class="button" name="xpref" value="<?php echo $mlang_bin5_index['tit_pref'][$G_lang]; ?>" onclick="preferences_showhide();"></td>
263 <td style="text-align: center;"><img id="exitlock" class="button" style="visibility: hidden; border: 0px; display: inline; position: relative;" onclick="act_exitlock();"></td>
268 <div class="table_commands">
269 <input type="button" class="button" name="xinfo" value="Info." onclick="act_tableinfo();">
270 <input type="button" class="button" name="xreload" value="Reload." onclick="act_reload();">
271 <div style="vertical-align: top;">
272 <img id="exitlock" class="button" style="visibility: hidden; border: 0px; display: inline; position: relative;" onclick="act_exitlock();"><input type="button" class="button" name="xout" value="Out." onclick="safelogout();">
280 <div class="subarea">
281 <div id="txt" class="chattshort"></div>
282 <table class="chattshort_table"><tr><td style="width:1%; text-align: right;">
283 <div id="myname"></div>
285 <input id="txt_in" maxlength="128" type="text" style="width: 100%;" onkeypress="chatt_checksend(this,event);">
288 <div id="flasou" style="text-align: left;"></div>
290 <div id="heartbit" style="text-align: left;"></div>
292 <div id="imgct" style="text-align: left;">HERE</div>
294 <div id="sandbox" style="text-align: left;"></div>
295 <div id="sandbox2" style="text-align: left;"></div>
296 <div id="sandbox3" style="text-align: left;"></div>
298 <div id="xhrlog" style="text-align: left;"></div>
300 <div id="xhrdeltalog" style="text-align: left;"></div>
303 <div id="preferences" class="notify" style="z-index: 200; width: 400px; margin-left: -200px; height: 200px; top: 126px; visibility: hidden;">
304 <div id="preferences_child" style="border-bottom: 1px solid gray; overflow: auto; height: 170px;">
306 <h2><?php echo $mlang_bin5_index['tit_pref'][$G_lang]; ?></h2>
307 <div style="width: 95%; /* background-color: red; */ margin: auto; text-align: left;">
309 <input type="checkbox" name="pref_ring_endauct" id="pref_ring_endauct" onclick="pref_ring_endauct_set(this);"><?php echo $mlang_bin5_index['itm_ringauc'][$G_lang] ?>
314 <div class="notify_clo"><input type="submit" class="input_sub" style="bottom: 4px;" onclick="act_preferences_update();" value="<?php echo $mlang_bin5_index['btn_update'][$G_lang]; ?>"/></div>