<?php 
require "../Run.php";

/*获取当前版本*/
$f = explode(':',file_get_contents("../lib/version.txt"));
$my_version =  $f[0];
$my_nums = $f[1];
$my_name = $f[2];

/*获取最新版本*/
$sys = explode(':',file_get_contents("http://dingd.cn/site/newversion.txt"));
$sys_version =  $sys[0];
$sys_nums =  $sys[1];



$shengji = '无需升级';
$shengjiurl ='#';
$sj_cmd = 0;
if($my_nums < $sys_nums){

	$shengji = '需要升级';
	$sj_cmd = 1;
	$shengjiurl ='xtsj.php';
}
if($sys_nums == NULL){
	$sys_version = '获取失败';
}
$sysverbq = file_get_contents("http://dingd.cn/site/key.php?host=".$cfg['URL']);
if($sysverbq != '0'){
	$banquan = $sysverbq;
}else{
	$banquan = '无授权信息';
}
echo head('叮咚CMS版本管理');
echo topNav('版本管理与升级','<a href="wap_admin.php?">后台</a>',' ');
?>
<style>
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background:#f8f8f8;
	color:#222;
	font-family:"微软雅黑";
}
.version_top {
	height:150px;
	text-align:center;
	background:#f8f8f8;
	border-bottom:1px solid #efefef;
	
	
}
.version_top img {
	margin-top:35px;
	}
.version_list{
	list-style:none;
	padding:0px;
	margin:0px;
	line-height:35px;
	background-color:#fff;}
.version_list li{
	
	border-bottom:1px solid #efefef;}
.version_left{
	padding-left:10px;
}
.version_right{
	padding-right:10px;
	}
a:link {
	text-decoration: none;
	color: #222;
}
a:visited {
	text-decoration: none;
	color: #222;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
</style>
<div class="version_top"><img src="/style/LOGO/LOGO_80_80.png" width="80" height="80" /><br><?php echo $my_version.'['.$my_name.']';?></div>
<ul class="version_list">
<li><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="50%" class="version_left">当前版本</td><td align="right" class="version_right">免费版</td></tr></table></li>
<li><a href="<?php echo $shengjiurl ?>"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="50%" class="version_left">版本更新</td><td align="right" class="version_right">禁止升级</td></tr></table></a></li>
<li><a href="#"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="50%" class="version_left">功能介绍</td><td align="right" class="version_right">></td></tr></table></a></li>
<li><a href="#"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="50%" class="version_left">意见反馈</td><td align="right" class="version_right">></td></tr></table></a></li>
<li><a href="http://dingd.cn"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="50%" class="version_left">叮咚官网</td><td align="right" class="version_right">></td></tr></table></a></li>
</ul>
<?php
echo  footer(1);
?>