|

 |
Á¦·Îº¸µå 4¿¡¼ ÇÑ±Û Ã³ºÎÆÄÀÏ ´Ù¿î·Îµå½Ã ´Ù¿î ·Îµå ¾ÈµÇ´Â Çö»ó ÇØ°á¹æ¾È
°Ô½ÃÆÇÀ» ã¾Æµµ ¸íÄêÇÑ ´äµµ¾ø°íÇØ¼ ¿ì¿¬ÁßÀ¸·Î ¼ÕÇýÁ¤´Ô²²¼ ¸®Ç÷Π´äÀ» ¿Ã¸®½Å ³»¿ëÀ» ¿©±â¿¡ ¿Ã¸³´Ï´Ù
¼ÕÇýÁ¤¾¾²²¼ ¸®Ç÷Π´ÞÀ¸½Å ³»¿ëÀ» ¿©±â¿¡ ¿Ã¸³´Ï´Ù
Á¦·Îº¸µå°¡ ¼³Ä¡µÈ °÷ÀÇ download.php ÆÄÀÏÀ» ¿À¸¼Å¼ ¾Æ·¡ºÎºÐÀ» ±×´ë·Î ºÙ¿© ³ÖÀ¸½Ã±âÇÕ´Ï´Ù
<?
/***************************************************************************
* °øÅë ÆÄÀÏ include
**************************************************************************/
include "_head.php";
if(!eregi($HTTP_HOST,$HTTP_REFERER)) die();
/***************************************************************************
* °Ô½ÃÆÇ ¼³Á¤ üũ
**************************************************************************/
// »ç¿ë±ÇÇÑ Ã¼Å©
if($setup[grant_view]<$member[level]!$is_admin) Error("»ç¿ë±ÇÇÑÀÌ ¾ø½À´Ï´Ù","login.php?id=$id&page=$page&page_num=$page_num&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&no=$no&file=zboard.php");
// ÇöÀç±ÛÀÇ Download ¼ö¸¦ ¿Ã¸²;;
mysql_query("update $t_board"."_$id set download".$filenum."=download".$filenum."+1 where no='$no'");
$data=mysql_fetch_array(mysql_query("select * from $t_board"."_$id where no='$no'"));
// ´Ù¿î·Îµå;;
$filename="file_name".$filenum;
header("location:$data[$filename]");
if($connect) {
@mysql_close($connect);
unset($connect);
}
?>
ÀÌ·¸°Ô ÀûÇô ÀÖ½À´Ï´Ù.
À̰É..
<?
/***************************************************************************
* °øÅë ÆÄÀÏ include
**************************************************************************/
include "_head.php";
if(!eregi($HTTP_HOST,$HTTP_REFERER)) die();
/***************************************************************************
* °Ô½ÃÆÇ ¼³Á¤ üũ
**************************************************************************/
// »ç¿ë±ÇÇÑ Ã¼Å©
if($setup[grant_view]<$member[level]!$is_admin) Error("»ç¿ë±ÇÇÑÀÌ ¾ø½À´Ï´Ù","login.php?id=$id&page=$page&page_num=$page_num&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&no=$no&file=zboard.php");
// ÇöÀç±ÛÀÇ Download ¼ö¸¦ ¿Ã¸²;;
mysql_query("update $t_board"."_$id set download".$filenum."=download".$filenum."+1 where no='$no'");
$data=mysql_fetch_array(mysql_query("select * from $t_board"."_$id where no='$no'"));
// ´Ù¿î·Îµå;;
$filename="file_name".$filenum;
$filename2="s_".$filename;
$filedir= $data[$filename];
$fileN= $data[$filename2];
if(strstr($HTTP_USER_AGENT, "MSIE 5.5")) {
header("Content-Type: doesn/matter");
header("Content-Disposition: filename=$fileN");
header("Content-Transfer-Encoding: binary");
header("Pragma: no-cache");
header("Expires: 0");
}
else {
Header("Content-type: file/unknown");
Header("Content-Disposition: attachment; filename=$fileN");
Header("Content-Description: PHP3 Generated Data");
header("Pragma: no-cache");
header("Expires: 0");
}
if (is_file("$filedir")) {
$fp = fopen("$filedir", "r");
if($connect) {
@mysql_close($connect);
unset($connect);
}
if (!fpassthru($fp))
fclose($fp);
}
?>
ÀÌ·¸°Ô ¹Ù²ãÁÖ½Ã¸é ¾î¶²ÆÄÀÏÀÌµç ¹«Á¶°Ç ´Ù¿î·Îµå âÀÌ ¶ß°Ô µÈ´ä´Ï´Ù. |
|
Á¦ ȨÆäÀÌÁö(Á¶ÀºÈ£ ȨÆäÀÌÁö)¿¡ ¿À½Å °ÍÀ» ȯ¿µÇÕ´Ï´Ù. ÀÌ È¨ÆäÀÌÁö´Â Á¦ °³ÀΠȨÆäÀÌÁö·Î Á¦°¡ Á÷Á¢ °ü¸®Çϰí ÀÖ½À´Ï´Ù.
Á¦ ȨÆäÀÌÁö´Â ºñ¿µ¸® ȨÆäÀÌÁöÀ̸ç ÀÚ·á Á¦°ø¸¸À» ¸ñÀûÀ¸·Î¸¸ ¸¸µé¾îÁø °ÍÀÌ ¾Æ´Ï¶ó, Á¦ °³ÀÎÀûÀÎ ÀÚ·á Á¤¸®¿Í °ü¸®ÀÇ ¸ñÀûÀ¸·Î
¸¸µé¾îÁ³À¸¹Ç·Î °¢ ¸Þ´º¸¶´Ù ÃæºÐÇÑ ÀÚ·á°¡ ¾øÀ» ¼öµµ ÀÖ½À´Ï´Ù. ÀÎÅͳÝÀ» ÅëÇØ ¼öÁýµÈ °ÍÀÌ ¸¹À¸¹Ç·Î ±× Ãâó¸¦ ¹àÇô ³õ¾Ò½À´Ï´Ù.
Ȥ½Ã ÀúÀÛ±ÇÀ̳ª ÃÊ»ó±Ç¿¡ ¹®Á¦°¡ ÀÖ´Â ÀÚ·áÀÇ °æ¿ì ¿¬¶ô ÁÖ½Ã¸é »èÁ¦ÇØ µå¸®µµ·Ï ÇϰڽÀ´Ï´Ù.
º» ȨÆäÀÌÁö¿¡ Àû¿ëµÈ ±Û²ÃÀº À©µµ¿ìÁîÀÇ '±¼¸²'ü, '¿ì¸®±Û´åÄÄ'ÀÇ '¿ì¸®»õº½', '¿ì¸®µ¸¿ò90c1' ü, '(ÁÖ)¿¹»Û±Û¾¾'ÀÇ 'ÁÁÀº_¿©Çà°¡´Â³¯-À¥'À̸ç À¯·á·Î µî·Ï »ç¿ëÁßÀÔ´Ï´Ù.
º» ȨÆäÀÌÁö¿¡ Æ÷ÇԵǰųª °Ô½ÃµÈ À̸ÞÀÏ(email)ÁÖ¼Ò°¡ À̸ÞÀÏ ¼öÁý ÇÁ·Î±×·¥À̳ª ±× ¹ÛÀÇ ±â¼úÀû ÀåÄ¡¸¦ ÀÌ¿ëÇÏ¿© ¹«´ÜÀ¸·Î ¼öÁýµÇ´Â °ÍÀ» °ÅºÎÇϸç,
À̸¦ À§¹ÝÇÒ °æ¿ì Á¤º¸Åë½Å¸Á ÀÌ¿ëÃËÁø ¹× Á¤º¸º¸È£ µî¿¡ °üÇÑ ¹ý·ü µî °ü°è ¹ý·É¿¡ ÀÇÇØ Çü»ç ó¹úµÊÀ» À¯ÀÇÇϱâ±â ¹Ù¶ø´Ï´Ù.

|
Copyright 2002
All right reserved This Homepage was Designed & Programmed By Cho Eunho
|
|
|
|