X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=c59f016e2cf834c19169deefda9daae75f491a9d;hb=8197fc17752e4504bb2857fcea3f2e032916d9b3;hp=469a568191857aed4c7795f70a70d529e31e801e;hpb=4e432ba515042d4bd5868a72e9a777e613311c8c;p=brisk.git diff --git a/web/index.php b/web/index.php index 469a568..c59f016 100644 --- a/web/index.php +++ b/web/index.php @@ -1255,12 +1255,29 @@ cookie_law(null); var spo_slide, sup_slide; window.onload = function() { - g_brow = get_browser_agent(); - - g_prefs = new client_prefs(null); - - spo_slide = new sideslide($('spon_caro'), 80, 20); - sup_slide = new sideslide($('supp_caro'), 80, 20); + if ('localStorage' in window) { + var v_name = cookiepath.replace(/\//g, '') + '_index_page_id'; + var local_page_id = window.localStorage.getItem(v_name); + if (local_page_id == page_id) { + window.location.reload(); + } + else { + window.localStorage.setItem(v_name, page_id); + } + } + + if ($$('#prevent_reuse').val() == "") { + $$('#prevent_reuse').val("first load"); + } + else { + location.reload(); + } + g_brow = get_browser_agent(); + + g_prefs = new client_prefs(null); + + spo_slide = new sideslide($('spon_caro'), 80, 20); + sup_slide = new sideslide($('supp_caro'), 80, 20); 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; @@ -1624,6 +1642,9 @@ type="submit" class="button" onclick="this.form.elements['realsub'].value = 'chi cookie_law(null); // --> +
+ +