Merge branch 'g5'
This commit is contained in:
@ -72,6 +72,10 @@ if ($stx) {
|
|||||||
if (trim($s[$i]) == '') continue;
|
if (trim($s[$i]) == '') continue;
|
||||||
|
|
||||||
$search_str = $s[$i];
|
$search_str = $s[$i];
|
||||||
|
|
||||||
|
// 인기검색어
|
||||||
|
insert_popular($field, $search_str);
|
||||||
|
|
||||||
$str .= $op1;
|
$str .= $op1;
|
||||||
$str .= "(";
|
$str .= "(";
|
||||||
|
|
||||||
@ -100,10 +104,6 @@ if ($stx) {
|
|||||||
$str .= ")";
|
$str .= ")";
|
||||||
|
|
||||||
$op1 = " {$sop} ";
|
$op1 = " {$sop} ";
|
||||||
|
|
||||||
// 인기검색어
|
|
||||||
$sql = " insert into {$g5['popular_table']} set pp_word = '{$search_str}', pp_date = '".G5_TIME_YMD."', pp_ip = '{$_SERVER['REMOTE_ADDR']}' ";
|
|
||||||
sql_query($sql, FALSE);
|
|
||||||
}
|
}
|
||||||
$str .= ")";
|
$str .= ")";
|
||||||
|
|
||||||
|
|||||||
@ -616,8 +616,7 @@ function get_sql_search($search_ca_name, $search_field, $search_text, $search_op
|
|||||||
if ($search_str == "") continue;
|
if ($search_str == "") continue;
|
||||||
|
|
||||||
// 인기검색어
|
// 인기검색어
|
||||||
$sql = " insert into {$g5['popular_table']} set pp_word = '$search_str', pp_date = '".G5_TIME_YMD."', pp_ip = '{$_SERVER['REMOTE_ADDR']}' ";
|
insert_popular($field, $search_str);
|
||||||
sql_query($sql, FALSE);
|
|
||||||
|
|
||||||
$str .= $op1;
|
$str .= $op1;
|
||||||
$str .= "(";
|
$str .= "(";
|
||||||
@ -2828,4 +2827,15 @@ function get_icode_userinfo($id, $pass)
|
|||||||
|
|
||||||
return $userinfo;
|
return $userinfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 인기검색어 입력
|
||||||
|
function insert_popular($field, $str)
|
||||||
|
{
|
||||||
|
global $g5;
|
||||||
|
|
||||||
|
if(!in_array('mb_id', $field)) {
|
||||||
|
$sql = " insert into {$g5['popular_table']} set pp_word = '{$str}', pp_date = '".G5_TIME_YMD."', pp_ip = '{$_SERVER['REMOTE_ADDR']}' ";
|
||||||
|
sql_query($sql, FALSE);
|
||||||
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user