SIR head.php 현재 사용하는 소스코드입니다. > 그누4 팁자료실

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.

SIR head.php 현재 사용하는 소스코드입니다. 정보

SIR head.php 현재 사용하는 소스코드입니다.

본문

현재 사용하고 있는 SIR head.php 입니다.
많은분들이 요청하셔서 올립니다.
이 소스와 관련된 질문은 받지 않습니다.



<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");

function top_box($content)
{
    global $g4;

    return "
    <table width=100% cellpadding=0 cellspacing=0>
    <tr>
    <td background='$g4[path]/img/top_box_tl.gif' width=5 height=5></td>
    <td background='$g4[path]/img/top_box_tc.gif' width='' height=5></td>
    <td background='$g4[path]/img/top_box_tr.gif' width=5 height=5></td>
    </tr>
    <tr>
    <td background='$g4[path]/img/top_box_l.gif' width=5></td>
    <td style='padding:10px; line-height:150%;'>$content</td>
    <td background='$g4[path]/img/top_box_r.gif' width=5></td>
    </tr>
    <tr>
    <td background='$g4[path]/img/top_box_bl.gif' width=5 height=5></td>
    <td background='$g4[path]/img/top_box_bc.gif' width='' height=5></td>
    <td background='$g4[path]/img/top_box_br.gif' width=5 height=5></td>
    </tr>
    </table>";
}

function print_menu1($key, $no)
{
    global $menu;

    $str = "<table id='menu_{$key}' cellpadding=0 cellspacing=0 style='position:absolute; display:none;' onpropertychange=\"selectBoxHidden('menu_{$key}')\">";
    $str .= "<tr><td class=bg_line1></td></tr>";
    $str .= print_menu2($key, $no);
    $str .= "<tr><td class=bg_line1></td></tr>";
    $str .= "</table>\n";

    return $str;
}

function print_menu2($key, $no)
{
    global $menu;
   
    for($i=1; $i<count($menu[$key]); $i++)
    {
        if ($menu[$key][$i][0] == "-")
            $str .= "<tr><td class=bg_line{$no}></td></tr>";
        else
        {
            $target = "";
            if ($menu[$key][$i][2])
                $target = " target=_blank ";
            $span1 = $span2 = "";
            if ($menu[$key][$i][3])
            {
                $span1 = "<span style='{$menu[$key][$i][3]}'>";
                $span2 = "</span>";
            }
            $str .= "<tr><td class=bg_menu{$no}><a href='{$menu[$key][$i][0]}' $target>{$span1}{$menu[$key][$i][1]}{$span2}</a></td></tr>";
        }
    }

    return $str;
}



switch(true)
{
    case preg_match("/(gnuboard4.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(g4_license.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(g4_feature.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(g4_function.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(g4_install.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/^(g4_)/", $bo_table) :
    case preg_match("/^(self_program)$/", $bo_table) :
        $menu1 = "gnuboard4";
        break;
    case preg_match("/(gnuboard3.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(g3_install.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/^(g3_)/", $bo_table) :
        $menu1 = "gnuboard3";
        break;
    case preg_match("/(webstudy.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/^(pl_)/", $bo_table) :
        $menu1 = "webstudy";
        break;
    case preg_match("/(youngcart.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(yc_license.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(yc_feature.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(yc_function.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(yc_partner.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(yc_pg.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(yc_sms.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/^(yc_)/", $bo_table) :
        $menu1 = "youngcart";
        break;
    case preg_match("/(make[0-9]{0,2}.php)$/", $_SERVER[PHP_SELF]) :
        $menu1 = "make";
        break;
    case preg_match("/^(pr_request)$/", $bo_table) :
    case preg_match("/^(pr_product)$/", $bo_table) :
    case preg_match("/^(pr_jobs)$/", $bo_table) :
        $menu1 = "product";
        break;
    case preg_match("/(community.php)$/", $_SERVER[PHP_SELF]) :
    //case preg_match("/(cm_point_rank.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(cm_attendance.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/^(cm_free|cm_poll|cm_news|cm_forum|cm_story|cm_good_link|cm_jirumsin|cm_forum)$/", $bo_table) :
        $menu1 = "community";
        break;
    case preg_match("/(byulbyul.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/^(cm_country|cm_age|cm_job|cm_star|cm_blood|cm_s2x|cm_surname|cm_hobby|cm_tti)$/", $bo_table) :
        $menu1 = "byulbyul";
        break;
    case preg_match("/^(cm_gallery|cm_gallery_request|cm_dabsagi)$/", $bo_table) :
        $menu1 = "gallery";
        break;
    case preg_match("/\/company\/.*.php$/", $_SERVER[PHP_SELF]) :
    case preg_match("/^(co_notice)$/", $bo_table) :
        $menu1 = "company";
        break;
    case preg_match("/\/customer\/.*.php$/", $_SERVER[PHP_SELF]) :
        $menu1 = "customer";
        break;
    default :
        $menu1 = "";
}
unset($menu);
$menu["gnuboard4"] = array (
    array("$g4[path]/gnuboard4.php", "그누보드4", 0),
    array("$g4[path]/gnuboard/g4_license.php", "라이센스", 0),
    array("$g4[path]/gnuboard/g4_feature.php", "특징", 0),
    array("$g4[path]/gnuboard/g4_function.php", "주요기능", 0),
    array("$g4[path]/gnuboard/g4_install.php", "설치방법", 0),
    array("$g4[bbs_path]/board.php?bo_table=g4_faq", "자주하시는 질문", 0),
    array("$g4[bbs_path]/board.php?bo_table=g4_pds", "다운로드", 0, "font-weight:bold"),
    array("$g4[bbs_path]/board.php?bo_table=g4_convert", "변환기", 0),
    array("$g4[bbs_path]/board.php?bo_table=g4_main_design", "메인디자인", 0, "font-weight:bold;"),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=g4_tiptech", "팁앤테크", 0),
    array("$g4[bbs_path]/board.php?bo_table=g4_qa", "질문답변", 0),
    array("$g4[bbs_path]/board.php?bo_table=g4_use", "사용후기", 0),
    array("$g4[bbs_path]/board.php?bo_table=g4_dic", "그누사전", 0),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=g4_skin", "일반스킨", 0,"font-weight:bold"),
    array("$g4[bbs_path]/board.php?bo_table=g4_skin_basic", "기본스킨", 0,"font-weight:bold"),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=self_program", "자작프로그램", 0),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=g4_pi_club", "나라오름님의 클럽", 0),
    array("$g4[bbs_path]/board.php?bo_table=g4_pi_chameleon", "ⓒⓒⓒ님의 카멜레온", 0)
);

$menu["gnuboard3"] = array (
    array("$g4[path]/gnuboard3.php", "그누보드3", 0),
    array("$g4[path]/gnuboard/g3_install.php", "설치/사용매뉴얼", 0),
    array("$g4[bbs_path]/board.php?bo_table=g3_faq", "자주하시는 질문", 0),
    array("$g4[bbs_path]/board.php?bo_table=g3_pds", "다운로드", 0, "font-weight:bold"),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=g3_tiptech", "팁앤테크", 0),
    array("$g4[bbs_path]/board.php?bo_table=g3_qa", "질문답변", 0),
    array("$g4[bbs_path]/board.php?bo_table=g3_use", "사용후기", 0),
    array("$g4[bbs_path]/board.php?bo_table=g3_dic", "그누사전", 0),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=g3_skin", "일반스킨", 0,"font-weight:bold"),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=g3_pi_club", "클럽", 0),
    array("$g4[bbs_path]/board.php?bo_table=g3_pi_jhooncafe", "제이훈 카페", 0),
    array("$g4[bbs_path]/board.php?bo_table=g3_pi_funblog", "FUN BLOG", 0)
);

$menu["webstudy"] = array(
    array("$g4[path]/webstudy.php", "웹스터디", 0),
    array("$g4[bbs_path]/board.php?bo_table=pl_linux", "Linux", 0),
    array("$g4[bbs_path]/board.php?bo_table=pl_apache", "Apache", 0),
    array("$g4[bbs_path]/board.php?bo_table=pl_mysql", "MySQL", 0),
    array("$g4[bbs_path]/board.php?bo_table=pl_php", "PHP", 0),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=pl_dhtml_javascript", "[D]HTML+JavaScript", 0),
    array("$g4[bbs_path]/board.php?bo_table=pl_css", "CSS", 0),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=pl_photoshop", "PhotoShop", 0),
    array("$g4[bbs_path]/board.php?bo_table=pl_illust", "illust", 0),
    array("$g4[bbs_path]/board.php?bo_table=pl_flash", "Flash", 0),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=pl_etc", "기타", 0)
);

$menu["youngcart"] = array (
    array("$g4[path]/youngcart.php", "영카트", 0),
    array("$g4[path]/youngcart/yc_license.php", "라이센스", 0),
    array("$g4[path]/youngcart/yc_feature.php", "특징", 0),
    array("$g4[path]/youngcart/yc_function.php", "주요기능", 0),
    array("$g4[path]/youngcart/yc_demo.php?demo=user", "사용자데모", 1),
    array("$g4[path]/youngcart/yc_demo.php?demo=admin", "운영자데모", 1),
    array("http://demo.sir.co.kr/youngcart/?doc=manual/youngcart/index.php", "운영매뉴얼", 1),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=yc_faq", "자주하시는 질문", 0),
    array("$g4[bbs_path]/board.php?bo_table=yc_buy", "구입전 질문", 0, "font-weight:bold"),
    array("$g4[path]/customer/purchase.php", "구입하기", 0, "font-weight:bold;"),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=yc_good_site", "추천사이트", 0, "font-weight:bold"),
    array("$g4[path]/youngcart/yc_partner.php", "파트너정책", 0),
    array("$g4[path]/youngcart/yc_pg.php", "전자결제연동", 0),
    array("$g4[path]/youngcart/yc_sms.php", "SMS 연동", 0),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=yc_tiptech", "팁앤테크", 0),
    array("$g4[bbs_path]/board.php?bo_table=yc_qa", "질문답변", 0, "font-weight:bold"),
    array("$g4[bbs_path]/board.php?bo_table=yc_pds", "자료실", 0),
    array("$g4[path]/README_CART", "패치내역", 1),
);

$menu["make"] = array (
    array("$g4[path]/youngcart/make.php", "창업절차", 0),
    array("$g4[path]/youngcart/make01.php", "아이템 선정", 0),
    array("$g4[path]/youngcart/make02.php", "공급처 확보", 0),
    array("$g4[path]/youngcart/make03.php", "도메인 등록", 0),
    array("$g4[path]/youngcart/make04.php", "호스팅 신청", 0),
    array("$g4[path]/youngcart/make05.php", "사업자 등록", 0),
    array("$g4[path]/youngcart/make06.php", "통신판매업 신고", 0),
    array("$g4[path]/youngcart/make07.php", "부가통신사업 신고", 0),
    array("-", "", 0),
    array("$g4[path]/youngcart/make08.php", "쇼핑몰 구축", 0, "font-weight:bold"),
    array("-", "", 0),
    array("$g4[path]/youngcart/make09.php", "결제시스템 연동", 0),
    array("$g4[path]/youngcart/make10.php", "검색엔진 등록", 0),
    array("$g4[path]/youngcart/make11.php", "배송업체 연동", 0),
    array("$g4[path]/youngcart/make12.php", "광고 및 홍보", 0)
);

$menu["product"] = array (
    array("$g4[bbs_path]/board.php?bo_table=pr_request", "의뢰자", 0),
    array("$g4[bbs_path]/board.php?bo_table=pr_request&sca=프로그램", "프로그램 제작의뢰", 0),
    array("$g4[bbs_path]/board.php?bo_table=pr_request&sca=홈페이지", "홈페이지 제작의뢰", 0),
    array("$g4[bbs_path]/board.php?bo_table=pr_request&sca=쇼핑몰", "쇼핑몰 제작의뢰", 0),
    array("$g4[bbs_path]/board.php?bo_table=pr_request&sca=디자인", "디자인 제작의뢰", 0),
    array("$g4[bbs_path]/board.php?bo_table=pr_request&sca=플래쉬", "플래쉬 제작의뢰", 0),
    array("$g4[bbs_path]/board.php?bo_table=pr_request&sca=기타", "기타 의뢰", 0),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=pr_product", "제작자 홍보", 0),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=pr_jobs", "구인/구직", 0)
);

$menu["community"] = array (
    array("$g4[path]/community.php", "커뮤니티", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_free", "자유게시판", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_poll", "사용자설문", 0, "font-weight:bold"),
    array("$g4[bbs_path]/board.php?bo_table=cm_forum", "포럼", 0, "font-weight:bold"),
    array("$g4[bbs_path]/board.php?bo_table=cm_news", "뉴스토론", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_story", "끝말잇기", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_good_link", "추천링크", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_jirumsin", "지름신", 0),
    //array("$g4[path]/community/cm_point_rank.php", "포인트 순위", 0),
    //array("-", "", 0),
    array("-", "", 0),
    array("$g4[path]/community/cm_attendance.php", "출석부", 0)
);

$menu["byulbyul"] = array (
    array("$g4[path]/byulbyul.php", "별별 모임", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_country", "지역별 모임", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_age", "연령별 모임", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_hobby", "취미별 모임", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_tti", "띠별 모임", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_star", "별자리별 모임", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_s2x", "성(性)별 모임", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_surname", "성(姓)별 모임", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_blood", "혈액형별 모임", 0),
);

$menu["gallery"] = array (
    array("$g4[bbs_path]/board.php?bo_table=cm_gallery", "갤러리", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=자연/풍경", "자연/풍경", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=동물/식물", "동물/식물", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=건축/시설물", "건축/시설물", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=도로/교통", "도로/교통", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=스포츠/레저", "스포츠/레저", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=문화/예술", "문화/예술", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=사물/용품", "사물/용품", 0),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_gallery_request", "이미지 요청", 0, 'font-weight:bold;'),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=cm_dabsagi", "예전 갤러리", 0)
);

$menu["customer"] = array (
    array("$g4[path]/customer/support.php", "고객지원", 0),
    array("$g4[path]/customer/support.php", "고객지원", 0),
    array("-", "", 0),
    array("$g4[path]/customer/mypage.php", "마이페이지", 0, "font-weight:bold"),
    array("-", "", 0),
    array("$g4[path]/customer/solution_stipulation.php", "솔루션 사용약관", 0),
    array("-", "", 0),
    array("$g4[path]/customer/purchase.php", "솔루션 구입", 0, "font-weight:bold; color:#ff6600;")
);

$menu["company"] = array (
    array("", "회사", 0),
    array("$g4[path]/company/introduce.php", "회사 소개", 0),
    array("$g4[path]/company/history.php", "회사 연혁", 0),
    array("$g4[path]/company/location.php", "오시는 길", 0),
    array("-", "", 0),
    array("$g4[bbs_path]/board.php?bo_table=co_notice", "공지사항", 0),
    array("-", "", 0),
    array("$g4[path]/company/stipulation.php", "홈페이지 이용약관", 0),
    array("$g4[path]/company/privacy.php", " 개인정보 보호정책", 0),
    array("$g4[path]/company/disclaimer.php", "책임의 한계와 법적고지", 0),
    array("$g4[path]/company/rejection.php", "이메일주소 무단수집 거부", 0),
    array("-", "", 0),
    array("$g4[path]/company/point_policy.php", "포인트정책", 0)
);
?>

<script language="JavaScript">
var save_layer = null;
function layer_view(link_id, menu_id, opt, x, y)
{
    var link = document.getElementById(link_id);
    var menu = document.getElementById(menu_id);

    //for (i in link) { document.write(i + '<br/>'); } return;

    if (save_layer != null)
    {
        save_layer.style.display = "none";
        selectBoxVisible();
    }

    if (link_id == '')
        return;

    if (opt == 'hide')
    {
        menu.style.display = 'none';
        selectBoxVisible();
    }
    else
    {
        x = parseInt(x);
        y = parseInt(y);
        menu.style.left = get_left_pos(link) + x;
        menu.style.top  = get_top_pos(link) + link.offsetHeight + y;
        menu.style.display = 'block';
    }

    save_layer = menu;
}

function preload() {
  if (!document.images) return;
  var ar = new Array();
  var arguments = preload.arguments;
  for (var i = 0; i < arguments.length; i++) {
    ar[i] = new Image();
    ar[i].src = arguments[i];
  }
  //alert(arguments.length);
}

document.onload = preload('<?=$g4[path]?>/img/bg_arrow.gif', '<?=$g4[path]?>/img/menu_arrow.gif', '<?=$g4[path]?>/img/bg_submenu.gif', '<?=$g4[path]?>/img/menu_line.gif');
</script>

<script language="javascript" src="<?=$g4[path]?>/js/sideview.js"></script>

<style>
.bg_menu1 { height:22px;
            border-left-width:1px; border-left-style:solid; border-left-color:#9DADE5;
            border-right-width:1px; border-right-style:solid; border-right-color:#9DADE5;
            padding-left:15px;
            padding-right:15px;
            background-color:#F6FAFF; }
.bg_line1 { height:1px; background-color:#9DADE5; }

.bg_title { background-image:url('<?=$g4[path]?>/img/lm_category.gif');
            width:179px;
            height:48px;
            padding-left:25px;
            padding-top:4px; }
.bg_menu2 { height:22px;
            padding-left:25px; }
.bg_line2 { background-image:url('<?=$g4[path]?>/img/dot.gif'); height:3px; }
</style>


<table width='900' cellpadding=0 cellspacing=0 align=center border=0>
<!-- 상단 테이블 -->
    <tr onmouseover="layer_view('','','','','')">
        <!-- 로고 -->
        <td rowspan=2 height=60 width=70><a href='<?=$g4[path]?>/' target=_top><img src='<?=$g4[path]?>/img/logo.gif' border=0 width=70 height=45></a></td>
        <!-- 로고 -->
        <!-- 상단 메뉴 -->
        <td align=right valign=bottom width=830>
            <?
            $curr = sql_fetch(" select sum(IF(mb_id<>'',1,0)) as mb_cnt, count(*) as total_cnt from $g4[login_table]  where mb_id <> '$config[cf_admin]' ");
            ?>
            <span class=small>
            <a href="<?=$g4[bbs_path]?>/current_connect.php">현재접속자(<?=($curr[total_cnt]>=50?($curr[total_cnt]>=100?"<font color=#ff8800><b>$curr[total_cnt]</b></font>":"<b>$curr[total_cnt]</b>"):$curr[total_cnt]);?>)</a> :
            <a href="<?=$g4[bbs_path]?>/new.php">최근게시물</a> :
            <a href="<?=$g4[path]?>/customer/mypage.php">마이페이지</a>  :
            <a href='<?=$g4[path]?>/customer/support.php'>고객지원</a>
            </span>
        </td>
        <!-- 상단 메뉴 -->
    </tr>
    <tr onmouseover="layer_view('','','','','')">
        <form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);" style="margin:0px;">
        <input type="hidden" name="sfl" value="wr_subject||wr_content">
        <input type="hidden" name="sop" value="and">
        <td align=right>
            <? if ($is_admin=="super") { echo "<input class=ed style='height:17px;' type=text id='runtime'>"; } ?>
            <input type=text size=15 class=ed name=stx style='height:17px;'> <input type=image src='<?=$g4[path]?>/img/search.gif' border=0 align=absmiddle width=28 height=16>
            <script language="JavaScript">
            function fsearchbox_submit(f)
            {
                if (f.stx.value == '')
                {
                    alert("검색어를 입력하세요.");
                    f.stx.select();
                    f.stx.focus();
                    return;
                }

                // 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
                var cnt = 0;
                for (var i=0; i<f.stx.value.length; i++)
                {
                    if (f.stx.value.charAt(i) == ' ')
                        cnt++;
                }

                if (cnt > 1)
                {
                    alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
                    f.stx.select();
                    f.stx.focus();
                    return;
                }

                f.action = "<?=$g4[bbs_path]?>/search.php";
                f.submit();
            }
            </script>
        </td>
        </form>
        <!-- 전체 검색 end -->
    </tr>
    <tr>
        <!-- 탑 메뉴 -->
        <td colspan=2 height=35 style='padding-left:4px;'>
            <?
            $on_off_gnuboard4 =  ($menu1 == "gnuboard4") ? "on" : "off";
            $on_off_gnuboard3 =  ($menu1 == "gnuboard3") ? "on" : "off";
            $on_off_youngcart =  ($menu1 == "youngcart") ? "on" : "off";
            $on_off_customer =  ($menu1 == "customer") ? "on" : "off";
            $on_off_product =  ($menu1 == "product") ? "on" : "off";
            $on_off_make =  ($menu1 == "make") ? "on" : "off";
            $on_off_webstudy =  ($menu1 == "webstudy") ? "on" : "off";
            $on_off_community =  ($menu1 == "community") ? "on" : "off";
            $on_off_byulbyul =  ($menu1 == "byulbyul") ? "on" : "off";
            $on_off_gallery =  ($menu1 == "gallery") ? "on" : "off";
            ?>
            <table width=900 cellpadding=0 cellspacing=0>
            <tr>
                <?
                function disp_top_menu($id, $x=0, $y=2)
                {
                    global $menu, $menu1, $g4;

                    if ($menu1 == $id)
                        $on_off = "on";
                    else
                        $on_off = "off";

                    return "<a href='{$menu[$id][0][0]}'><img src='$g4[path]/img/menu_{$on_off}_{$id}.gif' border=0 width=76 height=35 id='id_{$id}' onmouseover=\"layer_view('id_{$id}', 'menu_{$id}', 'view', {$x}, {$y});\"></a>";
                }

                ?>
                <td width=6 background='<?=$g4[path]?>/img/bg_menu.gif'></td>
                <td width=76><?=disp_top_menu("gnuboard4")?></td>
                <td width=76><?=disp_top_menu("gnuboard3")?></td>
                <td width=76><?=disp_top_menu("youngcart")?></td>
                <td width=76><?=disp_top_menu("product")?></td>
                <td width=76><?=disp_top_menu("make")?></td>
                <td width=76><?=disp_top_menu("webstudy")?></td>
                <td width=76><?=disp_top_menu("community")?></td>
                <td width=76><?=disp_top_menu("byulbyul")?></td>
                <td width=76><?=disp_top_menu("gallery")?></td>
                <td width=210 background='<?=$g4[path]?>/img/bg_menu.gif'></td>
            </tr>
            <tr><td colspan=5 height=5></td></tr>
            </table>
            <?=print_menu1('gnuboard4', 1);?>
            <?=print_menu1('gnuboard3', 1);?>
            <?=print_menu1('youngcart', 1);?>
            <?=print_menu1('product', 1);?>
            <?=print_menu1('make', 1);?>
            <?=print_menu1('webstudy', 1);?>
            <?=print_menu1('community', 1);?>
            <?=print_menu1('byulbyul', 1);?>
            <?=print_menu1('gallery', 1);?>
            </td>
    </tr>
<!-- 상단 테이블 -->
</table>

<table width='900' cellpadding=0 cellspacing=0 align=center onmouseover="layer_view('','','','','')">
<!-- 메인 테이블 -->
    <tr>
        <td valign=top width=180>
        <!-- 왼쪽 메뉴 -->
            <table cellpadding=0 cellspacing=0>
                <tr><td align=center><?=outlogin("v11_opera")?></td></tr>
            </table>

            <div style="clear:both; padding:0 0 10 0;"></div>

            <?
            if ($menu1)
            {
                echo "<table width=179 cellpadding=0 cellspacing=0 background='{$g4[path]}/img/ca_bg.gif'>";
                echo "<tr><td class=bg_title><a href='{$menu[$menu1][0][0]}'><font color=white><b>{$menu[$menu1][0][1]}</b></font></a></td></tr>";
                echo print_menu2($menu1, 2);
                echo "<tr><td><img src='{$g4[path]}/img/ca_bottom.gif'></td></tr>";
                echo "</table>\n";
            }
            else
            {
                echo "
                <table width=179 cellpadding=0 cellspacing=0>
                <tr><td height=80><a href='$g4[path]/youngcart/yc_pg.php'><img src='$g4[path]/img/main_b01.gif' border=0 width=179 height=61></a></td></tr>
                <tr><td><a href='$g4[path]/youngcart/yc_partner.php'><img src='$g4[path]/img/main_b03.gif' border=0 width=179 height=109></a></td></tr>
                <tr><td><a href='$g4[bbs_path]/board.php?bo_table=pr_request'><img src='$g4[path]/img/main_b02.gif' border=0 width=179 height=109></a></td></tr>
                <tr><td><a href='$g4[path]/youngcart/make.php'><img src='$g4[path]/img/main_b04.gif' border=0 width=179 height=93></a></td></tr>
                <tr><td><a href='$g4[path]/customer/support.php'><img src='$g4[path]/img/main_b05.gif' border=0 width=179 height=95></a></td></tr>";

                echo "</table>";
            }
            ?>

        <!-- 왼쪽 메뉴 end -->
        </td>
        <td width=10></td>
        <td valign=top width=710>
        <!-- 메인 -->
추천
1

댓글 23개

1)  preg_match("/^(cm_country|cm_age|cm_job|cm_star|cm_blood|cm_s2x|cm_surname|cm_hobby|cm_tti)$/", $bo_table) :

2)  preg_match("/^(cm_)$/", $bo_table) :

2)처럼 하면 1)도 적용되는거 맞죠?
전체 3,309 |RSS
그누4 팁자료실 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT