<!--?
include
(
"../inc_global.php"
);
include
(
"../inc_function.php"
);
check_authority();
$row_color
=
"#F0F8FA"
;
admin_header(
""
);
?-->
<table width=
"100%"
cellpadding=
"0"
cellspacing=
"0"
><tbody><tr>
<td valign=
"top"
style=
"padding:7 5 5 5;"
>
<table width=
"100%"
style=
"margin-bottom:3"
><tbody><tr><td width=
"44"
align=
"right"
><img src=
"../images/num_add.gif"
height=
"17"
></td><td width=
"9"
><img src=
"../images/ver_01.gif"
width=
"9"
height=
"17"
></td><td><img src=
"../images/cap_add4.gif"
height=
"17"
></td></tr></tbody></table>
<!--? print_content_line(); ?-->
<table
class
=
"content_back1"
cellpadding=
"0"
cellspacing=
"5"
width=
"100%"
style=
"background-color:#F0F0F0"
><tbody><tr><td bgcolor=
"#FFFFFF"
>
<table width=
"100%"
cellspacing=
"0"
><tbody><tr><td height=
"40"
style=
"padding:5 0 0 8"
>최근 이틀간의 리퍼러 로그입니다. 그 이전의 로그는 자동으로 삭제되며 카운터나 리퍼러 순위에는 전혀 영향을 끼치지 않습니다.</td></tr></tbody></table>
[
".$keyword."
] ";
$comp_refer
= str_cut(
$decoded_refer
,100 - (
strlen
(
$keyword
)/2),0);
}
if
(
$isUA
) {
}
else
{
?>
<table width=
"100%"
cellspacing=
"0"
><!--?
$sql
=
"select no, refer, regdate from t3_"
.
$dbid
.
"_referlog order by no desc"
;
$result
= @mysql_query(
$sql
);
while
(list(
$no
,
$refer
,
$regdate
) = @mysql_fetch_array(
$result
)) {
if
(
substr
(
$refer
,0,4) !=
"http"
)
$isUA
= true;
else
$isUA
= false;
$decoded_refer
= rawurldecode(
$refer
);
if
(!is_utf8(
$decoded_refer
))
{
$decoded_refer
= iconv(
"euc-kr"
,
"utf-8"
, rawurldecode(
$refer
));
}
$keyword
= false;
if
(preg_match(
'/\W(q|query|p|k|stag|keyword|search|stext|nlia|aqa|wd)(?:=|%3D)([^&]+)/i'
,
$decoded_refer
,
$matches
))
$keyword
= urldecode(rawurldecode(
$matches
[2]));
else
if
(
strpos
(
$mother
[
'host'
],
'yahoo.'
) !== false && preg_match(
'/\Wp=([^&]+)/i'
,
$decoded_refer
,
$matches
))
$keyword
= urldecode(rawurldecode(
$matches
[1]));
else
if
(preg_match(
'@/search/(?:\w+/)*([^/?]+)@i'
,
$decoded_refer
,
$matches
))
$keyword
= urldecode(rawurldecode(
$matches
[1]));
if
(!
$keyword
){
$comp_refer
= str_cut(
$decoded_refer
,100,0);
}
else
{
$keyword
= "<span style=\"font-weight: bold; color: #594\"--><tbody><tr>
<td
class
=
"rowdate"
style=
"padding:4 0 4 8;"
><font color=
"black"
><!--?=get_timevalue1(
$regdate
).
" "
.get_timevalue2(
$regdate
)?--> | </font></td>
<td><img
class
=
"ib"
src=
"../images/b_reg_spam.gif"
onclick=
"window.open('setting_spam.php?r_no=<?=$no?>','s_ac','width=800, height=530, scrollbars=1')"
></td>
<td
class
=
"rowdate"
style=
"color:#30590"
><!--?=
$keyword
?--> | <a href=
"<?=$refer?>"
target=
"_blank"
>Original</a> | <a href=
"<?=$decoded_refer?>"
target=
"_blank"
><!--?=
$comp_refer
?--></a></td>
</tr>
<!--?
}
}
?--></tbody></table>
</td></tr></tbody></table>
</td>
</tr></tbody></table>
<!--? admin_footer(
""
) ?-->