header
This commit is contained in:
25
fight.php
25
fight.php
@@ -132,37 +132,15 @@ include("config.php");
|
||||
}
|
||||
}
|
||||
|
||||
function getInternetExplorerVersion() {
|
||||
var rv = -1;
|
||||
if (navigator.appName == 'Microsoft Internet Explorer') {
|
||||
var ua = navigator.userAgent;
|
||||
var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
|
||||
if (re.exec(ua) != null) {
|
||||
rv = parseFloat(RegExp.$1);
|
||||
}
|
||||
}
|
||||
if (rv == -1) {
|
||||
if (navigator.userAgent.match(/Trident\/7.0.*rv.*11\.0/)) return 1;
|
||||
}
|
||||
if (rv == -1) {
|
||||
if (navigator.appVersion.indexOf("MSIE 10") !== -1) return 1;
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
var frmval = 1;
|
||||
var addstyle = "";
|
||||
if (getInternetExplorerVersion() != -1) {
|
||||
frmval = 0;
|
||||
addstyle = ' style="border-left: 1px solid #cccccc" ';
|
||||
}
|
||||
|
||||
var user = getCookie("battle");
|
||||
if ((user == null) || (user == '')) {
|
||||
document.write('<BODY>Внимание! В вашем браузере отключена поддержка Cookies. Включите чтобы играть.<BR></BODY>');
|
||||
} else {
|
||||
document.write(
|
||||
'<frameset rows="37, *, 30">' +
|
||||
'<frameset rows="45, *, 30">' +
|
||||
'<frame src="top_menu.php" scrolling="no" noresize="noresize" FRAMEBORDER="0" MARGINWIDTH="0" MARGINHEIGHT="0">' +
|
||||
'<frameset rows="72%, *, 0">' +
|
||||
'<frame name="main" src="main.php?top=' + rnd + '" style="border-bottom-width: 2px; border-bottom-style:solid; border-bottom-color:#B0B0B0">' +
|
||||
@@ -179,6 +157,5 @@ include("config.php");
|
||||
<meta content="MSHTML 5.00.2614.3500" name="GENERATOR"/>
|
||||
</head>
|
||||
<body style="text-align: center;">
|
||||
<noscript><span style="color: Red;">Внимание!</span> В вашем браузере отключена поддержка JavaScript. Включите чтобы играть.</noscript>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user