\]/i", "", $content);
if($log_comment['wr_log'] && !$is_admin) {
// 로그 (탐색 / 조합 등의 액션 수행)의 흔적이 있을 경우
// 관리자가 아니면 삭제 불가
$is_delete = false;
}
if($log_comment['wr_id'] != $log_comment['wr_id'] && ($log_comment['is_reply'] || $log_comment['is_edit'] || $log_comment['is_del'])) {
// 답변, 수정, 삭제가 가능할 경우
// 또한, 본문의 id와 코멘트의 id가 다를 경우 (같을 경우엔 로그의 상단에 있는 컨트롤을 통해 액션 수행이 가능하다)
$query_string = str_replace("&", "&", $_SERVER['QUERY_STRING']);
if($w == 'cu') {
$sql = " select wr_id, wr_content from $write_table where wr_id = '$indexd' and wr_is_comment = '1' ";
$cmt = sql_fetch($sql);
$c_wr_content = $cmt['wr_content'];
}
$c_reply_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=c#bo_vc_w_'.$list_item['wr_id'];
$c_edit_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=cu#bo_vc_w_'.$list_item['wr_id'];
}
// 캐릭터 정보 출력
$is_comment_owner = false;
$comment_owner_front = ""; // 자기 로그 접두문자
$comment_owner_behind = ""; // 자기 로그 접미문자
if(!$log_comment['wr_noname']) {
if(is_file(G5_DATA_PATH."/site/ico_admin") && $config['cf_admin'] == $log_comment['mb_id']) {
// 관리자 아이콘이 존재하고, 관리자와 작성자가 동일 할 경우
// 관리자 아이콘을 출력한다.
$log_comment['ch_name'] = "";
} else {
// 캐릭터 정보 로드
$ch = get_character($log_comment['ch_id']);
if($ch['ch_id']) {
// 캐릭터 정보가 존재할 경우, 캐릭터 정보를 추가한다.
// 캐릭터 링크
// + 캐릭터 소속 아이콘
// + 캐릭터 종족 아이콘
// + 캐릭터 이름
/*$log_comment['ch_name'] = "
".get_side_icon($ch['ch_side']).get_class_icon($ch['ch_class'])."
".get_title_image($log_comment['ti_id'])."
".($log_comment['wr_subject'] ? $log_comment['wr_subject'] : "GUEST")."
";*/
$log_comment['ch_name'] = "
".get_side_icon($ch['ch_side'])."
".get_title_image($log_comment['ti_id'])."
".($ch['ch_name'] ? $ch['ch_name'] : "GUEST")."
";
} else {
// 캐릭터 정보가 존재하지 않을 경우, 빈값을 출력한다.
$log_comment['ch_name'] = "";
}
}
// 오너 정보 출력
if($log_comment['mb_id']) {
$log_comment['name'] = "{$log_comment['wr_name']}";
} else {
$log_comment['name'] = $log_comment['wr_name'];
}
if(!$list_item['wr_noname'] && $list_item['mb_id'] == $log_comment['mb_id']) {
$is_comment_owner = true;
$comment_owner_front = $owner_front;
$comment_owner_behind = $owner_behind;
}
} else {
$is_comment_owner = false;
}
/******************************************************
위치이동 커맨드 추가
******************************************************/
$map_info = '';
if($log_comment['ma_id']) {
$ma_name = sql_fetch("select ma_name from {$g5['map_table']} where ma_id = '{$log_comment['ma_id']}'");
$map_info .= " 위치 : {$ma_name['ma_name']}";
}
/******************************************************
위치이동 커맨드 추가 종료
******************************************************/
?>
> =$comment_owner_front?> =$log_comment['ch_name']?> [=$log_comment['name']?>] =$comment_owner_behind?>
} else { ?>익명의 누군가
} ?> /****************************************************** 위치이동 커맨드 추가 ******************************************************/ echo $map_info; /****************************************************** 위치이동 커맨드 추가 종료 ******************************************************/ ?>