client pass page_id to transport channel
[brisk.git] / web / index.php
index e281aa7..10ff96c 100644 (file)
@@ -1231,7 +1231,7 @@ cookie_law(null);
    var $$ = jQuery.noConflict();
 
    var sess = "not_connected";
-   var page_id = "<$ echo $user->page_id; ?>";
+   var page_id = "<? echo $user->page_id; ?>";
    var g_debug = 0;
    var g_lang = "<? echo $G_lang; ?>";
    var g_lng = "<? echo $G_lng; ?>";
@@ -1279,7 +1279,8 @@ cookie_law(null);
         sidebanners_init($G_sidebanner_idx);
 ?>
      sess = "<?php echo "$sess"; ?>";
-     xstm = new xynt_streaming(window, <?php printf("\"%s\", %d", $transp_type, $transp_port); ?>, 2, null /* console */, gst, 'index_php', 'sess', sess, $('sandbox'), 'index_rd.php', function(com){eval(com);});
+    xstm = new xynt_streaming(window, <?php printf("\"%s\", %d", $transp_type, $transp_port); ?>, 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;