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); if (!$plVersion) { $dirh = opendir($plfldPath); while(false !== ($filename = readdir($dirh))) { if($filename == '.' || $filename == '..' || is_file($plfldPath.'/'.$filename)) continue; $plVersion = $filename; } closedir($dirh); } if (!$d['ov'][$plFolder]) { $_tmpdfile = $g['path_var'].'plugin.var.php'; $fp = fopen($_tmpdfile,'w'); fwrite($fp, " $_val_) { fwrite($fp, "\$d['ov']['".$_key_."'] = '".trim($_val_)."';\n"); } fwrite($fp, "\$d['ov']['".$plFolder."'] = '".$plVersion."';\n"); fwrite($fp, "?>"); fclose($fp); @chmod($_tmpdfile,0707); } if (is_file($g['path_plugin'].$plFolder.'/size.txt')) { unlink($g['path_plugin'].$plFolder.'/size.txt'); } } else { getLink('','','플러그인 파일을 선택해 주세요.',''); } ?>