G4 스킨인데요. 채택완료
아래내용은 G4스킨중 지식인스킨인데요. 혹시 G5에서 작동안할만한 내용이 있는걸까요?
G4스킨을 G5로 바꿔볼까 도전해봤는데 역시 무리인거 같습니다.ㅠ.ㅠ
그래도 밤샘한 시간이 아까워서 좀더 도전해보려고 문의드립니다.
질문전에 몇시간 검색하고 찾아보고 G4랑 비교하고 해봤는데 잘모르겠네요.
도움 고맙습니다.
좋은하루 되세요 :D
<?
include_once("./_common.php"); // 이부분은 절대경로( /_common.php)를 쓰면 안되는건가요?
//print_r2($GLOBALS);
if ($write[wr_2]) {
echo "<script language='javascript'>alert('이미 채택 되었습니다.');window.close();</script>";
exit;
}
$sql = " select * from $write_table
where wr_parent = '$wr_id'
and wr_id = '$comment_id' ";
$comment = sql_fetch($sql);
//print_r2($comment); exit;
//echo $sql; exit;
// 게시물번호가 같고 자신의 게시물과 같은 회원아이디라면
// 코멘트 아이디가 존재하는것이라면
if ($write[wr_id] && $write[wr_id] == $wr_id &&
$member[mb_id] && $member[mb_id] == $write[mb_id] &&
$comment[wr_id] && $comment[wr_id] == $comment_id) {
// 채택된 회원에게 포인트의 70% 만 부여함
insert_point($comment[mb_id], (int)($write[wr_1] * 0.7), "$board[bo_subject] $wr_id 답변채택", $bo_table, $wr_id, '답변채택');
$sql = " update $write_table
set wr_2 = '$comment_id',
wr_3 = '$comment[mb_id]'
where wr_id = '$wr_id' ";
sql_query($sql);
echo "<script type='text/javascript'>alert('GOOD!! CHOICE!!');window.close();</script>";
exit;
} else {
echo "<script type='text/javascript'>alert('오류');window.close();</script>";
exit;
}
?>
답변 1개
https://www.happyjung.com:6001/bbs/board.php?bo_table=lecture&wr_id=1640">https://www.happyjung.com:6001/bbs/board.php?bo_table=lecture&wr_id=1640
여기 내용 참조해서 g4를 g5로 변경해보세요.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인