Файл: l2ps_v5/iframe.php
Строк: 43
<?php
<div id="vk_api_transport"></div>
<script type="text/javascript">
window.vkAsyncInit = function() {
VK.init({
apiId: 3609145
});
};
setTimeout(function() {
var el = document.createElement("script");
el.type = "text/javascript";
el.src = "http://vk.com/js/api/openapi.js";
el.async = true;
document.getElementById("vk_api_transport").appendChild(el);
}, 0);
</script>
<script src="http://vk.com/js/api/openapi.js" type="text/javascript"></script>
<div id="login_button" onclick="VK.Auth.login(authInfo);"></div>
<script language="javascript">
VK.init({
apiId: 3609145
});
function authInfo(response) {
if (response.session) {
alert('user: '+response.session.mid);
} else {
alert('not auth');
}
}
VK.Auth.getLoginStatus(authInfo);
VK.UI.button('login_button');
</script>
<html>
<head>
<title>.:::l2pirates.ru:::.</title>
<meta http-equiv="refresh" content="600; url=iframe.php" />
</head>
<body>
<iframe src="http://l2pirates.ru/" height="100%" width="100%" name="torba"></iframe>
</body>
</html>
?>