팁텍 특정게시판에 글을 남겨야 다운로드가 가능함
본문
<?
// 특정게시판에 글을 남겨야 다운로드가 가능함
$sql = " select count(*) from {$cfg[write_table_prefix]}게시판db
where wr_comment = 0
and wr_datetime >= SUBDATE(NOW(), INTERVAL 7 DAY) ";
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] || $member[mb_level] >= $cfg[level_max]) {
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][source]) {
echo "<tr><td colspan=2 height=20> <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]}게시판db
where wr_comment = 0
and wr_datetime >= SUBDATE(NOW(), INTERVAL 7 DAY) ";
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] || $member[mb_level] >= $cfg[level_max]) {
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][source]) {
echo "<tr><td colspan=2 height=20> <span class=wview>Download</span> : <a href='{$file[$i][href]}'>{$file[$i][source]} ({$file[$i][size]})</a>, Down:{$file[$i][download]}</td></tr>"; }
}
}
?>
//관리자님
출처 :
관련링크
댓글목록 0
등록된 댓글이 없습니다.