<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
Пожалуйста Войдите или Зарегистрируйтесь чтобы увидеть скрытый текст
">
<head>
<meta http-equiv="expires" content="thu, jan 1 1970 00:00:00 gmt">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="UnityObject.js"></script>
<script type="text/javascript" src="xd_connection.js?2"></script>
<script type="text/javascript">
VK.init({apiId: 3020723, onlyWidgets: true});
</script>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="UnityObject2.js"></script>
<script type="text/javascript" src="jquery.jsonp-2.4.0.min.js"></script>
<script type="text/javascript">
<!--
var dataurl = "denzombicdn.r.worldssl.net";
var rev = 10;
var build = 67;
var gsrv = "83.222.106.14@443";
var viewer_id = -1;
var ip = "77.222.102.40";
var token = "90dd2d38da04c04cd3be47796b9acc8c15e33862863af5ceca2a6c6b9b63b01ec88000a52f33f4431d6a6";
var _unityObj;
function GetUnity()
{
if (typeof unityObject != "undefined")
{
return _unityObj.getUnity();
}
return null;
}
function LeftLink(request)
{
if (request == "true")
{
VK.api('getUserSettings', function(data)
{
if (data.response)
{
var hasLeftLink = parseInt(data.response) & 256;
console.warn("LeftLink response" + parseInt(data.response) + " - " + hasLeftLink );
if (!hasLeftLink)
{
var unity = GetUnity();
unity.SendMessage("Ncore", "LeftLink","true");
unity.SendMessage("Ncore", "LeftLink","true");
unity.SendMessage("Ncore", "LeftLink","true");
unity.SendMessage("Ncore", "LeftLink","true");
}
else
{
var unity = GetUnity();
unity.SendMessage("Ncore", "LeftLink","false");
unity.SendMessage("Ncore", "LeftLink","false");
unity.SendMessage("Ncore", "LeftLink","false");
unity.SendMessage("Ncore", "LeftLink","false");
}
};
});
}
else
{
VK.callMethod('showSettingsBox', 256);
}
}
function IsGroupMember()
{
VK.api('groups.isMember', {gid:57644705},function(data)
{
if (data.response)
{
console.warn("IsGroupMember");
var unity = GetUnity();
unity.SendMessage("Ncore", "IsGroupMember","true");
unity.SendMessage("Ncore", "IsGroupMember","true");
unity.SendMessage("Ncore", "IsGroupMember","true");
unity.SendMessage("Ncore", "IsGroupMember","true");
unity.SendMessage("Ncore", "IsGroupMember","true");
}
else
{
console.warn("IsNotGroupMember");
var unity = GetUnity();
unity.SendMessage("Ncore", "IsGroupMember","false");
unity.SendMessage("Ncore", "IsGroupMember","false");
unity.SendMessage("Ncore", "IsGroupMember","false");
unity.SendMessage("Ncore", "IsGroupMember","false");
unity.SendMessage("Ncore", "IsGroupMember","false");
}
});
}
function Invite()
{
VK.callMethod("showInviteBox");
}
function Trade(items)
{
var params = {
type: 'item',
item: items
};
VK.callMethod('showOrderBox', params);
console.warn(items);
}
function ZombieM(count)
{
WallPost(viewer_id,"? ??????, ????(?) "+count+" ?????!", "photo-57644705_313060707,
Пожалуйста Войдите или Зарегистрируйтесь чтобы увидеть скрытый текст
");
}
function PlayersM(count)
{
WallPost(viewer_id,"? ????, ????(?) "+count+" ??????!", "photo-57644705_313060707,
Пожалуйста Войдите или Зарегистрируйтесь чтобы увидеть скрытый текст
");
}
function AliveM(count)
{
WallPost(viewer_id,""+count+"", "photo-57644705_313060707,
Пожалуйста Войдите или Зарегистрируйтесь чтобы увидеть скрытый текст
");
}
function WallPost(userid,message,content)
{
var post =
{
owner_id: userid,
message: message,
attachments : content
};
VK.api("wall.post",post,onWallPost);
console.warn("wall.post to " + userid);
}
function onWallPost(responce)
{
}
function GetPlayerID()
{
console.warn("getplayerid");
console.warn(viewer_id);
console.warn(""+gsrv + "@" + dtsrv + "@" + tsrv);
var unity = GetUnity();
unity.SendMessage("Ncore", "SetSRV",""+gsrv + "@" + dtsrv + "@" + tsrv);
unity.SendMessage("Ncore", "SetSRV",""+gsrv + "@" + dtsrv + "@" + tsrv);
unity.SendMessage("Ncore", "SetSRV",""+gsrv + "@" + dtsrv + "@" + tsrv);
unity.SendMessage("Ncore", "SetSRV",""+gsrv + "@" + dtsrv + "@" + tsrv);
unity.SendMessage("Ncore", "SetSRV",""+gsrv + "@" + dtsrv + "@" + tsrv);
unity.SendMessage("Ncore", "SetSRV",""+gsrv + "@" + dtsrv + "@" + tsrv);
unity.SendMessage("Ncore", "SetSRV",""+gsrv + "@" + dtsrv + "@" + tsrv);
unity.SendMessage("Ncore", "SetPlayerIDVkontakte",""+viewer_id);
unity.SendMessage("Ncore", "SetPlayerIDVkontakte",""+viewer_id);
unity.SendMessage("Ncore", "SetPlayerIDVkontakte",""+viewer_id);
unity.SendMessage("Ncore", "SetPlayerIDVkontakte",""+viewer_id);
unity.SendMessage("Ncore", "SetPlayerIDVkontakte",""+viewer_id);
unity.SendMessage("Ncore", "SetPlayerIDVkontakte",""+viewer_id);
unity.SendMessage("Ncore", "SetPlayerIDVkontakte",""+viewer_id);
unity.SendMessage("Ncore", "SetPlayerToken","&ip="+ip+"&token="+token);
unity.SendMessage("Ncore", "SetPlayerToken","&ip="+ip+"&token="+token);
unity.SendMessage("Ncore", "SetPlayerToken","&ip="+ip+"&token="+token);
GetFriends();
LeftLink('true');
IsGroupMember();
}
function GetInfo(uidslist)
{
VK.api("getProfiles", {uids:uidslist,fields:"photo_rec, first_name, last_name", https :1},function(data)
{
if(data.response)
{
var unity = GetUnity();
for (i= 0; i<data.response.length; i++)
{
unity.SendMessage("Ncore", "GotInfo",""+data.response[i].uid+"|"+data.response[i].photo_rec+"|"+data.response[i].first_name + " " + data.response[i].last_name);
}
}
});
}
function RequestAvatar(uidslist)
{
console.warn("requestAvatar");
VK.api("getProfiles", {uids:uidslist,fields:"photo_rec, first_name, last_name", https :1},function(data)
{
if(data.response)
{
var unity = GetUnity();
for (i= 0; i<data.response.length; i++)
{
unity.SendMessage("Ncore", "GotAvatar",""+data.response[i].uid+"|"+data.response[i].photo_rec+"|"+data.response[i].first_name + " " + data.response[i].last_name);
}
}
});
}
function RequestMyAvatar()
{
console.warn("requestAvatar");
VK.api("getProfiles", {uids:viewer_id,fields:"photo_rec", https :1},OnGetAvatar);
}
function OnGetAvatar(data)
{
if(data.response)
{
console.warn("OnGetAvatar done");
var unity = GetUnity();
for (i= 0; i<data.response.length; i++)
{
unity.SendMessage("Ncore", "GotAvatar",""+data.response[i].uid+"|"+data.response[i].photo_rec+"|"+data.response[i].photo_rec + " " + data.response[i].last_name);
console.warn(""+data.response[i].uid+"|"+data.response[i].photo_rec);
}
}
else
{
console.warn("OnGetAvatar error");
}
}
var users;
function GetFriends()
{
console.warn('GetFriends');
VK.api("friends.getAppUsers", function(appusers)
{
users = appusers.response;
console.warn("appusers:" + users.length);
VK.api("friends.get", {fields:"photo_rec, first_name, last_name", https :1}, function(friendsRaw) {
var friends = friendsRaw.response;
var in_users = "";
var out_users = "";
for (i= 0; i< friends.length; i++)
{
var present = false;
for(u= 0; u< users.length; u++)
{
if(users[u] == friends[i].uid)
{
present = true;
break;
}
}
if(!present)
{
out_users += friends[i].uid+ "^" + friends[i].first_name.replace('^',' ')+ " " + friends[i].last_name.replace('^',' ') + "^" + friends[i].photo_rec + "|";
}
else
{
in_users += friends[i].uid+ "^" + friends[i].first_name.replace('^',' ')+ " " + friends[i].last_name.replace('^',' ') + "^" + friends[i].photo_rec + "|";
}
}
var unity = GetUnity();
unity.SendMessage("Ncore", "InAppFriends",in_users);
unity.SendMessage("Ncore", "InAppFriends",in_users);
unity.SendMessage("Ncore", "InAppFriends",in_users);
unity.SendMessage("Ncore", "OutAppFriends",out_users);
unity.SendMessage("Ncore", "OutAppFriends",out_users);
unity.SendMessage("Ncore", "OutAppFriends",out_users);
console.warn(in_users);
});
});
}
function WallInvite(friend)
{
WallPost(friend,"??????! ????? ?????? ???????!", "photo-57644705_313060707,
Пожалуйста Войдите или Зарегистрируйтесь чтобы увидеть скрытый текст
");
}
function OnOrderSuccess(order_id)
{
var unity = GetUnity();
unity.SendMessage("Ncore", "PaymentDone","" + order_id);
unity.SendMessage("Ncore", "PaymentDone","" + order_id);
unity.SendMessage("Ncore", "PaymentDone","" + order_id);
unity.SendMessage("Ncore", "PaymentDone","" + order_id);
unity.SendMessage("Ncore", "PaymentDone","" + order_id);
unity.SendMessage("Ncore", "PaymentDone","" + order_id);
console.warn("PaymentDone " + order_id);
}
function getRandomInt(min, max)
{
return Math.floor(Math.random() * (max - min + 1)) + min;
}
if (typeof unityObject != "undefined") {
var config =
{
widht : 820,
height: 760,
params : {
enableDebugging:"0" ,
disableContextMenu: true,
logoimage: "load_back.png?id=8",
progressbarimage: "load_progress_front.png?id=7",
progressframeimage: "load_progress_back.png?id=7"
}
};
_unityObj = new UnityObject2( config );
_unityObj.observeProgress(function (progress) {
var $missingScreen = jQuery(progress.targetEl).find(".missing");
switch(progress.pluginStatus) {
case "unsupported":
showUnsupported();
break;
case "broken":
alert("You will need to restart your browser after installation.");
break;
case "missing":
$missingScreen.find("a").click(function (e) {
e.stopPropagation();
e.preventDefault();
_unityObj.installPlugin();
return false;
});
$missingScreen.show();
break;
case "installed":
$missingScreen.remove();
break;
case "first":
break;
}
});
if(token != "")
{
startinitURl();
}
}
function startinitURl(){
$.jsonp({
type: 'GET',
url: url,
callbackParameter: 'callback',
dataType: 'jsonp',
timeout: 10000,
success:function(){
dataurl = "denzombicdn.r.worldssl.net";
jQuery(function(){ _unityObj.initPlugin(jQuery("#unityPlayer")[0], link)});
},
error: function(){
dataurl = "uk.denzombi.com";
jQuery(function(){ _unityObj.initPlugin(jQuery("#unityPlayer")[0], link)});
}
});
}
function isSecure()
{
return window.location.protocol == 'https:';
}
-->
</script>
</head>
<body onresize="resizeUnity()">
<script type="text/javascript">
VK.init(function()
{
//VK.addCallback("onBalanceChanged", BalanceChanged);
VK.addCallback("onWindowBlur",OnWindowBlur);
VK.addCallback("onWindowFocus",OnWindowFocus);
VK.addCallback("onOrderSuccess",OnOrderSuccess);
var parts=document.location.search.substr(1).split("&");
var flashVars={}, curr;
for (i=0; i<parts.length; i++)
{
curr = parts[i].split('=');
flashVars[curr[0]] = curr[1];
}
viewer_id = flashVars['viewer_id'];
//console.warn("Init!");
}
);
function OnWindowBlur()
{
VK.callMethod("resizeWindow", 820, 1);
}
function OnWindowFocus()
{
VK.callMethod("resizeWindow", 820, 760);
}
function autosize(width) {
if (!document.getElementById('page')) {
// ????????? ????? ??????????? ???? ?? ???????? ?? ??????? ??????, ???? ??? ?? ?????????? - ???????? ???-?? ?? ??
return;
}
// ?.?. ?-??? ?????? ??? ????? ??????? ????? ????? ???????????? DOM, ? ????????????? VK
// ??? ????? ?? ?????? ?????? ? ?????? ??????? VK ??? ????? ???? ??????????, ??
// ???? ?????? ???? ?????????? ? ???? ?????? VK ??? ?? ?????????????????
// ???????? ?????? ?-??? ?? ????????? ????? - ????????? ????? ? JS
if (typeof VK.callMethod != 'undefined') {
VK.callMethod('resizeWindow', width, document.getElementById('page').clientHeight + 60);
} else {
setTimeout('autosize('+width+')', 100);
}
}
// ?????? ??????? ???????? ?????? ?? ?????????, ?????? ????? ????? ????? ????? ???????????? ???????? ?????????
$(document).ready(function() {
setInterval('autosize(607)', 500);
});
function resizeUnity(){
var curWidth = document.documentElement.clientWidth;
var curHeight = document.documentElement.clientHeight;
if(curWidth < minWidth)
curWidth = minWidth;
if(curHeight < minHeight)
curHeight = minHeight;
$("#unityPlayer").height(curHeight + "px");
$("#unityPlayer").width(curWidth + "px");
}
</script>
<div style="text-align:center">
<div class="content"">
<div id="unityPlayer" style="position:relative; display:block; text-align: center">
<div class="missing" style="position:relative; display:block; text-align: center">
<img src="back.png" />
<div style="position:relative; left:0x; top:0px; display:block;">
<img src="install.png"/>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
<div id="vk_comments"></div>
<div id="vk_groups"></div>
<script type="text/javascript">
//
VK.Widgets.Comments("vk_comments", {limit: 10, width: "795", height: "550", pageUrl: '
Пожалуйста Войдите или Зарегистрируйтесь чтобы увидеть скрытый текст
'});
</script>
<!--
<script type="text/javascript">
VK.Widgets.Group("vk_groups", {mode: 2, wide: 1, width: "200", height: "290"}, 40398201);
</script>
-->
</body>
</html>