/** * Parse attachments * @return array Returns array with failed or success data * (See parser-common/src/Parser.php) for more info. */ public function parse() { $xml = simplexml_load_string($this->parsedMail->getMessageBody()); $timestamp = strtotime($xml->attributes()->date); foreach ($xml->list as $reports) { $this->feedName = (string) $reports->attributes()->type; // If feed is known and enabled, validate data and save report if ($this->isKnownFeed() && $this->isEnabledFeed()) { foreach ($reports->url_info as $url_info) { $url = (string) $url_info->attributes()->url; $ip = (string) $url_info->attributes()->ip; $urlData = getUrlData($url); if (filter_var($ip, FILTER_VALIDATE_IP) === false) { // No IP supplied by Google if (!empty($urlData['host']) && !filter_var($urlData['host'], FILTER_VALIDATE_IP) === false) { // Hostname is an IP address $ip = $urlData['host']; } else { // We have no IP address, try to get the IP address by resolving the domain $ip = @gethostbyname($urlData['host']); // If it fails, set to localhost $ip = $ip == $urlData['host'] ? '127.0.0.1' : $ip; } } $report = ['domain' => getDomain($url), 'uri' => getUri($url), 'category' => config("{$this->configBase}.feeds.{$this->feedName}.category")]; // Sanity check if ($this->hasRequiredFields($report) === true) { // incident has all requirements met, filter and add! $report = $this->applyFilters($report); $incident = new Incident(); $incident->source = config("{$this->configBase}.parser.name"); $incident->source_id = false; $incident->ip = $ip; $incident->domain = $report['domain']; $incident->class = config("{$this->configBase}.feeds.{$this->feedName}.class"); $incident->type = config("{$this->configBase}.feeds.{$this->feedName}.type"); $incident->timestamp = $timestamp; $incident->information = json_encode(array_merge($urlData, $report)); $this->incidents[] = $incident; } } } } return $this->success(); }
<?php include $g['path_module'] . $module . '/var/var.php'; if ($d['market']['url'] && $d['market']['id'] && $d['market']['pw']) { include $g['path_core'] . 'function/rss.func.php'; $marketData = getUrlData($d['market']['url'] . '&iframe=Y&page=client.buy.mobile&_clientu=' . $g['s'] . '&_clientr=' . $r . '&uid=' . $uid . '&iframe=Y&id=' . $d['market']['id'] . '&pw=' . $d['market']['pw'], 10); $marketData = explode('[RESULT:', $marketData); $marketData = explode(':RESULT]', $marketData[1]); $marketData = $marketData[0]; if ($marketData == 'UNDER') { ?> <script type="text/javascript"> //<![CDATA[ alert('모바일에서의 결제서비스는 준비중에 있습니다.'); window.close(); //]]> </script> <?php exit; } if ($marketData == 'NOMEMBER') { ?> <script type="text/javascript"> //<![CDATA[ alert('환경설정 페이지에 등록한 킴스큐 회원정보가 정확하지 않습니다.'); window.close(); //]]> </script> <?php exit; }
<?php include $g['path_module'] . $module . '/var/var.php'; if ($d['market']['url'] && $d['market']['id'] && $d['market']['pw']) { include $g['path_core'] . 'function/rss.func.php'; $marketData = getUrlData($d['market']['url'] . '&iframe=Y&page=client.buyer.mobile&_clientu=' . $g['s'] . '&_clientr=' . $r . '&cat=' . $cat . '&theme=' . $theme . '&sort=' . $sort . '&orderby=' . $orderby . '&type=' . $type . '&ptype=' . $ptype . '&p=' . $p . '&todayfree=' . $todayfree . '&sailing=' . $sailing . '&where=' . $where . '&keyword=' . $keyword . '&brand=' . $brand . '&id=' . $d['market']['id'] . '&pw=' . $d['market']['pw'], 10); $marketData = explode('[RESULT:', $marketData); $marketData = explode(':RESULT]', $marketData[1]); $marketData = $marketData[0]; echo $marketData; } else { ?> <div id="orderlist"> <div class="info"> <div class="article"> 0개(1/1페이지) </div> <div class="category"> </div> <div class="clear"></div> </div> <table summary="상품주문 리스트입니다."> <caption>상품주문</caption> <colgroup> <col width="50">
$_serverinfo = explode('/', $d['market']['url']); $_updatedate = getUrlData('http://' . $_serverinfo[2] . '/__update/market/' . $_upath . 'theme.txt', 10); $_updatelist = explode("\n", $_updatedate); $_updateleng = count($_updatelist) - 1; $_includeup = false; for ($i = $_updateleng; $i >= 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);
<?php include_once $g['path_core'] . 'function/rss.func.php'; include_once $g['path_module'] . $module . '/var/var.info.php'; $maxupsize = str_replace('M', '', ini_get('upload_max_filesize')); $zipcodenum = getUrlData(str_replace('zipcode.db', 'num.txt', $zipvar['serverurl']), 10); $zipcodenum = $zipcodenum ? trim($zipcodenum) : 0; $zipcodearr = explode("\n", $zipcodenum); $zipcodelen = count($zipcodearr); $zipmessage = '현재 최신 우편번호 데이터를 유지하고 있습니다.'; if ($zipcodenum > $zipvar['num']) { $zipmessage = '업데이트가 필요합니다.'; } if ($zipcodelen > 3) { $zipmessage = '데이터서버 주소가 잘못되었습니다.'; } ?> <div id="zipbox"> <form name="procForm" action="<?php echo $g['s']; ?> /" method="post" target="_action_frame_<?php echo $m; ?> " enctype="multipart/form-data" onsubmit="return saveCheck(this);"> <input type="hidden" name="r" value="<?php echo $r; ?> " />
include $g['path_core'] . 'function/rss.func.php'; $appData = getUrlData($d['market']['url'] . '&a=client.install&uid=' . $uid . '&id=' . $d['market']['id'] . '&pw=' . $d['market']['pw'], 10); $appArray = explode('|', $appData); if ($appArray[3]) { getLink('', '', $appArray[3], ''); } if (!$appArray[2]) { getLink('', '', '정상적인 자료가 아닙니다.', ''); } if ($appArray[4] != 6) { if (!$appArray[0] || !$appArray[1]) { getLink('', '', '원격설치를 지원하지 않는 자료입니다.', ''); } } $marketUrl = explode('/', $d['market']['url']); $marketData = getUrlData('http://' . $marketUrl[2] . '/modules/qmarket/upload/data/' . $appArray[2], 10); $appfiletype = substr($appArray[0], 0, 6); if (strstr($appArray[1], 'bbs/theme/')) { $appfiletype = 'bbstheme'; } $folder = './' . $appArray[0] . '/'; $subfolder = explode('/', $appArray[1]); $subfoldern = count($subfolder) - 1; $nSubfolder = ''; if (strpos(',_pc,_mobile,', $subfolder[$subfoldern])) { getLink('', '', '원격설치 형식에 맞지 않는 자료같습니다.\\n다운로드 받아서 설치해 주세요.', ''); } for ($i = 0; $i < $subfoldern; $i++) { $nSubfolder .= $subfolder[$i] . '/'; } if ($appArray[4] == 6) {
<?php function getUrlData($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $data = curl_exec($ch); curl_close($ch); return $data; } $url = "http://lumisense.com/nova-labs/status/CheckStatus.php?mode=json"; $environment = json_decode(getUrlData($url), TRUE); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Nova Labs Mobile</title> <link rel="stylesheet" href="/m/css/jquery.mobile-1.2.0.min.css" /> <!--<link rel="stylesheet" href="/m/css/novalabs.min.css" />--> <script src="/m/js/jquery-1.8.2.min.js"></script> <script src="/m/js/jquery.mobile-1.2.0.min.js"></script> <script src="/m/js/ajax_click.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { function refresh(){ location.reload(true); }
continue; } $incs[] = $folder; } closedir($dirh); return $incs; } $_switchset = array('start' => '스타트 스위치', 'top' => '탑 스위치', 'head' => '헤더 스위치', 'foot' => '풋터 스위치', 'end' => '엔드 스위치'); $SITES = getDbArray($table['s_site'], '', '*', 'gid', 'asc', 0, 1); $year = $year ? $year : substr($date['today'], 0, 4); $month = $month ? $month : substr($date['today'], 4, 2); $day = $day ? $day : substr($date['today'], 6, 2); include $g['path_core'] . 'function/rss.func.php'; include $g['path_module'] . 'market/var/var.php'; $_serverinfo = explode('/', $d['market']['url']); $_updatelist = getUrlData('http://' . $_serverinfo[2] . '/__update/update.txt', 10); $_updatelist = explode("\n", $_updatelist); $_updatelength = count($_updatelist) - 1; $_lastupdate = explode(',', trim($_updatelist[$_updatelength - 1])); $_isnewversion = is_file($g['path_var'] . 'update/' . $_lastupdate[1] . '.txt') ? true : false; $_version = explode('.', $d['admin']['version']); $_gd = gd_info(); $_yesterday = date('Ymd', mktime(0, 0, 0, substr($date['today'], 4, 2), substr($date['today'], 6, 2) - 1, substr($date['today'], 0, 4))); $accountQue = ''; $_D1 = getDbData($table['s_numinfo'], $accountQue . "date='" . $date['today'] . "'", '*'); $_D2 = getDbData($table['s_numinfo'], $accountQue . "date='" . $_yesterday . "'", '*'); $_D3 = getDbData($table['bbsday'], $accountQue . "date='" . $date['today'] . "'", '*'); $_D4 = getDbData($table['bbsday'], $accountQue . "date='" . $_yesterday . "'", '*'); ?> <div id="admdesk">
<?php include $g['path_module'] . $module . '/var/var.php'; if ($d['market']['url']) { include $g['path_core'] . 'function/rss.func.php'; $marketData = getUrlData($d['market']['url'] . '&iframe=Y&page=client.request&_clientu=' . $g['s'] . '&_clientr=' . $r . '&id=' . $d['market']['id'] . '&pw=' . $d['market']['pw'] . '&version=2', 10); $marketData = explode('[RESULT:', $marketData); $marketData = explode(':RESULT]', $marketData[1]); $marketData = $marketData[0]; echo $marketData; } else { ?> <div class="noconfig"> <a href="<?php echo $g['s']; ?> /?r=<?php echo $r; ?> &m=<?php echo $m; ?> &module=<?php echo $module; ?> &front=config">마켓 접속주소를 등록해 주세요.</a> </div> <?php }
// <img src="/image.php/image-name.png?color=900&image=/path/to/image.png" alt="Don't forget your alt text" /> ///////////////////// // CODE STARTS HERE ///////////////////// if ($_GET['vod']) { echo '<video src="' . $_GET['vod'] . '" width="100%" height="100%" controls preload="auto"></video>'; exit; } if (!isset($_GET['image'])) { header('HTTP/1.1 400 Bad Request'); echo 'Error: no image was specified'; exit; } if (strpos($_GET['image'], 'ttp')) { include '../../function/rss.func.php'; echo getUrlData($_GET['image'], 1); exit; } define('MEMORY_TO_ALLOCATE', '100M'); define('DEFAULT_QUALITY', 90); define('CURRENT_DIR', dirname(__FILE__)); define('CACHE_DIR_NAME', '/thumb/'); define('CACHE_DIR', CURRENT_DIR . CACHE_DIR_NAME); define('DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']); // Images must be local files, so for convenience we strip the domain if it's there $image = preg_replace('/^(s?f|ht)tps?:\\/\\/[^\\/]+/i', '', (string) $_GET['image']); // For security, directories cannot contain ':', images cannot contain '..' or '<', and // images must start with '/' if ($image[0] != '/' || strpos(dirname($image), ':') || preg_match('/(\\.\\.|<|>)/', $image)) { header('HTTP/1.1 400 Bad Request'); echo 'Error: malformed image path. Image paths must begin with \'/\'';
$fp = fopen($weather_file, 'w'); for ($i = 0; $i < $FLEN; $i++) { if ($i) { $fx[$i] = explode('data=', str_replace('"', '', getKRtoUTF($FDATA[$i]))); $fv[$i]['city'] = explode('/', $fx[$i][1]); $fv[$i]['x'] = explode('/', $fx[$i][2]); $fv[$i]['y'] = explode('/', $fx[$i][3]); $fv[$i]['city'] = $fv[$i]['city'][0]; $fv[$i]['x'] = $fv[$i]['x'][0]; $fv[$i]['y'] = $fv[$i]['y'][0]; } else { $fv[$i]['city'] = '서울'; $fv[$i]['x'] = '37500000'; $fv[$i]['y'] = '126930000'; } $WTCITY = getUrlData('http://www.google.com/ig/api?hl=ko&weather=,,,' . $fv[$i]['x'] . ',' . $fv[$i]['y'], 5); $WDATA = explode('<current_conditions>', $WTCITY); $city_key = explode('data=', str_replace('"', '', getKRtoUTF($WDATA[1]))); $city_val1 = explode('/', $city_key[1]); $city_val2 = explode('/', $city_key[2]); $city_val3 = explode('/', $city_key[3]); $city_val4 = explode('/', $city_key[4]); $city_val5 = explode('/', $city_key[5]); $city_val6 = explode('/', $city_key[6]); $w['ment'] = $city_val1[0]; $w['temf'] = $city_val2[0]; $w['temc'] = $city_val3[0]; $w['humi'] = $city_val4[0]; $w['icon'] = $WI[$city_val5[4]] ? $WI[$city_val5[4]] : 105; $w['wind'] = $city_val6[0]; fwrite($fp, $fv[$i]['city'] . '|' . $w['ment'] . '|' . $w['temf'] . '|' . $w['temc'] . '|' . $w['humi'] . '|' . $w['icon'] . '|' . $w['wind'] . '|' . $fv[$i]['x'] . '|' . $fv[$i]['y'] . '<split>');
<meta charset="UTF-8"> <title>TPMS processor</title> </head> <body> <?php ini_set('display_errors', 1); require_once 'functions.php'; if (isset($_GET['mid']) && !empty($_GET['mid'])) { //navigation link echo '<a href="index.php"><<< Show TPMS information for different MID</a>'; $mid = $_GET['mid']; //URL to get TPMS information for given MID $url = 'http://integration.api-v1-paywk2tn.autodata-group.com/v1/vehicles/' . $mid . '/tpms?country-code=gb'; //get TPMS JSON data for URL $urlData = getUrlData($url); $tpmsData = $urlData['data']; //count TPMS variants for given MID $tpmsVariantsNumber = count($tpmsData); //show list with TPMS variants for MID if ($tpmsVariantsNumber > 0) { echo '<h1>MID ' . $mid . ' has ' . $tpmsVariantsNumber . ' TPMS variants. Please select required TPMS variant from the following list:</h1>'; echo '<ul>'; foreach ($tpmsData as $key => $item) { $tpmsVariantsCounter = $key + 1; echo '<li>'; echo '<a href="http://' . $_SERVER['HTTP_HOST'] . '/tpms_variant.php?mid=' . $mid . '&url=' . urlencode('http://integration.api-v1-paywk2tn.autodata-group.com' . $item['href']) . '">'; echo 'Variant ' . $tpmsVariantsCounter; echo !empty($item['tpms_description']) ? ' - (' . $item['tpms_description'] . ')' : ''; echo '</a>'; echo '</li>';
<?php include_once "header.php"; //$_POST['url'] = "http://www.tn.edu.tw/"; $date['metaTags']['description']['value'] = $date['title'] = ''; if (!empty($_POST['url'])) { $date = getUrlData($_POST['url']); $web['title'] = $date['title']; $web['description'] = $date['metaTags']['description']['value']; echo json_encode($web); } function getUrlData($url) { $result = false; $contents = getUrlContents($url); if (isset($contents) && is_string($contents)) { $title = null; $metaTags = null; preg_match('/<title>([^>]*)<\\/title>/si', $contents, $match); if (isset($match) && is_array($match) && count($match) > 0) { $title = strip_tags($match[1]); } preg_match_all('/<[\\s]*meta[\\s]*name="?' . '([^>"]*)"?[\\s]*' . 'content="?([^>"]*)"?[\\s]*[\\/]?[\\s]*>/si', $contents, $match); if (isset($match) && is_array($match) && count($match) == 3) { $originals = $match[0]; $names = $match[1]; $values = $match[2]; if (count($originals) == count($names) && count($names) == count($values)) { $metaTags = array(); for ($i = 0, $limiti = count($names); $i < $limiti; $i++) { $metaTags[$names[$i]] = array('html' => htmlentities($originals[$i]), 'value' => $values[$i]);
$_updatedate = getUrlData('http://' . $_serverinfo[2] . '/__update/update.v2.txt', 10); $_updatelist = explode("\n", $_updatedate); $_updateleng = count($_updatelist) - 1; $_includeup = false; for ($i = $_updateleng; $i >= 0; $i--) { $_upx = explode(',', trim($_updatelist[$i])); if ($_upx[1] == $ufile) { $_updateversion = $_upx[0]; $_includeup = true; break; } } if (!$_includeup) { getLink('', '', _LANG('ac003', 'admin'), ''); } $_updatefile = getUrlData('http://' . $_serverinfo[2] . '/__update/files/v2/' . $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);
?> </strong> </h4> <button type="button" class="btn btn-default" style="margin:10px 0"><span class="label label-default">1.1.0</span> 최신 업데이트가 없습니다.</button> <p class="text-muted"><small>선택된 모듈에 대한 플러그인 정보입니다.</small></p> </div> </div> <hr> <?php include $g['path_core'] . 'function/rss.func.php'; include $g['path_module'] . 'market/var/var.php'; $_serverinfo = explode('/', $d['market']['url']); $_updatelist = getUrlData('http://' . $_serverinfo[2] . '/__update/market/modules/' . $id . '/theme.txt', 10); $_updatelist = explode("\n", $_updatelist); $_updatelength = count($_updatelist) - 1; $recnum = 10; $TPG = getTotalPage($_updatelength, $recnum); ?> <div class="table-responsive"> <table class="table table-hover"> <thead> <tr> <th colspan="2">내 테마</th> <th>테마명(아이디)</th> <th>제작자</th> <th>마켓등록일</td> <th>설치일</th>
function getRssArray($url, $tag) { return explode('<' . $tag . '>', getUrlData($url, 10)); }
</div> <div class="panel-body"> <div class="row"> <div class="col-sm-3 text-center rb-symbol"> <i class="kf kf-bi-05 hidden-xs"></i> </div> <div class="col-sm-9"> <fieldset id="btn-group"> <div class="form-group"> <label><?php echo _LANG('i002', 'install'); ?> </label> <select id="version" class="form-control input-lg"> <?php echo getUrlData('http://www.kimsq.co.kr/__update/core/rb2-install-' . $sitelang . '.txt', 10); ?> </select> <p class="help-block"> <?php echo _LANG('i003', 'install'); ?> </p> </div> <button type="submit" class="btn btn-primary btn-lg btn-block" onclick="getDownload(document.getElementById('btn-group'),document.getElementById('version'),'<?php echo $sitelang; ?> ');"><?php echo _LANG('i004', 'install'); ?> </button>
<?php if (!defined('__KIMS__')) { exit; } checkAdmin(0); include_once $g['path_core'] . 'function/rss.func.php'; $zipdata = getUrlData($serverurl, 10); if (!$zipdata) { getLink('', '', '데이터서버 주소를 확인하세요. 서버의 응답이 없습니다.', ''); } $zipfile = $g['dir_module'] . 'var/zipcode.db'; $varfile = $g['dir_module'] . 'var/var.info.php'; $zipNum0 = explode("\n", $zipdata); $zipNum1 = count(file($zipfile)); $zipNum2 = count($zipNum0) - 1; if ($zipNum2 < 10000) { getLink('', '', '데이터서버 주소를 확인하세요. 우편번호 데이터가 아닙니다.', ''); } if ($zipNum1 == $zipNum2) { getLink('', '', '최신데이터가 적용된 상태입니다.', ''); } $fp = fopen($zipfile, 'w'); fwrite($fp, $zipdata); fclose($fp); @chmod($zipfile, 0707); $fp = fopen($varfile, 'w'); fwrite($fp, "<?php\n"); fwrite($fp, "\$zipvar['serverurl'] = \"" . $serverurl . "\";\n"); fwrite($fp, "\$zipvar['date'] = \"" . $date['today'] . "\";\n"); fwrite($fp, "\$zipvar['num'] = \"" . $zipNum2 . "\";\n");
if (substr($realname, 0, 3) != 'rb-' || substr($realname, -4) != '.zip') { echo '<script>'; echo "parent.errDownload('1');"; echo '</script>'; exit; } $extPath = './'; $saveFile = $extPath . 'rb2-package.zip'; move_uploaded_file($tmpname, $saveFile); $extractor = new ArchiveExtractor(); $extractor->extractArchive($saveFile, $g['path_root']); DirChmod($g['path_root'], 0707); unlink($saveFile); } } else { $rbPackage = getUrlData('http://www.kimsq.co.kr/__update/core/' . $version . '.zip', 10); if (!trim($rbPackage)) { echo '<script>'; echo "parent.errDownload('');"; echo '</script>'; exit; } $rbPackageFile = $g['path_root'] . $version . '.zip'; $fp = fopen($rbPackageFile, 'w'); fwrite($fp, $rbPackage); fclose($fp); $extractor = new ArchiveExtractor(); $extractor->extractArchive($rbPackageFile, $g['path_root']); DirChmod($g['path_root'], 0707); unlink($rbPackageFile); }
<?php include $g['path_module'] . $module . '/var/var.php'; if ($d['market']['url']) { include $g['path_core'] . 'function/rss.func.php'; $marketData = getUrlData($d['market']['url'] . '&iframe=Y&page=client.brand&_clientu=' . $g['s'] . '&_clientr=' . $r . '&sort=' . $sort . '&orderby=' . $orderby . '&type=' . $type . '&p=' . $p . '&where=' . $where . '&keyword=' . $keyword . '&id=' . $d['market']['id'] . '&pw=' . $d['market']['pw'], 10); $marketData = explode('[RESULT:', $marketData); $marketData = explode(':RESULT]', $marketData[1]); $marketData = $marketData[0]; echo $marketData; } else { ?> <div class="noconfig"> <a href="<?php echo $g['s']; ?> /?r=<?php echo $r; ?> &m=<?php echo $m; ?> &module=<?php echo $module; ?> &front=config">마켓 접속주소를 등록해 주세요.</a> </div> <?php }
<?php if (!defined('__KIMS__')) { exit; } include_once $g['path_core'] . 'function/rss.func.php'; include_once $g['dir_module'] . 'var/var.info.php'; $zipdata = getUrlData($zipvar['serverurl'], 10); if ($zipdata) { $zipNum0 = explode("\n", $zipdata); $zipNum1 = count($zipNum0) - 1; $varfile = $g['dir_module'] . 'var/var.info.php'; $fp = fopen($zipdb, 'w'); fwrite($fp, $zipdata); fclose($fp); @chmod($zipdb, 0707); $fp = fopen($varfile, 'w'); fwrite($fp, "<?php\n"); fwrite($fp, "\$zipvar['serverurl'] = \"" . $zipvar['serverurl'] . "\";\n"); fwrite($fp, "\$zipvar['date'] = \"" . $date['today'] . "\";\n"); fwrite($fp, "\$zipvar['num'] = \"" . $zipNum1 . "\";\n"); fwrite($fp, "?>"); fclose($fp); @chmod($varfile, 0707); getLink('reload', '', '', ''); } else { getLink('', '', '우편번호데이터 서버가 응답하지 않습니다. 우편번호DB파일을 직접 등록해 주세요.', ''); }