1. bbs/download.php ¸¦ download2.php ·Î º¹»çÇؼ ¾÷·ÎµåÇÕ´Ï´Ù.
download2.php ÀÇ ³»¿ëÁß¿¡¼ ¾Æ·¡ 2°÷À» ¾Æ·¡¿Í °°ÀÌ º¯°æÇÕ´Ï´Ù.
[¿øº»] 7~8 ¶óÀÎ
if (!get_session("ss_view_{$bo_table}_{$wr_id}"))
alert("À߸øµÈ Á¢±ÙÀÔ´Ï´Ù.");
[¼öÁ¤]
//if (!get_session("ss_view_{$bo_table}_{$wr_id}"))
// alert("À߸øµÈ Á¢±ÙÀÔ´Ï´Ù.");
[¿øº»] 16~22 ¶óÀÎ
if ($member[mb_level] < $board[bo_download_level]) {
$alert_msg = "´Ù¿î·Îµå ±ÇÇÑÀÌ ¾ø½À´Ï´Ù.";
if ($member[mb_id])
alert($alert_msg);
else
alert($alert_msg . "\\n\\nȸ¿øÀ̽öó¸é ·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØ º¸½Ê½Ã¿À.", "./login.php?wr_id=$wr_id&$qstr&url=".urlencode("$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$wr_id"));
}
[¼öÁ¤]
//if ($member[mb_level] < $board[bo_download_level]) {
// $alert_msg = "´Ù¿î·Îµå ±ÇÇÑÀÌ ¾ø½À´Ï´Ù.";
// if ($member[mb_id])
// alert($alert_msg);
// else
// alert($alert_msg . "\\n\\nȸ¿øÀ̽öó¸é ·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØ º¸½Ê½Ã¿À.", "./login.php?wr_id=$wr_id&$qstr&url=".urlencode("$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$wr_id"));
//}
2. »ç¿ëÇÏ´Â board ½ºÅ²ÀÇ view.skin.php ÀÇ ¾Æ·¡ÀÇ ³»¿ëÀ» ¼öÁ¤ÇÕ´Ï´Ù.
[¿øº»]
// °¡º¯ ÆÄÀÏ
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
if ($view[file][$i][source] && !$view[file][$i][view]) {
$cnt++;
echo "<tr><td height=30 background=\"$board_skin_path/img/view_dot.gif\">";
echo " <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle border='0'>";
echo "<a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'>";
echo " <span style=\"color:#888;\">{$view[file][$i][source]} ({$view[file][$i][size]})</span>";
echo " <span style=\"color:#ff6600; font-size:11px;\">[{$view[file][$i][download]}]</span>";
echo " <span style=\"color:#d3d3d3; font-size:11px;\">DATE : {$view[file][$i][datetime]}</span>";
echo "</a></td></tr>";
}
}
[¼öÁ¤]
// °¡º¯ ÆÄÀÏ
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
if ($view[file][$i][source] && !$view[file][$i][view]) {
$cnt++;
echo "<tr><td height=30 background=\"$board_skin_path/img/view_dot.gif\">";
echo " <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle border='0'>";
echo "<a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'>";
echo " <span style=\"color:#888;\">{$view[file][$i][source]} ({$view[file][$i][size]})</span>";
echo " <span style=\"color:#ff6600; font-size:11px;\">[{$view[file][$i][download]}]</span>";
echo " <span style=\"color:#d3d3d3; font-size:11px;\">DATE : {$view[file][$i][datetime]}</span>";
//echo "</a></td></tr>";
echo "</a>";
if($member[mb_level] >= 10) { // ±ÇÇÑüũ
}
echo "</td></tr>";
}
}