define(FTOK_PATH, "/var/lib/brisk");
define(LEGAL_PATH, "/tmp/legal_brisk");
define(PROXY_PATH, "/var/lib/brisk_proxy");
-define(TABLES_N, 32);
+define(TABLES_N, 36);
define(PLAYERS_N, 3);
define(MAX_POINTS, 5);
define(MAX_PLAYERS, (20 + (PLAYERS_N * TABLES_N)));
// $G_lng = "_en";
$G_all_points = array( 11,10,4,3,2, 0,0,0,0,0 );
-$G_brisk_version = "2.1.6 - trusty";
+$G_brisk_version = "2.1.7 - trusty";
/* MLANG: ALL THE INFO STRINGS IN brisk.phh */
-$root_wellarr = Array ( 'Brisk (Ver. '.$G_brisk_version.'), <b>NOVITA\'</b>: menu comandi e filtro sui non autenticati.',
+$root_wellarr = Array ( 'Brisk (Ver. '.$G_brisk_version.'), <b>NOVITA\'</b>: menu comandi, filtro opzionale sui non autenticati e "return bug" corretto.',
'Se vuoi iscriverti alla <a target="_blank" href="http://www.milug.org/cgi-bin/mailman/listinfo/ml-briscola">Mailing List</a>, cliccala!' );
$G_room_help= '
return (str_replace($from, $to, $s));
}
+function xcapemesg($s)
+{
+ $from = array ( "\n");
+ $to = array ( "\\n");
+
+ return (str_replace($from, $to, $s));
+}
+
class Table {
var $idx;
$this->table[$i]->auth_only = FALSE;
}
*/
- if ($i < 16)
+ if ($i < 12)
$this->table[$i]->auth_only = TRUE;
else
$this->table[$i]->auth_only = FALSE;
*/
body {
- background-image: url('img/wip_bg.jpg');
+ background-image: url('img/brisk2bg.jpg');
background-color: #fafafa;
background-repeat: no-repeat;
background-position: top center;
// console.log("A: "+a+" B: "+b);
}
+function sidebanner_init()
+{
+ setInterval(sidebanner_cb, 666);
+;
+}
+
+function sidebanner_cb()
+{
+ var a, b;
+
+ a = $('sidebanner').style.backgroundColor;
+ b = $('sidebanner').style.borderLeftColor;
+
+ $('sidebanner').style.backgroundColor = b;
+ $('sidebanner').style.borderColor = a+" "+a+" "+a+" "+a;
+
+ // console.log("A: "+a+" B: "+b);
+}
+
function langtolng(lang)
{
function main()
{
GLOBAL $G_with_topbanner, $G_topbanner, $G_is_local;
+ GLOBAL $G_with_sidebanner, $G_sidebanner;
GLOBAL $sess, $name, $pass_private, $table_idx, $table_token, $BRISK_SHOWHTML, $BRISK_DEBUG, $_SERVER;
GLOBAL $G_lang, $G_lng, $mlang_room;
$is_login = FALSE;
if ($G_with_topbanner) {
printf(" topbanner_init();\n");
}
+ if ($G_with_sidebanner) {
+ printf(" sidebanner_init();\n");
+ }
?>
g_withflash = DetectFlashVer(6,0,0);
printf($brisk_header_form);
printf("<table class=\"floaty\"><tr><td class=\"floatyleft\">\n");
printf($brisk_vertical_menu, '', '');
+ if ($G_with_sidebanner) {
+ printf("<br><br>%s", $G_sidebanner);
+ }
printf("</td><td>");
?>
if ($G_with_topbanner) {
printf(" topbanner_init();\n");
}
+ if ($G_with_sidebanner) {
+ printf(" sidebanner_init();\n");
+ }
+
?>
xhr_rd = createXMLHttpRequest();
// xhr_rd.setRequestHeader("Content-type", "text/html; charset=utf-8");
<?php
printf($brisk_header_form);
printf("<table class=\"floaty\"><tr><td class=\"floatyleft\">\n");
- printf($brisk_vertical_menu, '<input type="button" class="button" name="xhelp" value="Help." onclick="act_help();"><br><!-- <br><input type="button" class="button" name="xabout" value="About." onclick="act_about();">--><br><br><br>',
+ /* printf($brisk_vertical_menu, '<input type="button" class="button" name="xhelp" value="Help." onclick="act_help();"><br><!-- <br><input type="button" class="button" name="xabout" value="About." onclick="act_about();">--><br><br><br>',
+ $brisk_donate);*/
+ printf($brisk_vertical_menu, '<input type="button" class="button" name="xhelp" value="Help." onclick="act_help();"><br><!-- <br><input type="button" class="button" name="xabout" value="About." onclick="act_about();">--><br>',
$brisk_donate);
+
+ if ($G_with_sidebanner) {
+ printf("<br><br>%s", $G_sidebanner);
+ }
printf("</td><td>");
?>
<!-- =========== tables =========== -->
$is_spawn = FALSE;
-log_wr('COMM: '.$mesg);
+log_wr('COMM: '.xcapemesg($mesg));
$sem = Room::lock_data();
if (($room = &Room::load_data()) == FALSE) {
}
if (($user = &$room->get_user($sess, &$idx)) == FALSE) {
Room::unlock_data($sem);
- $argz = explode('|', $mesg);
+ $argz = explode('|', xcapemesg($mesg));
if ($argz[0] == 'getchallenge') {
GLOBAL $cli_name;
}
exit;
}
-$argz = explode('|', $mesg);
+$argz = explode('|', xcapemesg($mesg));
log_wr('POSTSPLIT: '.$argz[0]);
}
else if ($argz[0] == 'chatt') {
- $room->chatt_send(&$user,$mesg);
+ $room->chatt_send(&$user, xcapemesg($mesg));
}
/**********************
* *