| Server IP : 119.195.102.159 / Your IP : 216.73.217.134 Web Server : nginx/1.18.0 System : Linux picell 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 User : altablue ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /tmp/ |
Upload File : |
<? include "../head.php";
$row = mysql_fetch_array(mysql_query("SELECT * FROM landing_popup WHERE no='$no' LIMIT 1"));
$row['img'] = rawurlencode($row['img']);
if(!empty($row['img'])){
if ($row['link_url'] != "#") {
if ($row['link_type'] == "_self") { // 메인 창에 띄우기
$photo = "<a href='#' onclick=\"target_location('{$row['link_url']}');\"><img src='/upload/program/landing_popup/{$row['img']}' alt='{$row['contents']}' /></a>";
} else {
$photo = "<a href='{$row['link_url']}' target='{$row['link_type']}'><img src='/upload/program/landing_popup/{$row['img']}' alt='{$row['contents']}' /></a>";
}
}else if(empty($row['link_url'])){
$photo = "<a href='javascript:void(0)'><img src='/upload/program/landing_popup/{$row['img']}' alt='{$row['contents']}' /></a>";
}else {
$photo = "<a href='#' onclick='self.close();'><img src='/upload/program/landing_popup/{$row['img']}' alt='{$row['contents']}' /></a>";
}
}else{
$photo = $row['contents'];
}
// ?臾믪쪡亦?
$cookie = "pop_" . $row['no'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<link rel="stylesheet" type="text/css" href="/css/common.css" />
<link rel="stylesheet" type="text/css" href="/css/main.css" />
<script type="text/javascript" src="/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
function setCookie(name, value, expiredays) {
var todayDate = new Date();
todayDate.setDate(todayDate.getDate() + expiredays);
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWin() {
if (document.forms[0].<?=$cookie?>.checked) {
setCookie("<?=$cookie?>", "done" , 1);
}
self.close();
}
function target_location(targeturl) {
window.opener.document.location.href = targeturl;
self.close();
}
</script>
<title><?=$row['title']?></title>
<style type="text/css">
td { font-size:11px; }
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="top" height="100%" valign="top" bgcolor="#FFFFFF"><?=$photo?></td>
</tr>
<tr>
<td width="100%" height="32">
<form name="form1" style="margin:0;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="50" height="32" bgcolor="#000000" align="right" style='padding:0 5px 3px 0'><input type="checkbox" name="<?=$cookie?>"></td>
<td bgcolor="#000000"><font color="#ffffff"> 오늘하루 공지창 띄우지 않음</font></td>
<td width="70" bgcolor="#000000" align="center"><a href="#" onclick="closeWin();"><font color="#FFFFFF">[창닫기]</font></a> </td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>