X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=5f2e3c7e430b97265d8e72156a184047ab1ccf7f;hb=8fef2a5be45f26389f4e3ef85ac7517f405d54b2;hp=9802e4f34cc4a2f42d00041bfd5aeff77e2cba15;hpb=a00b90507135651af999d563310a85faf82b4463;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 9802e4f..5f2e3c7 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -28,6 +28,7 @@ define(FTOK_PATH, "/var/lib/brisk"); define(LEGAL_PATH, "/tmp/legal_brisk"); define(PROXY_PATH, "/var/lib/brisk_proxy"); define(TABLES_N, 36); +define(TABLES_AUTH_N, 4); define(PLAYERS_N, 3); define(MAX_POINTS, 5); define(MAX_PLAYERS, (20 + (PLAYERS_N * TABLES_N))); @@ -121,13 +122,13 @@ $G_false = FALSE; $G_lng = langtolng($G_lang); $G_all_points = array( 11,10,4,3,2, 0,0,0,0,0 ); -$G_brisk_version = "2.1.9 - trusty"; +$G_brisk_version = "2.3.0 - trusty"; /* MLANG: ALL THE INFO STRINGS IN brisk.phh */ -$root_wellarr = array( 'it' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NOVITA\': bug della carta coperta risolto, assenso all\'apertura del tavolo non revocabile, multi-lingua quasi ultimato.', +$root_wellarr = array( 'it' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NOVITA\': aggiunte le classifiche (menu Start->classifiche).', 'Se vuoi iscriverti alla Mailing List, cliccala!' ), - 'en' => array ( 'EN Brisk (Ver. '.$G_brisk_version.'), NOVITA\': EN Sponsor alternati, menù rivisto, AUTO-GARANZIE, sondaggi quasi ultimati.', - 'EN Se vuoi iscriverti alla Mailing List, cliccala!' ) ); + 'en' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NEWS: placings added (menu Start->placings)', + 'If you want to subscribe our Mailing List, click it!' ) ); $G_room_help = array( 'it' => '
@@ -281,13 +282,14 @@ function csplitter($in, $sep) $st = 0; $id = 0; $out = array(); - + $out[$id] = ""; for ($i = 0 ; $i < strlen($in) ; $i++) { if ($st == 0) { if ($in{$i} == '\\') $st = 1; else if ($in{$i} == $sep) { $id++; + $out[$id] = ""; } else { $out[$id] .= $in{$i}; @@ -874,7 +876,7 @@ class Room { $this->table[$i]->auth_only = FALSE; } */ - if ($i < 12) + if ($i < TABLES_AUTH_N) $this->table[$i]->auth_only = TRUE; else $this->table[$i]->auth_only = FALSE; @@ -2410,6 +2412,19 @@ function log_legal($curtime, &$user, $where, $mesg) } } +function log_points($curtime, &$user, $where, $mesg) +{ + GLOBAL $_SERVER; + + if (($fp = @fopen(LEGAL_PATH."/points.log", 'a')) != FALSE) { + /* Unix time | session | nickname | IP | where was | mesg */ + fwrite($fp, sprintf("%ld|%s|%s|%s|%s|%s|%s|\n", $curtime, $user->sess, + ($user->flags & USER_FLAG_AUTH ? 'A' : 'N'), + $user->name, $_SERVER['REMOTE_ADDR'], $where , $mesg)); + fclose($fp); + } +} + @@ -2465,6 +2480,12 @@ function show_notify($text, $tout, $butt, $w, $h) return sprintf('var noti = new notify(gst,"%s",%d,"%s",%d,%d);', $text, $tout, $butt, $w, $h); } +function show_notify_opaque($text, $tout, $butt, $w, $h) +{ + log_main("SHOW_NOTIFY OPAQUE: ".$text); + return sprintf('var noti = new notify_ex(gst,"%s",%d,"%s",%d,%d, true);', $text, $tout, $butt, $w, $h); +} + function root_wellcome($user) {