|

 |
¾Æ·¡ÀÇ ¼Ò½º¸¦ º¹»çÇÑ ÈÄ¿¡ ÇØ´ç °Ô½ÃÆÇÀÇ ½ºÅ² Æú´õ·Î µé¾î°£ ÈÄ setup.php ÆÄÀÏÀ» ¿¾î¼ ºÙ¿©³ÖÀ¸¼¼¿ä.
²À ÇÊ¿äÇÑ ÆÁÀÓ¿¡µµ ºÒ±¸ÇÏ°í ¾Æ¹«µµ ÀÌ·± ÆÁÀ» ¿Ã·Á µÎÁú ¾Ê¾Ò´õ±º¿ä.
QnA°Ô½ÃÆÇ¿¡µµ ¼ö¸¹Àº ºÐµéÀÌ °°Àº Áú¹®À» ¿Ã·È´Âµ¥µµ ¾Æ¹«µµ ´äÀ» Á¦½ÃÇÏ´Â »ç¶÷µµ ¾ø°í...
ºÐ¸í Çʿ伺À» ´À³¢°í À̰÷¿¡ Áú¹®À» ¿Ã¸° »ç¶÷ÀÌ ÀÖÀ» °ÍÀÌ°í ±×µé Áß¿¡´Â ¾Æ¸¶µµ ÀÚµ¿ »èÁ¦ ¹æ¹ýÀ» ¾Ë¾Æ³»°í ÀÚ½ÅÀº ¾²°í ÀÖÀ»ÅÙµ¥µµ Àڱ⸸ ÇØ°áÇß´Ù°í ÆÁÀ» °øÀ¯ÇÏÁö ¾Ê´Â °Í °°³×¿ä.
±×ºÐµé Âü... ¿ËÁ¹µé ÇϽʴϴÙ.
php´Â Àß ¸ð¸£Áö¸¸ 3°¡Áö ÀÏÀ» ÇÏ¸é¼ 5½Ã°£ Á¤µµ¸¸¿¡ ÇØ°áÇßÀ¸´Ï ±×¸® ¾î·Á¿î °Íµµ ¾Æ´Ï¾ú´Âµ¥ ¸»ÀÌÁÒ.
<? // ÀÏÁ¤ ±â°£ÀÌ Áö³ª¸é ÀÚµ¿À¸·Î °Ô½Ã¹°°ú ÆÄÀÏ »èÁ¦(½ÃÀÛ)
$limit_time = 2592000;// 2592000ÃÊ(30ÀÏ)
// 2592000ÃÊ(30ÀÏ) ÀÌ»ó °æ°úÇÑ °Ô½Ã¹°ÀÇ ¼ö
$howmany=mysql_fetch_array(mysql_query("select count(*) from $t_board"."_$id where (".time()." - reg_date) >= $limit_time"));
if($howmany[0]>0) {// 2592000ÃÊ ÀÌ»ó °æ°úÇÑ °Ô½Ã¹°ÀÌ ÀÖÀ» ¶§(if ½ÃÀÛ)
$kill_data_tmp=mysql_query("select * from $t_board"."_$id where (".time()." - reg_date) >= $limit_time");
while ($kill_data=mysql_fetch_array($kill_data_tmp)) {
$temp=mysql_fetch_array(mysql_query("select * from $t_board"."_$id where no='$kill_data[no]'"));
// ´ä±ÛÀÌ ¾øÀ»¶§
if(!$temp[child]) {
// ±Û»èÁ¦
mysql_query("delete from $t_board"."_$id where no='$kill_data[no]'") or Error(mysql_error());
// Ä«Å×°í¸®¿¡¼ ¼ýÀÚ Çϳª »
mysql_query("update $t_category"."_$id set num=num-1 where no='$temp[category]'",$connect);
// ÆÄÀÏ»èÁ¦
@z_unlink("./".$temp[file_name1]);
@z_unlink("./".$temp[file_name2]);
// Divison Á¤¸®
minus_division($temp[division]);
// ÀÌÀü, ´ÙÀ½±Û¿¡ ´ëÇÑ Á¤¸®
if($temp[depth]==0) {
// ÀÌÀü±ÛÀÌ ÀÖÀ¸¸é ºóÀÚ¸® ¸Þ²Þ;;;
if($temp[prev_no]) mysql_query("update $t_board"."_$id set next_no='$temp[next_no]' where next_no='$temp[no]'");
// ´ÙÀ½±ÛÀÌ ÀÖÀ¸¸é ºóÀÚ¸® ¸Þ²Þ;;;
if($temp[next_no]) mysql_query("update $t_board"."_$id set prev_no='$temp[prev_no]' where prev_no='$temp[no]'");
} else {
$temp2=mysql_fetch_array(mysql_query("select count(*) from $t_board"."_$id where father='$temp[father]'"));
// ¿øº»±ÛÀÌ ÀÖÀ¸¸é ¿øº»±ÛÀÇ ÀÚ½Ä ±ÛÀ» ¾ø¾Ú;;;
if(!$temp2[0]) mysql_query("update $t_board"."_$id set child='0' where no='$temp[father]'");
}
mysql_query("delete from $t_comment"."_$id where parent='$kill_data[no]'") or Error(mysql_error()); // ÄÚ¸àÆ®»èÁ¦
}
}
$temp=mysql_fetch_array(mysql_query("select count(*) from $t_board"."_$id",$connect));
@mysql_query("update $admin_table set total_article='$temp[0]' where name='$id'") or Error(mysql_error());
}// 2592000ÃÊ ÀÌ»ó °æ°úÇÑ °Ô½Ã¹°ÀÌ ÀÖÀ» ¶§(if ³¡)
// ÀÏÁ¤ ±â°£ÀÌ Áö³ª¸é ÀÚµ¿À¸·Î °Ô½Ã¹°°ú ÆÄÀÏ »èÁ¦(³¡)
?>
|
|
Á¦ ȨÆäÀÌÁö(Á¶ÀºÈ£ ȨÆäÀÌÁö)¿¡ ¿À½Å °ÍÀ» ȯ¿µÇÕ´Ï´Ù. ÀÌ È¨ÆäÀÌÁö´Â Á¦ °³ÀΠȨÆäÀÌÁö·Î Á¦°¡ Á÷Á¢ °ü¸®Çϰí ÀÖ½À´Ï´Ù.
Á¦ ȨÆäÀÌÁö´Â ºñ¿µ¸® ȨÆäÀÌÁöÀ̸ç ÀÚ·á Á¦°ø¸¸À» ¸ñÀûÀ¸·Î¸¸ ¸¸µé¾îÁø °ÍÀÌ ¾Æ´Ï¶ó, Á¦ °³ÀÎÀûÀÎ ÀÚ·á Á¤¸®¿Í °ü¸®ÀÇ ¸ñÀûÀ¸·Î
¸¸µé¾îÁ³À¸¹Ç·Î °¢ ¸Þ´º¸¶´Ù ÃæºÐÇÑ ÀÚ·á°¡ ¾øÀ» ¼öµµ ÀÖ½À´Ï´Ù. ÀÎÅͳÝÀ» ÅëÇØ ¼öÁýµÈ °ÍÀÌ ¸¹À¸¹Ç·Î ±× Ãâó¸¦ ¹àÇô ³õ¾Ò½À´Ï´Ù.
Ȥ½Ã ÀúÀÛ±ÇÀ̳ª ÃÊ»ó±Ç¿¡ ¹®Á¦°¡ ÀÖ´Â ÀÚ·áÀÇ °æ¿ì ¿¬¶ô ÁÖ½Ã¸é »èÁ¦ÇØ µå¸®µµ·Ï ÇϰڽÀ´Ï´Ù.
º» ȨÆäÀÌÁö¿¡ Àû¿ëµÈ ±Û²ÃÀº À©µµ¿ìÁîÀÇ '±¼¸²'ü, '¿ì¸®±Û´åÄÄ'ÀÇ '¿ì¸®»õº½', '¿ì¸®µ¸¿ò90c1' ü, '(ÁÖ)¿¹»Û±Û¾¾'ÀÇ 'ÁÁÀº_¿©Çà°¡´Â³¯-À¥'À̸ç À¯·á·Î µî·Ï »ç¿ëÁßÀÔ´Ï´Ù.
º» ȨÆäÀÌÁö¿¡ Æ÷ÇԵǰųª °Ô½ÃµÈ À̸ÞÀÏ(email)ÁÖ¼Ò°¡ À̸ÞÀÏ ¼öÁý ÇÁ·Î±×·¥À̳ª ±× ¹ÛÀÇ ±â¼úÀû ÀåÄ¡¸¦ ÀÌ¿ëÇÏ¿© ¹«´ÜÀ¸·Î ¼öÁýµÇ´Â °ÍÀ» °ÅºÎÇϸç,
À̸¦ À§¹ÝÇÒ °æ¿ì Á¤º¸Åë½Å¸Á ÀÌ¿ëÃËÁø ¹× Á¤º¸º¸È£ µî¿¡ °üÇÑ ¹ý·ü µî °ü°è ¹ý·É¿¡ ÀÇÇØ Çü»ç ó¹úµÊÀ» À¯ÀÇÇϱâ±â ¹Ù¶ø´Ï´Ù.

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