<?
// 이 파일은 새로운 파일 생성시 반드시 포함되어야 함
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$begin_time = get_microtime();

if (!$g4['title'])
    $g4['title'] = $config['cf_title'];

// 쪽지를 받았나? 
if ($member[mb_memo_call]) { 
    $mb = get_member($member[mb_memo_call], "mb_nick"); 
    sql_query(" update {$g4[member_table]} set mb_memo_call = '' where mb_id = '$member[mb_id]' "); 
  // alert($mb[mb_nick]."님으로부터 쪽지가 전달되었습니다.", $_SERVER[REQUEST_URI]);
  $memo_on = "<div style='right:0; bottom:0; position: absolute; overflow:hidden;'><script src='{$g4[path]}/js/AC_RunActiveContent-qlynick1.js' type='text/javascript'></script><script type='text/javascript'>AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','FlashVars','to_name={$mb[mb_nick]}','width','160','height','134','src','{$g4[path]}/swf/memo1','quality','high','wmode','transparent','pluginspage','http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash','movie','{$g4[path]}/swf/memo1' );</script><noscript><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='160' height='134' id='memo1' align='middle' /><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='{$g4[path]}/swf/memo1.swf' /><param name='quality' value='high' /><param name='menu' value='false' /><param  name='FlashVars' value='to_name={$mb[mb_nick]}' /><param name='wmode' value='transparent' /><embed src='{$g4[path]}/swf/memo1.swf' FlashVars='to_name={$mb[mb_nick]}' quality='high' bgcolor='#ffffff' width='160' height='134' name='memo1' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object></noscript></div>";
} 

// 현재 접속자
//$lo_location = get_text($g4[title]);
//$lo_location = $g4[title];
// 게시판 제목에 ' 포함되면 오류 발생
$lo_location = addslashes($g4['title']);
if (!$lo_location)
    $lo_location = $_SERVER['REQUEST_URI'];
//$lo_url = $g4[url] . $_SERVER['REQUEST_URI'];
$lo_url = $_SERVER['REQUEST_URI'];
if (strstr($lo_url, "/$g4[admin]/") || $is_admin == "super") $lo_url = "";

// 자바스크립트에서 go(-1) 함수를 쓰면 폼값이 사라질때 해당 폼의 상단에 사용하면
// 캐쉬의 내용을 가져옴. 완전한지는 검증되지 않음
header("Content-Type: text/html; charset=$g4[charset]");
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
header("Expires: 0"); // rfc2616 - Section 14.21
header("Last-Modified: " . $gmnow);
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
?>
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -->
<!--
//***************************************************************************************************
// 오누리빌더
//
// 프로그램 명칭 : 오누리빌더
// 제작일 : 2008-05-4
// 저작자 : 오누리
// 사이트 : http://onuri.co.kr
//***************************************************************************************************
 -->
<html>
<head>

<META http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
<META HTTP-EQUIV="imagetoolbar" CONTENT="no"></head>
<!-- <META HTTP-EQUIV="Page-Enter" CONTENT="BlendTrans(Duration=0.1)"> 
<META HTTP-EQUIV="Page-EXIT" CONTENT="BlendTrans(Duration=0.1)">  -->
<title><?=$g4['title']?></title>
<link rel="stylesheet" href="<?=$g4['path']?>/style.css" type="text/css">

<script type="text/javascript">
// 자바스크립트에서 사용하는 전역변수 선언
var g4_path      = "<?=$g4['path']?>";
var g4_bbs       = "<?=$g4['bbs']?>";
var g4_bbs_img   = "<?=$g4['bbs_img']?>";
var g4_url       = "<?=$g4['url']?>";
var g4_is_member = "<?=$is_member?>";
var g4_is_admin  = "<?=$is_admin?>";
var g4_bo_table  = "<?=isset($bo_table)?$bo_table:'';?>";
var g4_sca       = "<?=isset($sca)?$sca:'';?>";
var g4_charset   = "<?=$g4['charset']?>";
var g4_cookie_domain = "<?=$g4['cookie_domain']?>";
var g4_is_gecko  = navigator.userAgent.toLowerCase().indexOf("gecko") != -1;
var g4_is_ie     = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
<? if ($is_admin) { echo "var g4_admin = '{$g4['admin']}';"; } ?>
</script>
<script type="text/javascript" src="<?=$g4['path']?>/js/common.js"></script>
<!-- <script language="javascript" src="<?=$g4['path']?>/js/conn-ajax.js"></script> -->
<script type="text/javascript" src="<?=$g4['path']?>/js/ajax.js"></script>
<script type="text/javascript" src="<?=$g4[path]?>/js/sideview.js"></script>
</head>

<body <?=isset($g4['body_script']) ? $g4['body_script'] : "";?> bgcolor="<?=$config[cf_home_bg];?>">
<?=$memo_on?>
<a name="g4_head"></a>
