|
|
|
20년 전
|
조회 729
|
|
|
|
20년 전
|
조회 645
|
|
|
|
20년 전
|
조회 808
|
|
|
|
20년 전
|
조회 673
|
|
|
|
20년 전
|
조회 831
|
|
|
|
20년 전
|
조회 662
|
|
|
|
20년 전
|
조회 709
|
|
|
|
20년 전
|
조회 673
|
|
|
|
20년 전
|
조회 871
|
|
|
|
20년 전
|
조회 1,020
|
|
|
|
20년 전
|
조회 768
|
|
|
|
20년 전
|
조회 802
|
|
|
|
20년 전
|
조회 701
|
|
|
|
20년 전
|
조회 823
|
|
|
|
20년 전
|
조회 827
|
|
|
|
20년 전
|
조회 778
|
|
|
|
20년 전
|
조회 675
|
|
|
|
20년 전
|
조회 678
|
|
|
|
20년 전
|
조회 667
|
|
|
|
20년 전
|
조회 691
|
댓글 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)를 체크하셔서 게시판마다 다르게 적용하시면 되겠군요.