=0;$i--) { $_upx = explode(',',trim($_updatelist[$i])); if ($_upx[5]==$_ufileexp[1]) { $_includeup = true; break; } } if(!$_includeup) getLink('','','테마가 존재하지 않습니다.',''); $_updatefile = getUrlData('http://'.$_serverinfo[2].'/__update/market/'.$_upath.$_ufileexp[1].'.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); // 테스트용 mkdir($extension_path.'themes',0707); @chmod($extension_path.'themes',0707); mkdir($extension_path.'themes/'.$_ufileexp[0],0707); @chmod($extension_path.'themes/'.$_ufileexp[0],0707); $fp = fopen($_ufile,'w'); fwrite($fp,$date['today']); fclose($fp); @chmod($_ufile,0707); getLink('reload','parent.','테마가 설치되었습니다.',''); } ?>