⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 update.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 PHP
字号:
<?php


include( "../config.inc.php" );
include( "../includes/SysGlobal.php" );
include( "language/".$aLan."_".$charset.".php" );
include( "../includes/version.php" );
include( "../includes/pro.php" );
include( "func/adm.inc.php" );
include( "func/common.inc.php" );
include( "func/link.inc.php" );
include( "func/update.inc.php" );
include( "func/db.inc.php" );
include( "func/nocatch.php" );
needauth( 75 );
if ( strtolower( $charset ) == "utf-8" )
{
	$utf8tmp = file( "gb2utf8.txt" );
}
echo "<html>\r\n<head >\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $charset;
echo "\">\r\n<link id=\"style_sheet\" href=\"css/commonstyle.css\" type=\"text/css\" rel=\"stylesheet\">\r\n<title>";
echo $strAdminTitle;
echo "</title>\r\n</head>\r\n\r\n<body  class=\"NormalPage\" ondragstart=\"window.event.returnValue=false\" oncontextmenu=\"window.event.returnValue=false\" onselectstart=\"event.returnValue=false\">\r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" background=\"images/mu8.gif\" height=\"30\" >\r\n  <tr> \r\n    <td >&nbsp;&nbsp;<img src=\"images/bar.gif\" >&nbsp;&nbsp;";
echo $strUpdate;
echo "</td>\r\n    <td width=\"110\" align=\"center\" > \r\n      \r\n    </td>\r\n  </tr>\r\n</table>\r\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"images/mu1.jpg\" height=\"5\">\r\n  <tr> \r\n    <td></td>\r\n  </tr>\r\n</table>\r\n";
$step = $_REQUEST['step'];
$newdate = $_REQUEST['date'];
if ( $step == "update" && $newdate != "" )
{
	$params = array(
		"softname" => MEDIPRO_SOFTNAME,
		"type" => MEDIPRO_TYPE,
		"newdate" => $newdate
	);
	$resault = $customer->call( "MediProGetDb", $params );
	if ( !$resault )
	{
		err( $strUpdateNTC, "", "" );
		exit( );
	}
	else if ( $resault != "nul" && $resault != "" )
	{
		eval( $resault );
	}
	if ( MEDIPRO_TYPE == "oem" )
	{
		$FromPath = $ServerPath."/MediProUpdate/".MEDIPRO_SOFTNAME."/".$newdate;
	}
	else
	{
		$FromPath = "../update/".$newdate;
	}
	$ToPath = "../";
	cpfolder( $FromPath, $ToPath );
	sayok( $strUpdateNTC1.":".$newdate, "update.php", "" );
}
echo " <br>\r\n\r\n\r\n";
$r_params = array(
	"softname" => MEDIPRO_SOFTNAME,
	"type" => MEDIPRO_TYPE,
	"domain" => $_SERVER['HTTP_HOST']
);
$lic = $customer->call( "MediProOnlineUpdate", $r_params );
if ( !$lic )
{
	err( $strUpdateNTC, "", "" );
}
else if ( $lic == "norights" )
{
	err( "Invalied Authorization", "", "" );
}
else if ( $lic == "exp" )
{
	err( "Expired Authorization", "", "" );
}
echo "<table width=\"600\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" align=\"center\">\r\n  <tr> \r\n    <td width=\"90\" class=\"title\" height=\"26\" align=\"center\"><font color=\"#FFFFFF\">";
echo $strUpdateDate;
echo "</font></td>\r\n    <td  class=\"title\" height=\"26\"><font color=\"#FFFFFF\">";
echo $strUpdateMsg;
echo "</font></td>\r\n    <td  class=\"title\" height=\"26\" width=\"50\" align=\"center\"><font color=\"#FFFFFF\">";
echo $strUpdateUped;
echo "</font></td>\r\n    <td  class=\"title\" height=\"26\" width=\"50\" align=\"center\"><font color=\"#FFFFFF\">";
echo $strUpdateOk;
echo "</font></td>\r\n    <td  class=\"title\" align=\"center\" width=\"60\"><font color=\"#FFFFFF\">";
echo $strUpdateDo;
echo "</font> \r\n    </td>\r\n  </tr>\r\n  ";
$canupdate = "";
$nums = sizeof( $lic );
$i = 0;
for ( ;	$i < $nums;	$i++	)
{
	$updatetime = $lic[$i]['uptime'];
	$msg = $lic[$i]['msg'];
	$twmsg = $lic[$i]['twmsg'];
	$enmsg = $lic[$i]['enmsg'];
	$dbupdate = $lic[$i]['dbupdate'];
	if ( MEDIPRO_TYPE == "oem" )
	{
		$updatefold = $ServerPath."/MediProUpdate/".MEDIPRO_SOFTNAME."/".$updatetime;
	}
	else
	{
		$updatefold = "../update/".$updatetime;
	}
	if ( is_dir( $updatefold ) )
	{
		$fimg = "images/toolbar_ok.gif";
	}
	else
	{
		$fimg = "images/toolbar_no.gif";
	}
	if ( intval( $updatetime ) <= intval( MEDIPRO_RELEASE ) )
	{
		$upimg = "images/toolbar_ok.gif";
	}
	else
	{
		$upimg = "images/toolbar_no.gif";
	}
	if ( strtolower( $aLan ) == "en_us" )
	{
		$msg = $enmsg;
	}
	if ( strtolower( $aLan ) == "zh_tw" )
	{
		$msg = $twmsg;
	}
	if ( strtolower( $charset ) == "utf-8" )
	{
		$msg = gb2utf8( $msg, $utf8tmp );
	}
	echo " \r\n  <tr class=\"list\"> \r\n    <td  align=\"center\">";
	echo $updatetime;
	echo " </td>\r\n    <td > \r\n      <textarea name=\"textfield\" readonly style=\"border:1px #eeeeee solid;width:320px\" rows=\"5\">";
	echo $msg;
	echo "</textarea>\r\n    </td>\r\n    <td align=\"center\"  ><img src=\"";
	echo $fimg;
	echo "\"></td>\r\n    <td align=\"center\"  ><img src=\"";
	echo $upimg;
	echo "\"></td>\r\n    <td  align=\"center\"  > ";
	if ( intval( $updatetime ) <= intval( MEDIPRO_RELEASE ) )
	{
		echo "\t<input type=\"submit\" name=\"Submit\" value=\"";
		echo $strUpdateed;
		echo "\" class=\"button\" disabled>\r\n\t";
	}
	else if ( !is_dir( $updatefold ) )
	{
		$canupdate = " disabled ";
		echo "\t<input type=\"submit\" name=\"Submit\" value=\"";
		echo $strUpdatews;
		echo "\" class=\"button\" disabled>\r\n\t\r\n\t";
	}
	else
	{
		echo " \r\n    <input ";
		echo $canupdate;
		echo " type=\"submit\" name=\"Submit\" value=\"";
		echo $strUpdateInstall;
		echo "\" class=\"button\" onClick=\"self.location='update.php?step=update&date=";
		echo $updatetime;
		echo "'\">\r\n     \r\n\t";
		$canupdate = " disabled ";
	}
	echo " \r\n\t\r\n\t</td>\r\n  </tr>\r\n  ";
}
echo " \r\n</table>\r\n<table width=\"598\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"10\" background=\"images/mu1.jpg\">\r\n  <tr> \r\n    <td  align=\"center\" height=\"2\" colspan=\"2\"></td>\r\n  </tr>\r\n</table>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -