X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=853430e5e0f6176eb00c5474823d3ec5348efd5d;hb=c282f022712c52d8df7d6e4053e10d0259bb9b6f;hp=ea4350c307675f8033d41a41131409a7e46e4ce3;hpb=9cabbe94c242e1a7fa55cc2842525678b425828b;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index ea4350c..853430e 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -2,7 +2,7 @@ /* * brisk - brisk.phh * - * Copyright (C) 2006-2008 Matteo Nastasi + * Copyright (C) 2006-2009 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -27,7 +27,7 @@ define(BRISK_CONF, "brisk.conf.pho"); define(FTOK_PATH, "/var/lib/brisk"); define(LEGAL_PATH, "/tmp/legal_brisk"); define(PROXY_PATH, "/var/lib/brisk_proxy"); -define(TABLES_N, 12); +define(TABLES_N, 36); define(PLAYERS_N, 3); define(MAX_POINTS, 5); define(MAX_PLAYERS, (20 + (PLAYERS_N * TABLES_N))); @@ -48,7 +48,7 @@ define(EXPIRE_TIME_SMAMMA, 360); define(EXPIRE_TIME_WAG, 10); define(WAKEUP_TIME, 12); // BAN_TIME da allineare anche in commons.js -define(BAN_TIME, 900); +define(BAN_TIME, 3600); define(GARBAGE_TIMEOUT, 10); define(NICKSERV, "BriskServ"); @@ -64,7 +64,8 @@ define(DBG_LOAD, 0x0100); define(DBG_AUTH, 0x0200); define(DBG_CRIT, 0x0400); -define(BRISK_DEBUG, 0); +// NOTE: BRISK DEBUG must be a numerical constant, not the result of operations on symbols +define(BRISK_DEBUG, 0xffffffbf); define(BRISK_SINGLE_DEBUG,0); define(BRISK_SINGLE_SESS, ""); @@ -73,14 +74,17 @@ define(BRISK_SINGLE_SESS, ""); require_once("$DOCUMENT_ROOT/Etc/".BRISK_CONF); $G_false = FALSE; +$G_lang = "it"; +$G_lng = ""; +// $G_lang = "en"; +// $G_lng = "_en"; $G_all_points = array( 11,10,4,3,2, 0,0,0,0,0 ); -$G_brisk_version = "2.1.1 - trusty"; +$G_brisk_version = "2.1.9 - trusty"; -$root_wellarr = Array ( 'Brisk (Ver. '.$G_brisk_version.'), NOVITA\': Autenticazione e tavoli riservati.', +/* MLANG: ALL THE INFO STRINGS IN brisk.phh */ +$root_wellarr = Array ( 'Brisk (Ver. '.$G_brisk_version.'), NOVITA\': sondaggi, direct messages quando segnalate.', 'Se vuoi iscriverti alla Mailing List, cliccala!' ); -$table_wellarr = 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.'); - $G_room_help= '
'); - - // Names. - for ($i = 0 ; $i < PLAYERS_N ; $i++) - $noty .= sprintf(' | %s | ', xcape($room->user[$table->player[$i]]->name)); - $noty .= sprintf("
---|---|
%d | ', $i+1); - for ($e = 0 ; $e < PLAYERS_N ; $e++) - $noty .= sprintf('%d | ', $table->points[$i % MAX_POINTS][$e]); - $noty .= "
Tot. | '; - for ($e = 0 ; $e < PLAYERS_N ; $e++) - $noty .= sprintf('%d | ', $table->total[$e]); - $noty .= "