X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=inline;f=web%2FObj%2Fbrisk.phh;h=02b91d6360f2932c55e194b1926f2bd2f94ce453;hb=30aa38786951145d916b6a4e1db0b01946e02c6b;hp=cad94201568df618e40094503437caafb4b92f0b;hpb=02a0a89ec4abd3fa30cf6b6a452f83f0a3c21cfc;p=brisk.git
diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh
index cad9420..02b91d6 100644
--- a/web/Obj/brisk.phh
+++ b/web/Obj/brisk.phh
@@ -278,6 +278,22 @@ Copyright 2006-2009 Matteo Nasta
Copyright 2006-2009 Matteo Nastasi (aka mop)
');
+$escinp_from = array( "\"" );
+$escinp_to = array( """ );
+
+function escinput($s)
+{
+ GLOBAL $escinp_from, $escinp_to;
+
+ return str_replace($escinp_from, $escinp_to, $s);
+}
+
+function eschtml($s)
+{
+ return htmlentities($s);
+}
+
+
function langtolng($lang)
{
GLOBAL $G_lang;
@@ -2031,10 +2047,10 @@ class Room {
}
} // if ($ghost > -1) {
- log_main(sprintf("TROVATO LIBERO A [%d] sess [%s] name [%s]", $idx, $sess, $name_new));
$real_idx = $idx;
if ($login_exists)
$idx = -($idx + 1);
+ log_main(sprintf("TROVATO LIBERO A [%d] sess [%s] name [%s] count [%d] [%s]", $idx, $sess, $name_new, count($this->user),$this->user[$real_idx]->name));
return ($this->user[$real_idx]);
}