open($saveFile) === TRUE) { $zip->extractTo($extPath1); $zip->close(); } else { echo 'failed'; } unlink($saveFile); mkdir($plfldPath,0707); mkdir($plverPath,0707); @chmod($plfldPath,0707); @chmod($plverPath,0707); DirCopy($extPath1,$tgFolder); DirDelete($extPath); mkdir($extPath,0707); @chmod($extPath,0707); $_switchset = array('start','top','head','foot','end'); $_ufile = $g['path_var'].'switch.var.php'; $fp = fopen($_ufile,'w'); fwrite($fp, " $sites) { fwrite($fp, "\$d['switch']['".$_key."']['".$name."'] = \"".$sites."\";\n"); } } fwrite($fp, "\$d['switch']['".$plFolder."']['".$plVersion."'] = \"\";\n"); fwrite($fp, "?>"); fclose($fp); @chmod($_ufile,0707); } else { getLink('','','스위치 파일을 선택해 주세요.',''); } ?>