<!DOCTYPE html>
<%@language="vbscript" codepage="936" %>
<%
'========================================================================================
' 文 件 名: admin_check_update_GB.asp
' 版    本: 岭峰网行业专用留言系统3.10.0 (LFMessS 2020 - 3.10.0.F Build 200604)
' 说    明: 在线升级以及版本校检程序 | 请勿自行修改该处文件源代码，以确保程序正确的执行 
' 文件日期: 2020-06-04
' 设 计 者: 疾风之狼
'========================================================================================
' 郑州文达岭峰网络科技有限公司.
'========================================================================================
' Copyright (C) 2001-2020 岭峰网. All rights reserved.
' 网    站: http://www.lfmesss.com
' 电子邮件: support@lfmesss.com
' 联系ＱＱ: 85112407
'======================================================================================== 
%>
<!-- #include file="../common/sub_inc.asp" -->
<!-- #include file="../common/commfun.asp" -->
<!-- #include file="../common/ip_purview.asp" -->
<%flg = "man"%>
<!-- #include file="../common/purview.asp" -->
<!-- #include file="../common/checkru.asp" -->
<head>
<title><%= LingFengNet_MS_language_check_update_11 %></title>
<%  
  Call htmlmeta() 
%> 
<link rel="stylesheet" href="../style/css/<%= LingFengNet_MS_web_css %>.css" type="text/css">
<link rel="shortcut icon" href="../pic/favicon.ico" type="image/x-icon">
<link rel="bookmark" href="../pic/favicon.ico" type="image/x-icon">
</head>
<body onkeydown="EnableKey();">
<div align="center"> 
<%
Call htmltop()
Call htmlbr()
Call htmladminmen()
Call htmlbr()
%>
<table width="<%= LingFengNet_MS_web_w %>" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td class="bgc2"><table width="100%" border="0" cellspacing="1" cellpadding="3">
          <tr>
            <td height="35" align="left" class="bgc">&ensp;&ensp;<img src="../pic/safe.png" alt="safe" align="absmiddle">&ensp;<%= LingFengNet_MS_language_check_update_00 %></td>
          </tr>
          <tr>
            <td width="75%" class="bgc1" height="100%"><table width="85%" height="60%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="60">
			<div id="chk">
			  <div align="center">
			    <img src="../pic/autoupdate.png" align="absmiddle">
			    &ensp;
			    <input type="submit" name="Submit" value="<%= LingFengNet_MS_language_check_update_09 %>" class="buttonface" onClick="Getverid();">
			      </div>
			</div>
			<div id="chkxx" style="text-align:left;"></div>			   </td>
              </tr>
            </table>            </td>
          </tr>
          <tr>
            <td width="75%" class="bgc" height="35">&ensp;</td>
          </tr>
      </table></td>
    </tr>
  </table>
</div>

<script>
var XML_Http_Request = false;
var ajccache = new Object();
 
function getXmlhttp(){
	var http_request;
	
	if(window.XMLHttpRequest) { 
		http_request = new XMLHttpRequest();
		if (http_request.overrideMimeType) {
			http_request.overrideMimeType("text/xml");
		}
	} else if (window.ActiveXObject) { 
		try {
			http_request = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				http_request = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
		}
	}
	if (!http_request) { 
		window.alert("<%= LingFengNet_MS_language_safecenter_0_0 %>");
		return null;
	}	
	return http_request;
}

var bar = 0 
var line = "||" 
var amount ="||" 
function count(){ 
	bar = bar + 2 
	amount = amount + line 
	document.loading.chart.value = amount 
	document.loading.percent.value = bar+"%" 
	if (bar < 99) {
		setTimeout("count()",100);
	} else {
		document.getElementById("chk").style.display = "none";
		document.getElementById("chkxx").style.display = "block";
	} 
}
function Getverid() {
    document.getElementById("chk").innerHTML =  "<div align=center><form name=loading><%= LingFengNet_MS_language_check_update_08 %><br><input type=text name=chart size=55 style=\"height:18px;line-height:18px;font-size:18px;font-weight:bolder;color:black;font-family:Arial; background-color:#EAEAEA; padding:0;margin:0px;\">&ensp;<input type=text name=percent size=4 style=background:transparent;border:none;></form></div>";
	count();
	var check_verid = getXmlhttp();
	var verid_err = "";
    verid_id = "../common/ajax_p.asp?RSS_URL="+"<%= LingFengNet_MS_language_check_update_06 %>";	
	check_verid.open("GET",verid_id,false);
	check_verid.send();
	var veridResult = check_verid.responseText;
	var veridResult = veridResult.split("|");
	var veridResult_err_wfr = veridResult[0];	
	var veridResult_err_hm = veridResult[1];	

	if ("<%= checkup()%>" == veridResult_err_wfr) {
		cell = "<%= LingFengNet_MS_language_check_update_02 %>"+veridResult_err_wfr+"<%= LingFengNet_MS_language_check_update_03 %>"+"<%= checkup() %>"+"<%= LingFengNet_MS_language_check_update_05 %>";
		document.getElementById("chkxx").style.display = "none";
		document.getElementById("chkxx").innerHTML =  cell;
		return false;
	} else if (veridResult == "noweb") {
		cell = "<%= LingFengNet_MS_language_check_update_01 %>"+strNewver_err_wfr;
		document.getElementById("chkxx").style.display = "none";
		document.getElementById("chkxx").innerHTML =  cell;
		return false;
	} else {
	 	GetNewver(veridResult_err_wfr,veridResult_err_hm);
	}
}	
function GetNewver(edver,spver) {
	var check_New = getXmlhttp();
	var Xmlhttp_err = "";
    sbcpj = "../common/ajax_p.asp?RSS_URL="+"<%= LingFengNet_MS_language_check_update_07 %>";	
	check_New.open("GET",sbcpj,false);
	check_New.send();
	var strResult = check_New.responseText;
	var strResult = strResult.replace(/\r\n/g,"<br>")   
	var strResult = strResult.replace(/\${i}\$/g,"<img border=0 src=../pic/Valid.png align=absmiddle>");
	var strNewver = strResult.split("|");
	var strNewver_err_edver = parseFloat(edver);
	var strNewver_err_spver = parseInt(spver);	
	var strNewver_err_checkup = parseFloat("<%= checkup()%>");
	var strNewver_err_checkup_xl = parseInt("<%= right(checkup(),1)%>");
	var strNewver_err_wfr = strNewver[0];
	var strNewver_err_hm = strNewver[1];
	if  (strNewver_err_edver != strNewver_err_checkup || strNewver_err_spver != 0) {
		if (strNewver_err_edver > strNewver_err_checkup){
			cell = "<%= LingFengNet_MS_language_check_update_02 %>"+strNewver_err_edver+"<%= LingFengNet_MS_language_check_update_03 %>"+strNewver_err_checkup+"<%= LingFengNet_MS_language_check_update_04 %>"+strNewver_err_wfr+strNewver_err_hm;
			document.getElementById("chkxx").style.display = "none";
			document.getElementById("chkxx").innerHTML =  cell;
			return false;				
		} else if (strNewver_err_spver > strNewver_err_checkup_xl && strNewver_err_edver == strNewver_err_checkup) {
			cell = "<%= LingFengNet_MS_language_check_update_02 %>"+edver+"<%= LingFengNet_MS_language_check_update_03 %><%= checkup()%><%= LingFengNet_MS_language_check_update_04_01 %>"+strNewver_err_spver+"<%= LingFengNet_MS_language_check_update_04_02 %>"+strNewver_err_wfr+strNewver_err_hm;
			document.getElementById("chkxx").style.display = "none";
			document.getElementById("chkxx").innerHTML =  cell;
			return false;
		} else {
			cell = "<%= LingFengNet_MS_language_check_update_01 %>"+strResult;
			document.getElementById("chkxx").style.display = "none";
			document.getElementById("chkxx").innerHTML =  cell;
			return false;
		}	
    } else {
		cell = "<%= LingFengNet_MS_language_check_update_01 %>"+strResult;
		document.getElementById("chkxx").style.display = "none";
		document.getElementById("chkxx").innerHTML =  cell;
	}	
}	
</script>
</body>
</html>
<%
Call htmlend()
%>