\n"; ?> T09:11:51+00:00 1.00 \n"; echo "$link\n"; $sql = "select updatedate from `item_product` order by updatedate DESC limit 0, 1"; $temp = sql_fetch($sql); // $lastmod = str_replace(" ", "T", substr($temp[updatedate], 0, 30))."+00:00"; if(!$temp['updatedate']) $temp['updatedate'] = $updatedate; $lastmod = cut_str($temp['updatedate'], 10, ''); echo "$lastmod\n"; echo "daily\n"; echo "0.9\n"; echo "\n"; $updatedate = $temp['updatedate']; $sql_c2 = "select iid from item_category where onuse = '1' and pid = '{$row_c['iid']}' and onlymaster = '0' order by sort_no asc"; $result_c2 = sql_query($sql_c2); for ($j=0; $row=sql_fetch_array($result_c2); $j++) { $link_c2 = $url."/product_list.php?cid={$row_c['iid']}&wgroup={$row['iid']}"; echo "\n"; echo "$link_c2\n"; $temp = sql_fetch("select updatedate from `item_product` where wgroup like '%$row[iid]%' order by updatedate DESC limit 0, 1"); if(!$temp['updatedate']) $temp['updatedate'] = $updatedate; // $lastmod = str_replace(" ", "T", substr($temp[updatedate], 0, 30))."+00:00"; $lastmod = cut_str($temp['updatedate'], 10, ''); echo "$lastmod\n"; echo "daily\n"; echo "0.8\n"; echo "\n"; $updatedate = $temp['updatedate']; } } // 제품 $sql = "select iid, updatedate from `item_product` order by updatedate DESC "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { $link = $url."/product.php?no={$row['iid']}"; echo "\n"; echo "$link\n"; // $lastmod = str_replace(" ", "T", substr($row[updatedate], 0, 30))."+00:00"; $lastmod = cut_str($row['updatedate'], 10, ''); echo "$lastmod\n"; echo "daily\n"; echo "0.7\n"; echo "\n"; } // 사은품 $link = $url."/gift.php"; echo "\n"; echo "$link\n"; // $lastmod = str_replace(" ", "T", substr($updatedate, 0, 30))."+00:00"; $lastmod = cut_str($updatedate, 10, ''); echo "$lastmod\n"; echo "daily\n"; echo "0.9\n"; echo "\n"; // 이벤트 if($scf['func_event']) { $link = $url."/event_list.php"; echo "\n"; echo "$link\n"; // $lastmod = str_replace(" ", "T", substr($updatedate, 0, 30))."+00:00"; $lastmod = cut_str($updatedate, 10, ''); echo "$lastmod\n"; echo "daily\n"; echo "0.9\n"; echo "\n"; } else if($scf['func_event2']) { $link = $url."/list.php?cid=31"; echo "\n"; echo "$link\n"; // $lastmod = str_replace(" ", "T", substr($updatedate, 0, 30))."+00:00"; $lastmod = cut_str($updatedate, 10, ''); echo "$lastmod\n"; echo "daily\n"; echo "0.9\n"; echo "\n"; } // 리뷰 $bo_table = 'review'; echo "\n"; echo "$url/bbs/board.php?bo_table=$bo_table\n"; $temp = sql_fetch("select wr_datetime from `$g5[write_prefix]$bo_table` order by wr_datetime DESC"); // $lastmod = str_replace(" ", "T", substr($temp[wr_datetime], 0, 30))."+00:00"; $lastmod = cut_str($temp['wr_datetime'], 10, ''); echo "$lastmod\n"; echo "daily\n"; echo "0.6\n"; echo "\n"; // 리뷰포스트 /* $sql = "select wr_id, wr_datetime from `$g5[write_prefix]$bo_table` where wr_is_comment='0' AND wr_option NOT LIKE '%secret%' and ".getBoardAddSearch(). ' order by wr_id desc'; $query = sql_query($sql); while($row = sql_fetch_array($query)) { // list of each article echo ""; echo "$url/bbs/board.php?bo_table=$bo_table&wr_id=$row[wr_id]"; $temp = sql_fetch("select wr_datetime from `$g5[write_prefix]$bo_table` where wr_parent='$row[wr_id]' order by wr_id DESC"); $lastmod = str_replace(" ", "T", substr($temp[wr_datetime], 0, 30))."+00:00"; if(!$lastmod) { $temp = sql_fetch("select wr_datetime from `$g5[write_prefix]$bo_table` where wr_id='$row[wr_id]'"); $lastmod = str_replace(" ", "T", substr($temp[wr_datetime], 0, 30))."+00:00"; } if(!$lastmod) $lastmod = $g5[time_ymd]; echo "$lastmod"; echo "weekly"; echo "0.5"; echo "\n"; } */ ?>