=0;$i--) { $_upx = explode(',',trim($_updatelist[$i])); if ($_upx[1]==$ufile) { $_includeup = true; break; } } if(!$_includeup) getLink('','','업데이트 파일이 존재하지 않습니다.',''); $_updatefile = getUrlData('http://'.$_serverinfo[2].'/__update/market/'.$_upath.$ufile.'.zip',10); $folder = './'; $extPath = $g['path_tmp'].'app'; $extPath1 = $extPath.'/'; $saveFile = $extPath1.'rb_update_app.zip'; $fp = fopen($saveFile,'w'); fwrite($fp,$_updatefile); fclose($fp); @chmod($saveFile,0707); $extractor = new ArchiveExtractor(); $extractor -> extractArchive($saveFile,$extPath1); unlink($saveFile); $_updateFile = $extPath1.'/_update.php'; if (is_file($_updateFile)) { include $_updateFile; unlink($_updateFile); } DirCopy($extPath1,$folder); DirDelete($extPath); mkdir($extPath,0707); @chmod($extPath,0707); $fp = fopen($_ufile,'w'); fwrite($fp,$date['today'].',0'); fclose($fp); @chmod($_ufile,0707); getLink('reload','parent.','업데이트가 완료되었습니다.',''); } ?>