include "../lib/link";
if($act == 'close') {
if($mode != 'admin') {
if($interval == 'next') {
$tm = 0;
} else if($interval == '1day') {
$current = getDate();
$tm = time()+mktime(23,59,59,$current[mday],$current[mon],$current[year]) - mktime($current[hours],$current[minutes],$current[seconds],$current[mday],$current[mon],$current[year]);
}
setcookie("popupCode[$code]", "done", $tm, "/", ereg_replace("www.","",$HTTP_HOST));
}
echo("");
exit;
}
$q1 = mysqlQuery(" select * from n_popup where code = $code ");
$c1 = mysqlFetch($q1);
if($c1[content_type] == 'text') {
$c1[win_body] = htmlspecialchars($c1[win_body]);
$c1[win_body] = nl2br($c1[win_body]);
}
echo("
$COMPANY_NAME
$c1[win_body]
");
if($c1[cookie_interval] != '') {
if($c1[cookie_interval] == 'next') {
$cookieWords = "´ÙÀ½ ¹æ¹®½Ã±îÁö ÀÌ Ã¢À» ¿Áö ¾ÊÀ½";
} else if($c1[cookie_interval] == '1day') {
$cookieWords = "¿À´Ã ÇϷ絿¾È ÀÌ Ã¢À» ¿Áö ¾ÊÀ½";
}
echo("
");
}
?>
/*----------------------------------------------------------------
ÆÄ ÀÏ ¸í : popupView.html
------------------------------------------------------------------
»ç ¿ë ¿ä ¾à : [ÀϹÝ] ÆË¾÷³»¿ëÆäÀÌÁö
------------------------------------------------------------------
°³ ¹ß ÀÚ : ±è¿ìÇö
------------------------------------------------------------------
µð ÀÚ ÀÎ : ±è¿ìÇö
------------------------------------------------------------------
Á¦ÀÛ ½ÃÀÛÀÏ : 2003/05/06
------------------------------------------------------------------
¼ö Á¤ ³» ¿ë : ¼öÁ¤ÀÏ :
¼öÁ¤ÀÚ :
³» ¿ë :
------------------------------------------------------------------*/
?>