0){ $boardID=$ch; $ch = "boardList"; } else { $urlresult = mysql_query("select * from category where ca_group='item' and ca_url='$oldch' and ca_display='y'") or die(mysql_error()); $urlrow = mysql_fetch_array($urlresult); if($urlrow[ca_id]!=""){ $shopID=$urlrow[ca_id]; $shopDepth = $urlrow[ca_depth]; $shopParent = $urlrow[ca_parent]; $defaultViewTitle = $urlrow[ca_url]; $shopPaging = $urlrow[ca_paging]; $shopGaro = $urlrow[ca_garo]; $shopCate = now_category5($shopID); $shopCateA = explode("|",$shopCate); $shopBParent = $shopCateA[0]; if($urlrow[ca_group]=='item') $ch = "shopList"; else $ch = $urlrow[ca_url]; }else if($oldch !="" && $oldch !='boardWrite' && $oldch !='boardInsert' && $oldch !='boardList' && $oldch !='boardUpdate' && $oldch !='boardView'){ $urlresult = mysql_query("SELECT * FROM shop a left join category b on a.shopCategory1=b.ca_id where a.madeName='$oldch' and a.status='use' and b.ca_display='y'") or die(mysql_error()); $urlrow = mysql_fetch_array($urlresult); if($urlrow[ca_id]!=""){ $shopID=$urlrow[ca_id]; $shopDepth = $urlrow[ca_depth]; $shopParent = $urlrow[ca_parent]; $defaultViewTitle = $urlrow[ca_url]; $shopPaging = $urlrow[ca_paging]; $shopGaro = $urlrow[ca_garo]; $shopCate = now_category5($shopID); $shopCateA = explode("|",$shopCate); $shopBParent = $shopCateA[0]; $viewID = $urlrow[shopNumber]; $ch = "shopView"; } } } if ( $ch ) { if (@filesize('include/'.$dataBaseType.'/'.$ch.'.php') > 0) include 'include/'.$dataBaseType.'/'.$ch.'.php'; else if (@filesize($websiteSetting[designSkinDirectory].'/'.$ch.'.html') > 0) include 'include/'.$dataBaseType.'/skinOnly.php'; else { include 'skin/notFound.html'; exit; } } else { include 'include/'.$dataBaseType.'/default.php'; } //임시페이지 메세지 표시 if($imsi == "Y" && $ch != "shopCategory") echo "
임시페이지 동작중!
"; //if ($ch != 'boardWriteImageFrame') include 'include/'.$dataBaseType.'/popup.php'; w3웹표준에 맞추기 위해 top.php로 내용 옴김. 2011.08.30 if ($menuLineSetting) echo $menuLineSetting; if ($dataBaseType == 'mysql') @mysql_close($connect); exit; ?>