/************************************************************
index.html
************************************************************/
$start = microtime();
include 'lib.php';
// $tpl_menu, $tpl_top, $tpl_footer
include 'menu.php';
//head title ¼³Á¤
$headquery = "SELECT comp_nm|| ' - '|| keyword headtitle FROM EMEMBER_T WHERE member_id='$user'";
list($HEAD_TITLE) = ORA_SELECT($connect, $headquery);
// ¸ÞÀÎ $tpl_main
list($M_HOME_CHK, $M_COMP_TITLE,$M_TAG, $M_COMP_DESC) = ORA_SELECT($connect, "SELECT HOME_CHK, COMP_TITLE, TAG, COMP_DESC
FROM EMEMBER_T WHERE MEMBER_ID = '$user'");
if ($M_HOME_CHK != 'Y') {
header("Location: http://$user_home.en.ec21.com/comp_info.html");
exit;
}
// Ä«¿îÆ®
ORA_EXECUTE($connect, "UPDATE MEMBERCNT_T SET HOME_CNT = HOME_CNT + 1 WHERE MEMBER_ID = '$user' AND KE_KN = 'E'");
// ¿À¶óŬ ¿¬°á ÇØÁ¦
OCILogoff($connect);
$sDesc = $M_COMP_DESC;
if ($M_TAG != 'Y') {
$sDesc = ereg_replace( "<", "<", $sDesc );
$sDesc = ereg_replace( ">", ">", $sDesc );
$sDesc = ereg_replace( " ", " ", $sDesc);
$sDesc = ereg_replace( "\n", "
", $sDesc );
}
if ($HOMEIMGFN) $home_img = "

";
$tpl_main = <<
EOD;
//start of loging page view
session_register("LOG_CNT_SESSION");
if ($LOG_CNT_SESSION == 0){
$host_nm = explode( ".", $HTTP_HOST);
$cur_page = explode( "/", $PHP_SELF);
//¿µ¹®
$spage_pos = 4;
if ( $cur_page[$spage_pos] == "en")
$spage_pos = 5;
$c_code = "EN";
$c_code_dir = "ec";
// if ($host_nm[1] == "ec21")
if( strpos(strtolower($HTTP_HOST), "ec21.com") > 0 )
$action = "/app/jsp/ec/CgiLog.jsp";
else
$action = "/go/jsp/".$c_code_dir."/CgiLog.jsp";
$log_image = "\n";
$tpl_main .= $log_image;
$LOG_CNT_SESSION = 1;
}
else {
$LOG_CNT_SESSION ++;
}
//end of logging page view
include '_new.tpl';
// for testing
//echo GET_TIME($start) . ' ms';
?>