Hello to all
<?php $mars = time (); if ($kaka == 0) { $html = <<<HERE <div id="class"> <div id="dialod"> <center> <div id="ok_shareWidget"></div> <script> !function (d, id, did, st) { var js = d.createElement("script"); js.src = "<? echo $klass22; ?>"; js.onload = js.onreadystatechange = function () { if (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") { if (!this.executed) { this.executed = true; setTimeout(function () { OK.CONNECT.insertShareWidget(id,did,st); }, 0); } }}; d.documentElement.appendChild(js); }(document,"ok_shareWidget","http://site.ru/t3/s2.php?id=<? echo $create_id;?>","{width:125,height:50,st:'straight',sz:45,ck:1,nc:1}"); function listenForShare() { if (window.addEventListener) { window.addEventListener('message', onShare, false); } else { window.attachEvent('onmessage', onShare); } } function onShare(e) { var args = e.data.split("$"); if (args[0] == "ok_shared") { window.location="pe.php"; // ΠΡΠ²ΠΎΠ΄ ΠΈΠ΄Π΅Π½ΡΠΈΡΠΈΠΊΠ°ΡΠΎΡΠ° ΡΡΠ΅ΠΉΠΌΠ° ΠΊΠ½ΠΎΠΏΠΊΠΈ - Π² ΡΠ»ΡΡΠ°Π΅ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΈΡ
ΠΊΠ½ΠΎΠΏΠΎΠΊ Π½Π° ΠΎΠ΄Π½ΠΎΠΉ ΡΡΡΠ°Π½ΠΈΡΠ΅, ΠΏΠΎ Π½Π΅ΠΌΡ ΠΌΠΎΠΆΠ½ΠΎ ΠΎΠΏΡΠ΅Π΄Π΅Π»ΠΈΡΡ ΠΊΠ°ΠΊΠ°Ρ ΠΈΠΌΠ΅Π½Π½ΠΎ Π±ΡΠ»Π° ΠΊΠ»ΠΈΠΊΠ½ΡΡΠ° if (alert) $( '#baner_grup' ).show(); $( '.classs' ).html('<meta http-equiv="refresh" content="0; url=http://site.ru/t/pre.php" />'); $( '#class' ).hide(); $( '.player' ).hide(); } } listenForShare(); </script> </div> </div> </div> </div> <div> HERE; } else { $x = 0; } what is the problem ?