From c1a075dcf5f14f3bf5ee2ac8478e84787770a006 Mon Sep 17 00:00:00 2001 From: Matteo Nastasi Date: Sun, 19 Apr 2020 11:22:37 +0200 Subject: [PATCH] client pass page_id to transport channel --- web/index.php | 3 ++- web/xynt-streaming.js | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/web/index.php b/web/index.php index 469a568..10ff96c 100644 --- a/web/index.php +++ b/web/index.php @@ -1279,7 +1279,8 @@ cookie_law(null); sidebanners_init($G_sidebanner_idx); ?> sess = ""; - xstm = new xynt_streaming(window, , 2, null /* console */, gst, 'index_php', 'sess', sess, $('sandbox'), 'index_rd.php', function(com){eval(com);}); + xstm = new xynt_streaming(window, , 2, null /* console */, gst, + 'index_php', 'sess', sess, $('sandbox'), 'index_rd.php', page_id, function(com){eval(com);}); xstm.hbit_set(heartbit); tra = new train($('room_tit')); window.onunload = onunload_cb; diff --git a/web/xynt-streaming.js b/web/xynt-streaming.js index b9ef124..46bdb42 100644 --- a/web/xynt-streaming.js +++ b/web/xynt-streaming.js @@ -566,7 +566,7 @@ transport_iframe.prototype = { } } -function xynt_streaming(win, transp_type, transp_port, transp_fback, console, gst, from, cookiename, sess, sandbox, page, cmdproc) +function xynt_streaming(win, transp_type, transp_port, transp_fback, console, gst, from, cookiename, sess, sandbox, page, page_id, cmdproc) { this.win = win; this.transp_type = transp_type; @@ -579,6 +579,7 @@ function xynt_streaming(win, transp_type, transp_port, transp_fback, console, gs this.sess = sess; this.sandbox = sandbox; this.page = page; + this.page_id = page_id; this.cmdproc = cmdproc; // this.cmdproc = function(com){/* console.log("COM: "+com); */ eval(com);} this.doc = win.document; @@ -607,6 +608,7 @@ xynt_streaming.prototype = { sess: null, sandbox: null, page: null, + page_id: null, cmdproc: null, start_time: 0, @@ -730,7 +732,7 @@ xynt_streaming.prototype = { } // stat, subst, this.gst.st - page = url_append_args(page, "sess", this.sess, "stat", stat, "subst", subst, "step", this.gst.st, "from", this.from); + page = url_append_args(page, "sess", this.sess, "page_id", this.page_id, "stat", stat, "subst", subst, "step", this.gst.st, "from", this.from); // this.log("the page:"); // this.log(page); -- 2.17.1