오늘본게시글 스킨 질문 정보
오늘본게시글 스킨 질문본문
스킨은 스킨자료실에서 받은거구요 . 비회원도 사용할수 있게 하구싶습니다. 도움부탁드립니다.
<?
include_once("./_common.php");
if(!$member[mb_id])
{
alert("마이페이지는 회원가입후 가능합니다.");
}
$sub_title = $member[mb_nick] . "님의 오늘 본 게시물";
include_once("./head.php");
function hanCut ($str, $cut, $fix='...') {
if (!$str || strlen($str)<=$cut*2) return $str;
$han = $eng=0;
for($i=0;$i<$cut*2;$i++) {
if(ord($str[$i])>127) $han++;
else $eng++;
}
$cut = $han+$eng+(int)$eng*0.23;
if (strlen($str)<=$cut) return $str;
return preg_replace("/(([\x80-\xff].)*)[\x80-\xff]?$/", "\\1", substr($str,0,$cut)).$fix;
}
$mb_id = $member[mb_id];
$totalcookie = count($_COOKIE["viewcookie_{$mb_id}"]) ;
?>
<table width='100%' border=0 cellpadding=0 cellspacing=0 >
<tr>
<td width='' style='padding:7px 0px 6px 10px;'><a href='<?=$g4[path]?>'>HOME</a> > 마이페이지 > 오늘 본 게시물</td>
<td width='' align='right' style='padding:7px 10px 6px 0px;'>열어본 게시물수 : <?=$totalcookie?> 건</td>
</tr>
</table>
<table border='0' width="100%" cellspacing="0" cellpadding="0" align='center'>
<tr>
<td style='background-color:#fbfbfb;border:1px solid #f3f3f3;padding:5px;'>저장하신 링크는 삭제하지 않으면 저장하신 일로부터 1일간 해당 PC의 쿠키에 보관됩니다.<br>또한 PC방 등 공공장소 또는 공용PC에서 저장하신 링크는 삭제하지 않을 경우 타인에 노출될 수 있음을 유의하시기 바랍니다.</td>
</tr>
<tr>
<td height='10'></td>
</tr>
</table>
<table width='100%' border=0 cellpadding=0 cellspacing=0 style="border-bottom:1px solid #ebebeb;border-top:2px solid #ebebeb;">
<tr align='center'>
<td width=50 style='padding:7px 0px 5px 0px;'>번호</td>
<td width=90 style='padding:7px 0px 5px 0px;'>게시판</td>
<td style='padding:7px 0px 5px 0px;'>제목</td>
<td width=120 style='padding:7px 0px 5px 0px;'><span style='color:#888888;'>날짜</span></td>
<td width=50 style='padding:7px 0px 5px 0px;'><span style='color:#888888;'>삭제</span></td>
</tr>
</table>
<form name="cookielist" method="post" style="margin:0px;">
<?
if (isset($_COOKIE["viewcookie_{$mb_id}"])) {
$k = 1 ;
foreach ($_COOKIE["viewcookie_{$mb_id}"] as $name => $c_wr_id) {
$name1 = explode("#",$c_wr_id);
$cookie_table = $name1[0];
$cookie_wr_id = $name1[1];
$cookie_datetime = $name1[2];
$cookie_datetime = str_replace("-",".",$cookie_datetime);
$m = $k++;
$c_table = sql_fetch(" select bo_subject from {$g4['board_table']} where bo_table = '$cookie_table' ");
$c_wr = sql_fetch(" select * from {$g4['write_prefix']}{$cookie_table} where wr_id = '$cookie_wr_id' ");
$cookie_subject = hanCut($c_wr[wr_subject],'100','...');
echo "
<table width='100%' border=0 cellpadding=0 cellspacing=0>
<tr align='center'>
<td width=50 style='padding:7px 0px 5px 0px;'>{$m}</td>
<td width=90 style='padding:7px 0px 5px 0px;'><a href='$g4[bbs_path]/board.php?bo_table={$cookie_table}'>{$c_table[bo_subject]}</a></td>
<td align='left'style='padding:7px 0px 5px 0px;' style='word-break:break-all;'><a href='$g4[bbs_path]/board.php?bo_table={$cookie_table}&wr_id=$cookie_wr_id' title='{$c_table[bo_subject]}' style='padding:3px 0px 3px 0px;font-size:11px;font-family:돋움;'>$cookie_subject</a></td>
<td width=120 style='padding:7px 0px 5px 0px;'>$cookie_datetime</td>
<td width=50 style='padding:7px 0px 5px 0px;'><a href=\"javascript:select_cookie('{$cookie_table}', '{$cookie_wr_id}', '{$mb_id}');\">삭제</a></td>
</tr>
<tr><td colspan=5 height=1 bgcolor=#f4f4f4></td></tr></table>";
}
} else {
echo "<table width='100%' border=0 cellpadding=0 cellspacing=0><tr align='center'><td height=100>오늘 열람하신 게시물 없음</td></tr></table>";
}
?>
</form>
<table width='100%' border=0 cellpadding=0 cellspacing=0><tr><td height=1 bgcolor=#ebebeb></td></tr></table>
<script language="JavaScript">
// 선택한 게시물 삭제
function select_cookie(ta, id, mb_id) {
var f = document.cookielist;
f.target = "hiddenframe";
f.action = "./cookie_del.php?bo_table="+ta+"&wr_id="+id+"&mb_id="+mb_id+"";
f.submit();
}
</script>
<?
include_once("./tail.php");
?>
<?
include_once("./_common.php");
if(!$member[mb_id])
{
alert("마이페이지는 회원가입후 가능합니다.");
}
$sub_title = $member[mb_nick] . "님의 오늘 본 게시물";
include_once("./head.php");
function hanCut ($str, $cut, $fix='...') {
if (!$str || strlen($str)<=$cut*2) return $str;
$han = $eng=0;
for($i=0;$i<$cut*2;$i++) {
if(ord($str[$i])>127) $han++;
else $eng++;
}
$cut = $han+$eng+(int)$eng*0.23;
if (strlen($str)<=$cut) return $str;
return preg_replace("/(([\x80-\xff].)*)[\x80-\xff]?$/", "\\1", substr($str,0,$cut)).$fix;
}
$mb_id = $member[mb_id];
$totalcookie = count($_COOKIE["viewcookie_{$mb_id}"]) ;
?>
<table width='100%' border=0 cellpadding=0 cellspacing=0 >
<tr>
<td width='' style='padding:7px 0px 6px 10px;'><a href='<?=$g4[path]?>'>HOME</a> > 마이페이지 > 오늘 본 게시물</td>
<td width='' align='right' style='padding:7px 10px 6px 0px;'>열어본 게시물수 : <?=$totalcookie?> 건</td>
</tr>
</table>
<table border='0' width="100%" cellspacing="0" cellpadding="0" align='center'>
<tr>
<td style='background-color:#fbfbfb;border:1px solid #f3f3f3;padding:5px;'>저장하신 링크는 삭제하지 않으면 저장하신 일로부터 1일간 해당 PC의 쿠키에 보관됩니다.<br>또한 PC방 등 공공장소 또는 공용PC에서 저장하신 링크는 삭제하지 않을 경우 타인에 노출될 수 있음을 유의하시기 바랍니다.</td>
</tr>
<tr>
<td height='10'></td>
</tr>
</table>
<table width='100%' border=0 cellpadding=0 cellspacing=0 style="border-bottom:1px solid #ebebeb;border-top:2px solid #ebebeb;">
<tr align='center'>
<td width=50 style='padding:7px 0px 5px 0px;'>번호</td>
<td width=90 style='padding:7px 0px 5px 0px;'>게시판</td>
<td style='padding:7px 0px 5px 0px;'>제목</td>
<td width=120 style='padding:7px 0px 5px 0px;'><span style='color:#888888;'>날짜</span></td>
<td width=50 style='padding:7px 0px 5px 0px;'><span style='color:#888888;'>삭제</span></td>
</tr>
</table>
<form name="cookielist" method="post" style="margin:0px;">
<?
if (isset($_COOKIE["viewcookie_{$mb_id}"])) {
$k = 1 ;
foreach ($_COOKIE["viewcookie_{$mb_id}"] as $name => $c_wr_id) {
$name1 = explode("#",$c_wr_id);
$cookie_table = $name1[0];
$cookie_wr_id = $name1[1];
$cookie_datetime = $name1[2];
$cookie_datetime = str_replace("-",".",$cookie_datetime);
$m = $k++;
$c_table = sql_fetch(" select bo_subject from {$g4['board_table']} where bo_table = '$cookie_table' ");
$c_wr = sql_fetch(" select * from {$g4['write_prefix']}{$cookie_table} where wr_id = '$cookie_wr_id' ");
$cookie_subject = hanCut($c_wr[wr_subject],'100','...');
echo "
<table width='100%' border=0 cellpadding=0 cellspacing=0>
<tr align='center'>
<td width=50 style='padding:7px 0px 5px 0px;'>{$m}</td>
<td width=90 style='padding:7px 0px 5px 0px;'><a href='$g4[bbs_path]/board.php?bo_table={$cookie_table}'>{$c_table[bo_subject]}</a></td>
<td align='left'style='padding:7px 0px 5px 0px;' style='word-break:break-all;'><a href='$g4[bbs_path]/board.php?bo_table={$cookie_table}&wr_id=$cookie_wr_id' title='{$c_table[bo_subject]}' style='padding:3px 0px 3px 0px;font-size:11px;font-family:돋움;'>$cookie_subject</a></td>
<td width=120 style='padding:7px 0px 5px 0px;'>$cookie_datetime</td>
<td width=50 style='padding:7px 0px 5px 0px;'><a href=\"javascript:select_cookie('{$cookie_table}', '{$cookie_wr_id}', '{$mb_id}');\">삭제</a></td>
</tr>
<tr><td colspan=5 height=1 bgcolor=#f4f4f4></td></tr></table>";
}
} else {
echo "<table width='100%' border=0 cellpadding=0 cellspacing=0><tr align='center'><td height=100>오늘 열람하신 게시물 없음</td></tr></table>";
}
?>
</form>
<table width='100%' border=0 cellpadding=0 cellspacing=0><tr><td height=1 bgcolor=#ebebeb></td></tr></table>
<script language="JavaScript">
// 선택한 게시물 삭제
function select_cookie(ta, id, mb_id) {
var f = document.cookielist;
f.target = "hiddenframe";
f.action = "./cookie_del.php?bo_table="+ta+"&wr_id="+id+"&mb_id="+mb_id+"";
f.submit();
}
</script>
<?
include_once("./tail.php");
?>
댓글 전체
젤 위쪽에 있는 아래 구문만 없애면 될 것 같은데요?
if(!$member[mb_id]) ~~~
if(!$member[mb_id]) ~~~