} $_GET['RemoteHostName'] = "updatetdedu.dandian.net"; $RemoteHostName = $_GET['RemoteHostName']; if ($_GET['action'] == "") { print "<link rel=stylesheet href=\"<?php echo ROOT_DIR?>theme/3/style.css\"><body class=bodycolor><title>ͨ´ïOA½ÌÓý¹ÜÀí×é¼þ-¸üгÌÐò</title>"; $Text = "<font color=red>ÕýÔÚ´ÓÄ¿±ê·þÎñÆ÷(www.dandian.net)ÉÏÃæÏÂÔØ¿ÉÓøüÐÂÎļþÁбí....<BR>¸üаüÓ÷¨:¸üа²×°°üÒÔÈÕÆÚʱ¼äÃüÃû,ʱ¼äÔçµÄÏȵݲװ,ʱ¼äÍíµÄºó°²×°.<BR>(×¢Òâ:ËùÓеݲװ°ü¶¼ÐèÒª½øÐа²×°)</font><BR>"; //$Text .= "<font color=red><input class=SmallButton type=button value='Èç¹ûupdate.php°æ±¾±È½Ï¾É£¬µã»÷¸üÐÂupdate.php°æ±¾' OnClick=\"location='?action=updateSelfFile&RemoteHostName=".$_GET['RemoteHostName']."'\" /></font><BR><BR>"; tableFilterContent($Text, 600); print "<BR>"; $filename = date("Ymd") . ".zip"; if (is_file($filename)) { $ReDownload = "<BR><a href=?action=ExecRemoteFileServer&FileName=" . date("Ymd") . "&RemoteHostName=" . $_GET['RemoteHostName'] . "><font color=red>{$filename} µã»÷°²×°¸üаüÎļþ</font></a><BR><BR>"; } else { $ReDownload = "<BR>ûÓÐÊý¾Ý<BR><BR>"; } tableFilterContent($ReDownload, 600); } //TEST //print "<form name=form1 method=POST action=\"?action=UpdateFilePassToPostMethod\" enctype=multipart/form-data><tr width=100% class=TableData><td valign=top width=\"100%\" align=left class=TableData><input type=file name=FileName class=Smallinput size=15><input type=submit value=ÉÏ´«ÏàƬ name=send class=SmallButton></td></tr></form>"; //exit; //############################################################################# //ͨ¹ýPOSTÉÏ´«°²×°°üÎļþ //############################################################################# /* if($_GET['action']=="UpdateFilePassToPostMethod"&&$_GET['RemoteHostName']!="") { $name=$_FILES['filename']['name']; $type=$_FILES['filename']['type']; $tmp_name=$_FILES['filename']['tmp_name']; $error=$_FILES['filename']['error']; copy($tmp_name,$name); //print_R($_FILES);
$ReDownload = "<a href=?" . base64_encode("action=downloadRemoteFile&FileName={$fileName}&RemoteHostName=" . $_GET['RemoteHostName'] . "") . "><font color=green>µã»÷ÏÂÔظüаüÎļþHTTP</font></a>"; //$ReExec = ''; } //print "Ô¶³ÌÎļþ´óС£º$RemoteSize<BR>"; //print "±¾µØÎļþ´óС£º$LocalSize<BR>"; $text .= "<tr height=25><td align='middle'>¸üаüÎļþ£º{$fileName}</td> <td align='left'>´óС£º" . $RemoteSize . "B</td> <td align='left' nowrap><div id=ElementStatus" . $i . "></div></td><td align='left'><div id=ElementReDownload" . $i . "></div></td></tr>\n"; $text .= "<script>ElementStatus" . $i . ".innerHTML=\"״̬:{$Status}\";</script>\n"; $text .= "<script>ElementReDownload" . $i . ".innerHTML=\"{$ReDownload}\";</script>\n"; $GLOBAL_URL[$fileName] = $URL; } //ÈÕÆڱȽϽáÊø } if ($text == "") { $text .= "<BR><font color=red>ÏÖÓÐϵͳΪ×îа汾,ûÓпÉÓÃÓÚ¸üеĸüаü!</font><BR><BR>\n"; } tableFilterContent($text, 600); print "<BR><table width='600' border='0' align='center' cellpadding='0' cellspacing='0' class='small' style='border:1px solid #006699;'><tr><td align='center' height=25 valign='middle'>"; print "<a href='http://www.tongda2000.com/edu' target=_blank><font color=green>ͨ´ïOA½ÌÓý¹ÜÀí×é¼þ http://www.tongda2000.com/edu</font></a>"; print "</td></tr></table>"; } //TEST //print "<form name=form1 method=POST action=\"?action=UpdateFilePassToPostMethod\" enctype=multipart/form-data><tr width=100% class=TableData><td valign=top width=\"100%\" align=left class=TableData><input type=file name=FileName class=Smallinput size=15><input type=submit value=ÉÏ´«ÏàƬ name=send class=SmallButton></td></tr></form>"; //exit; //############################################################################# //ͨ¹ýPOSTÉÏ´«°²×°°üÎļþ //############################################################################# /* if($_GET['action']=="UpdateFilePassToPostMethod"&&$_GET['RemoteHostName']!="") { $name=$_FILES['filename']['name']; $type=$_FILES['filename']['type']; $tmp_name=$_FILES['filename']['tmp_name'];