예제 #1
0
 if ($CheckFile[0] == "") {
     $CheckFile = @file($RemoteHostNameURL);
 }
 if ($CheckFile[0] == "") {
     $CheckFile = @file($RemoteHostNameURL);
 }
 if ($CheckFile[0] == "") {
     $CheckFile = @file($RemoteHostNameURL);
 }
 if ($CheckFile[0] == "") {
     print "<table width='600'  border='0' align='center' cellpadding='0' cellspacing='0' class='small' style='border:1px solid #006699;'><tr><td align='center' valign='middle' height=50>";
     print "<BR><font color=red>¸üзþÎñÆ÷ÎÞÏìÓ¦,Çë¶àˢм¸´Î»ò»»¸öʱ¼ä½øÐÐÉý¼¶²Ù×÷<BR></font><BR>";
     print "</td></tr></table>";
     exit;
 }
 $ReadZipFileList = ReadZipFileList(".");
 //print_R($ReadZipFileList);
 $dirlist = array_reverse($ReadZipFileList['dirList']);
 $fileSizeList = $ReadZipFileList['fileSizeList'];
 //print_R($dirlist);
 for ($i = 0; $i < sizeof($dirlist); $i++) {
     $upateName = $dirlist[$i];
     $IndexName = sizeof($dirlist) - 1;
     $TempFileName = is_file($upateName . ".zip.txt");
     $TempFileName = (int) $TempFileName;
     if ($i == $IndexName) {
         $fileURL[] = $dirlist[$i] . ":" . $fileSizeList[$upateName] . ":" . $TempFileName . "\n";
     } else {
         $fileURL[] = $dirlist[$i] . ":" . $fileSizeList[$upateName] . ":" . $TempFileName . "";
     }
 }
$ReadZipFileList .= ReadZipFileList("Interface/HOUQIN/userdefine/", $TargetDatetime);
$ReadZipFileList .= ReadZipFileList("Interface/HOUQIN/templates/", $TargetDatetime);
$ReadZipFileList .= ReadZipFileList("Interface/WUYE/", $TargetDatetime);
$ReadZipFileList .= ReadZipFileList("Interface/WUYE/Model/", $TargetDatetime);
$ReadZipFileList .= ReadZipFileList("Interface/WUYE/images/", $TargetDatetime);
$ReadZipFileList .= ReadZipFileList("Interface/WUYE/userdefine/", $TargetDatetime);
$ReadZipFileList .= ReadZipFileList("Interface/WUYE/templates/", $TargetDatetime);
$ReadZipFileList .= ReadZipFileList("Interface/Framework/", $TargetDatetime);
$ReadZipFileList .= ReadZipFileList("Interface/Framework/Model/", $TargetDatetime);
$ReadZipFileList .= ReadZipFileList("Interface/Framework/images/", $TargetDatetime);
$ReadZipFileList .= ReadZipFileList("Interface/Framework/userdefine/", $TargetDatetime);
$ReadZipFileList .= ReadZipFileList("Interface/Framework/templates/", $TargetDatetime);
$ReadZipFileList .= ReadZipFileList("LOGIN/", $TargetDatetime);
$ReadZipFileList .= ReadZipFileList("theme/", $TargetDatetime);
$ReadZipFileList .= ReadZipFileList("theme/3/", $TargetDatetime);
$ReadZipFileList .= ReadZipFileList("theme/3/images/", $TargetDatetime);
//print_R($ReadZipFileList);
//writeFileRemote("E:\updatepacketlist.txt",$ReadZipFileList);
$ReadZipFileListArray = explode('::', $ReadZipFileList);
//exit;
for ($i = 0; $i < sizeof($ReadZipFileListArray); $i++) {
    $Element = $ReadZipFileListArray[$i];
    if ($Element != "") {
        $ÎļþÊý×é = explode('/', $Element);
        $ÎļþÃû = array_pop($ÎļþÊý×é);
        if (in_array($ÎļþÃû, $JumpFile)) {
        } else {
            copy($OneDir . $Element, $TargetDir . $Element);
            //$time = mktime('1','1','1','01','10','2025');
            //touch($TargetDir."/".$Element,$time,$time);
            print $Element . "<BR>";