X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=4b12709db3f0220b4110d227521eae79c538395a;hb=6927e112139aee1efffac36cd9b91f4407dc335b;hp=20e6e3a82f62f04003193892b4f735adeb15a125;hpb=abbf134a4f6bcf2ce006011f263148b0ea073bf5;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 20e6e3a..4b12709 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -2,7 +2,7 @@ /* * brisk - brisk.phh * - * Copyright (C) 2006-2012 Matteo Nastasi + * Copyright (C) 2006-2013 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -141,12 +141,12 @@ $mlang_brisk = array( 'btn_backstand'=> array( 'it' => 'torna in piedi', $G_lng = langtolng($G_lang); $G_all_points = array( 11,10,4,3,2, 0,0,0,0,0 ); -$G_brisk_version = "4.10.1"; +$G_brisk_version = "4.11.0"; /* MLANG: ALL THE INFO STRINGS IN brisk.phh */ -$root_wellarr = array( 'it' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NOVITA\': aggiunto il comando /cont per proseguire le partite.', +$root_wellarr = array( 'it' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NOVITA\': aggiunta la gestione automatica dei termini del servizio, che sono stati aggiornati.', 'Se vuoi iscriverti alla Mailing List, cliccala!' ), - 'en' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NEWS: added /cont command to continue matches.', + 'en' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NEWS: automatic management of terms of services added, they are updated too.', 'If you want to subscribe our Mailing List, click it!' ) ); $G_room_help = array( 'it' => ' @@ -395,10 +395,9 @@ function eschtml($s) function esclfhtml($s) { - return str_replace("\n", "
\n", htmlentities($s)); + return str_replace(" ", " ", str_replace("\n", "
", htmlspecialchars($s))); } - function langtolng($lang) { GLOBAL $G_lang; @@ -814,7 +813,7 @@ class Client_prefs { $user->rec->supp_comp_set($this->supp_comp); } if ($is_save) - $user->store_set(); + $user->prefs_store(); } } @@ -2881,7 +2880,7 @@ function show_notify_ex($text, $tout, $butt, $w, $h, $is_opaque, $block_time) return sprintf('var noti = new notify_ex(gst,"%s",%d,"%s",%d,%d, %s, %d);', $text, $tout, $butt, $w, $h, ($is_opaque ? "true" : "false"), $block_time); } -function show_notify_document($text, $tout, $butt_arr, $w, $h, $is_opaque, $block_time) +function show_notify_document($text, $tout, $butt_arr, $confirm_func, $confirm_func_args, $w, $h, $is_opaque, $block_time) { log_main("SHOW_NOTIFY OPAQUE: ".$text); @@ -2890,8 +2889,8 @@ function show_notify_document($text, $tout, $butt_arr, $w, $h, $is_opaque, $bloc $butts .= sprintf("%s'%s'", ($i == 0 ? "" : ","), $butt_arr[$i]); } - return sprintf('g_nd = new notify_document(gst, "%s", %d, [ %s ], %d, %d, %s, %d);|', - escpush($text), $tout, $butts, $w, $h, ($is_opaque ? "true" : "false"), $block_time); + return sprintf('g_nd = new notify_document(gst, "%s", %d, [ %s ], %s, %s, %d, %d, %s, %d);|', + escpush($text), $tout, $butts, ($confirm_func == NULL ? "null" : $confirm_func), (($confirm_func == NULL|| $confirm_func_args == NULL) ? "[]" : $confirm_func_args), $w, $h, ($is_opaque ? "true" : "false"), $block_time); }