|
|
|
20년 전
|
조회 710
|
|
|
|
20년 전
|
조회 620
|
|
|
|
20년 전
|
조회 786
|
|
|
|
20년 전
|
조회 654
|
|
|
|
20년 전
|
조회 806
|
|
|
|
20년 전
|
조회 638
|
|
|
|
20년 전
|
조회 685
|
|
|
|
20년 전
|
조회 645
|
|
|
|
20년 전
|
조회 843
|
|
|
|
20년 전
|
조회 990
|
|
|
|
20년 전
|
조회 745
|
|
|
|
20년 전
|
조회 782
|
|
|
|
20년 전
|
조회 680
|
|
|
|
20년 전
|
조회 802
|
|
|
|
20년 전
|
조회 801
|
|
|
|
20년 전
|
조회 752
|
|
|
|
20년 전
|
조회 651
|
|
|
|
20년 전
|
조회 653
|
|
|
|
20년 전
|
조회 645
|
|
|
|
20년 전
|
조회 672
|
댓글 4개
if($member[mb_level] < 10) {
if($bo_table == '-100 하고싶은 테이블명') {
insert_point($member[mb_id], -100, "$board[bo_subject] $wr_file 다운");
} else if{$bo_table == '-200 하고싶은 테이블명') {
insert_point($member[mb_id], -200, "$board[bo_subject] $wr_file 다운");
}else if{$bo_table == '-300 하고싶은 테이블명1' || $bo_table == '-300 하고싶은 테이블명2') {
insert_point($member[mb_id], -300, "$board[bo_subject] $wr_file 다운");
}
}
$ss_name = "ss_down_{$bo_table}_{$wr_id}_{$index}";
if (!$_SESSION[$ss_name]) {
$sql = " update $write_table
set wr_file{$index}_download = wr_file{$index}_download + 1
where wr_id = '$wr_id' ";
if($member[mb_level] < 10) {
insert_point($member[mb_id], -100, "$board[bo_subject] $wr_file 다운"); // 다운 받을때 마다 -100점 깍임 단, 레벨 10은 포인트가 깍이지 않음
}
sql_query($sql);
session_register($ss_name);
$$ss_name = $_SESSION[$ss_name] = TRUE;
}
} else {
alert("해당 파일이나 경로가 존재하지 않습니다.");
}
} else {
alert("파일을 찾을 수 없습니다.");
}
gbdownload 에서 if 문으로 $bo_table(게시판ID)를 체크하셔서 게시판마다 다르게 적용하시면 되겠군요.