팁텍 코멘트를 남겨야 다운로드가 되는 gbview.skin.php
페이지 정보
본문
gbview.skin.php 파일 다운로드 들어갈 위치에 아래 소스 삽입
<?
// 파일 업로드 설정한 값만큼 출력
$sql = " select count(*) from {$cfg[write_table_prefix]}{$bo_table}
where wr_parent_id = '$wr_id' ";
if ($member[mb_id]) {
$sql .= " and mb_id = '$member[mb_id]' ";
} else {
$sql .= " and wr_ip = '$REMOTE_ADDR' ";
}
$row = sql_fetch($sql);
// 코멘트를 남겨야 다운로드 받을 수 있음
if ($row[0] > 0 || $member[mb_level] >= $cfg[level_max]) {
for ($i=1; $i<=$cfg[file_count]; $i++) {
if (preg_match("/(\.gif|\.jp[e]*g|\.png|\.bmp)$/i", $file[$i][source])) {
continue;
}
if ($file[$i][source]) {
echo "<tr><td colspan=2 height=40> <span class=wview>Download</span> : <a href='{$file[$i][href]}'>{$file[$i][source]} ({$file[$i][size]})</a>, Down:{$file[$i][download]}</td></tr>";
}
}
}
?>
//관리자님
출처 :
<?
// 파일 업로드 설정한 값만큼 출력
$sql = " select count(*) from {$cfg[write_table_prefix]}{$bo_table}
where wr_parent_id = '$wr_id' ";
if ($member[mb_id]) {
$sql .= " and mb_id = '$member[mb_id]' ";
} else {
$sql .= " and wr_ip = '$REMOTE_ADDR' ";
}
$row = sql_fetch($sql);
// 코멘트를 남겨야 다운로드 받을 수 있음
if ($row[0] > 0 || $member[mb_level] >= $cfg[level_max]) {
for ($i=1; $i<=$cfg[file_count]; $i++) {
if (preg_match("/(\.gif|\.jp[e]*g|\.png|\.bmp)$/i", $file[$i][source])) {
continue;
}
if ($file[$i][source]) {
echo "<tr><td colspan=2 height=40> <span class=wview>Download</span> : <a href='{$file[$i][href]}'>{$file[$i][source]} ({$file[$i][size]})</a>, Down:{$file[$i][download]}</td></tr>";
}
}
}
?>
//관리자님
출처 :
첨부파일
-
gbview.skin.php (7.8K)
4회 다운로드 | DATE : 2004-07-04 09:05:12
관련링크
댓글목록
등록된 댓글이 없습니다.