X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=19e8cb0752216821c7e376ebd60ebd0fbb8e5e2c;hb=34ccc0593731592021bee6ab1661f8eb5ab5b1a4;hp=1aac98472dfd0f03d53288c12a45cd350db05b8c;hpb=39b7e78ebf3db1fcb3965675be9332435778e57f;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 1aac984..19e8cb0 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -348,6 +348,15 @@ function webservers_check() return ($ct); } +$escpush_from = array("\\", "\""); +$escpush_to = array("\\\\", "\\\""); +function escpush($s) +{ + GLOBAL $escpush_from, $escpush_to; + + return str_replace($escpush_from, $escpush_to, $s); +} + $escinp_from = array( "\"" ); $escinp_to = array( """ ); @@ -1416,7 +1425,7 @@ class Room { $ret = "gst.st = ".($user_cur->step+1)."; ".($remove_wagon ? sprintf("tra.rem(%d);",$table_idx) : ""); if ($from_table && ($user_cur->table == $table_idx || $user->idx_get() == $i)) { - $ret .= 'gst.st_loc++; the_end=true; window.onunload = null; window.onbeforeunload = null; document.location.assign("index.php");|'; + $ret .= 'gst.st_loc++; hstm.stop(); window.onunload = null; window.onbeforeunload = null; document.location.assign("index.php");|'; // $ret .= 'gst.st_loc++; document.location.assign("index.php");|'; log_main("DOCUMENT.index.php: from table"); }