2003/04/16 09:53:50     13954     0   
   À¥ÆùÆ® »ç¿ë½Ã ÇÑÀÚ Áö¿ø¾ÈµÇ´Â ¹®Á¦...
Àú´Â ¿£Áö¿À¿¡¼­ °¡Á®¿Ô´Âµ¥ °Å±â ¿Ã¸®½Å ºÐÀº
ÆùÆ®ÇǾƿ¡¼­ °¡Á®¿Ô³ª º¾´Ï´Ù. ^^
Àû¿ë´ë»óÀº Á¦·Îº¸µåÀÔ´Ï´Ù~

====================================================================================

¡Û º¸Åë À¥ÆùÆ®¸¦ »ç¿ëÇϴ ȨÆäÀÌÁö¿¡¼­ Çѹ®À» »ç¿ë½Ã¿¡ <font style=font-family:µ¸¿ò>ÑÑܹëÃ</font> ÀÌ·¸°Ô ½ºÅ¸ÀÏ ½ÃÆ®¸¦ ÁöÁ¤ÇÏÁÒ.
    ±×·¸Áö ¾ÈÀ¸¸é ±Û¾¾°¡ Á¦´ë·Î Ãâ·ÂµÇÁö ¾Ê°í ¤±¤±¤±¤± ÀÌ·±½ÄÀ¸·Î ±úÁ®¼­ ³ª¿É´Ï´Ù.
    ÀÌ°É À§Ã³·³ ½ºÅ¸ÀÏ ½ÃÆ®¸¦ »ç¿ëÇÏÁö ¾È°í ±×³É ÑÑܹëø¸ ÀԷ½à ÀÚµ¿À¸·Î ½ºÅ¸ÀϽÃÆ®¸¦ ºÎÃÄÁÖ´Â ¼Ò½ºÀÔ´Ï´Ù.


¡Û Á¦·Îº¸µå¿¡¼­ÀÇ Àû¿ë¹æ¹ý

4.1¹öÁ¯ ¶Ç´Â 4.1pl2¿¡¼­ Àû¿ëÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù. ´Ù¸¥ ¹öÁ¯¿¡¼­´Â À§Ä¡°¡ ´Ù¸¦°ÍÀÌ´Ï ÁÖÀÇÇØ Áֽʽÿä.
Á¦·Îº¸µå¿¡ º¸½Ã¸é, include µð·ºÅ丮°¡ ÀÖ°í, ±× ¾È¿¡ list_check.php ÆÄÀÏÀÌ ÀÖ½À´Ï´Ù.

list_check.php ÀÇ ¾Æ·¡ ºÎºÐÀ» ã½À´Ï´Ù. 3~4¹ø° ¶óÀο¡ ÀÖÁÒ.

if($_list_check_included) return;
$_list_check_included = true;

À§ ºÎºÐ ¾Æ·¡ ÁÙ¿¡ ¾Æ·¡ÀÇ ÇÑÀÚ º¯È¯ ÇÔ¼ö¸¦ »ðÀÔÇÕ´Ï´Ù.

/****************************************************************************************
* ÇÑÀÚº¯È¯ÇÔ¼ö  
***************************************************************************************/

if (!function_exists("on_change_hanja")) {
function on_change_hanja($src)
{
$strlen = strlen($src);
$change = "";
$check = 0;
for($i=0;$i<$strlen;$i++)
{
$code = ord($src[$i]);
if($code > 0xC9 && $code < 0xFE) //ÇÑÀÚ
{
if(!$check) {$check=1; $change.="<font face=µ¸¿ò>"; }
$change.=$src[$i]; $i++; $change.=$src[$i];
continue;
}
else if($check) {$check =0; $change.="</font>";}
if($code < 0xA1) $change.=$src[$i];
else {$change.=$src[$i]; $i++; $change.=$src[$i];}
}
return $change;
}
}
/****************************************************************************************/

±×¸®°í, ¾Æ·¡ ºÎºÐÀ» ã½À´Ï´Ù. ¹Ù·Î ¾Æ·¡¿¡ ÀÖÁÒ.

/*********************************************************************************************
* ³Ñ°ÜÁö´Â µ¥ÀÌŸ¿¡ ´ëÇÑ ÀÏ°ý Á¤¸®
********************************************************************************************/

function list_check(&$data,$view_check=0) {
global  $keyword, $sn, $ss, $sc, $setup, $member, $href, $id, $dir, $category_data, $is_admin, $_zbResizeCheck,
$name,$email,$subject, $sort, $prev_no, $no,$homepage, $memo, $hit, $vote, $ip, $comment_num, $sitelink1, $sitelink2,
$file_name1, $file_name2, $file_download1, $file_download2, $file_size1, $file_size2,
$upload_image1, $upload_image2, $category_name, $date, $reg_date, $insert, $icon, $face_image,$number,$loop_number,
$a_file_link1, $a_file_link2, $a_reply, $a_delete, $a_modify, $zbLayer,  $_zbCheckNum,
$_listCheckTime;

$_listCheckTimeStart = getmicrotime();
if($view_check) $setup[only_board]=0;

¿©±â¿¡¼­...
$_listCheckTimeStart = getmicrotime(); °ú if($view_check) $setup[only_board]=0; »çÀÌ¿¡ ¾Æ·¡ ¼Ò½º¸¦ ³ÖÀ¸¼¼¿ä.

$data[subject] = on_change_hanja($data[subject]); //Á¦¸ñÇÑÀÚº¯È¯
$data[memo] = on_change_hanja($data[memo]); //³»¿ëÇÑÀÚº¯È¯

±×·³ ÀÌ·¸°Ô µÇ°ÚÁÒ.

$_listCheckTimeStart = getmicrotime();
$data[subject] = on_change_hanja($data[subject]); //Á¦¸ñÇÑÀÚº¯È¯
$data[memo] = on_change_hanja($data[memo]); //³»¿ëÇÑÀÚº¯È¯
if($view_check) $setup[only_board]=0;

ÀÌ ¾Æ·§ºÎºÐÀÇ ³»¿ëÀº ¼öÁ¤ÇÏÁö ¾Ê¾Æµµ µË´Ï´Ù.




¡Û Á¦·Îº¸µå¿¡¼­ ÄÚ¸àÆ®¿¡ ÇÑÀÚ(Çѹ®) Àû¿ëÇϱâ

Á¦·Îº¸µå ·çÆ®¿¡ ÀÖ´Â view.php ¼öÁ¤Àü ¿øº»¼Ò½º¸¦ ±âº»À¸·Î ÇÏ¿© 289¹ø ~ 291¹ø ¶óÀÎ ¼Ò½ºÀÔ´Ï´Ù.

$_skinTimeStart = getmicrotime();
include $dir."/view_comment.php";
$_skinTime += getmicrotime()-$_skinTimeStart;

À§ÀÇ ¼Ò½º ¹Ù·Î À­ÁÙ¿¡ Áï, 288¹ø° ¶óÀο¡ ¾Æ·¡¿Í °°ÀÌ ¼Ò½º¸¦ Ãß°¡ÇØ ÁÖ½Ã¸é µË´Ï´Ù.

$comment_name=on_change_hanja($comment_name);
$c_memo=on_change_hanja($c_memo);

ÀÌ·¸°Ô ÇϽøé ÄÚ¸àÆ®ÀÇ ³»¿ë¿¡ ÇÑÀÚ°¡ À־ Á¤»óÀûÀÎ ÇÑÀÚ·Î º¸¿©Áý´Ï´Ù.




¡Û Á¦·Îº¸µå ÃֱٰԽù°¿¡ ÇÑÀÚ(Çѹ®)»ç¿ëÇϱâ

¸ÕÀú, Á¦·Îº¸µå ·çÆ®¿¡ ÀÖ´Â outlogin.php ÆÄÀÏÀ» ¿­¾î¼­ Á¦ÀÏ À­ºÎºÐ¿¡ ¾Æ·¡ÀÇ ÇÔ¼ö¸¦ Ãß°¡ÇÕ´Ï´Ù.

<?
if (!function_exists("on_change_hanja")) {
function on_change_hanja($src)
{
$strlen = strlen($src);
$change = "";
$check = 0;
for($i=0;$i<$strlen;$i++)
{
$code = ord($src[$i]);
if($code > 0xC9 && $code < 0xFE) //ÇÑÀÚ
{
if(!$check) {$check=1; $change.="<font face=µ¸¿ò>"; }
$change.=$src[$i]; $i++; $change.=$src[$i];
continue;
}
else if($check) {$check =0; $change.="</font>";}
if($code < 0xA1) $change.=$src[$i];
else {$change.=$src[$i]; $i++; $change.=$src[$i];}
}
return $change;
}
}
?>

À§ ÇÔ¼ö¸¦ Ãß°¡Çϱâ Àü ¿øº»¼Ò½º¸¦ ±âº»À¸·Î ÇÏ¿©

210¹ø° ¶óÀÎ : $memo = stripslashes($data[memo]);

¹Ù·Î ¹Ø¿¡ ¾Æ·¡ ¼Ò½º¸¦ Ãß°¡Çϼ¼¿ä.

$memo = on_change_hanja($memo);

232¹ø° ¶óÀÎ : $subject = cut_str(stripslashes($data[subject]),$textlen)."</font></b>";

¹Ù·Î ¹Ø¿¡ ¾Æ·¡ ¼Ò½º¸¦ Ãß°¡Çϼ¼¿ä.

$subject = on_change_hanja($subject );

À§¿Í °°ÀÌ ¼öÁ¤ÇϽøé ÃֱٰԽù°¿¡¼­ Á¤»óÀûÀ¸·Î ÇÑÀÚ»ç¿ëÀÌ °¡´ÉÇÕ´Ï´Ù.


À§´Â ±âº»ÀûÀÎ ÆÄÀÏÀ» ¼öÁ¤Çß±¸¿ä.
³ª¸ÓÁö ȸ¿øÁ¤º¸ÆÄÀÏ, ÂÊÁöº¸³»±â, ÇöÀçÁ¢¼ÓÀÚµî....
ÀÚüÆÄÀÏ°ú Ç÷¯±×Àε ÀÌ¿Í °°ÀÌ ¼öÁ¤ÇÏ½Ã¸é µÊ´Ï´Ù.
³ª¸ÓÁö´Â ¾Ë¾Æ¼­ Çϼ¼¿ä. ¸ðµç ÆÄÀÏ¿¡ Àû¿ëÇϱ⿣ ¼öÁ¤ÇÒ ÆÄÀÏÀÌ ³Ê¹« ¸¸¾Æ¼­...-_-;

Ãâó : http://pia.cc/ - ÆùÆ®ÇǾÆ
   
ÄÚ¸àÆ®¸¦ ÀÛ¼ºÇϽøé 2 Æ÷ÀÎÆ®°¡ Áö±ÞµË´Ï´Ù.

       

219 ´ÜÃàÅ°¿¡ °üÇÑ ÆÁ ¸ÚÀïÀÌ 06/26 13236
218 ȨÆäÀÌÁö¸¦ ¸¸µé¶§ ¾Ë¾ÆµÎ¸é À¯¿ëÇÑ ¹«·á»çÀÌÆ® ... ¸ÚÀïÀÌ 06/26 25944
217 À½¾Ç »çÀÌÆ®¿¡¼­ ¼Ò½º °¡Á®¿À´Â ¹æ¹ý ¸ÚÀïÀÌ 06/26 14170
216 IIS¿¡ PHP+MySQL¸¦ ¼³Ä¡ÇÏÀÚ. À£Æ® 06/22 18077
215 [XPÆÁ4] ½Ç½Ã°£ µ¿¿µ»óÀ» ²÷±è¾øÀÌ °¨»óÇϱ⠿ÀºñÅ»1 06/22 13537
214 [XPÆÁ3] ¿À·ù º¸°í(MSÀü¼Û)â ³ªÅ¸³ªÁö ¾Ê°Ô Çϱâ... ¿ÀºñÅ»1 06/22 13357
213 [XPÆÁ2] ÀÎÅͳÝÀͽºÇ÷η¯ ·Îµù¼Óµµ Ç⼧¹ý ¿ÀºñÅ»1 06/22 13499
212 [XPÆÁ1] DOS¸ðµå¿¡¼­ XP¼³Ä¡ÇÏ´Â ¹æ¹ý ¿ÀºñÅ»1 06/22 13320
211 CD·ÒÀÇ ÀÚµ¿ ÀÛµ¿ ±â´É ¾ø¾Ö±â ¿ÀºñÅ»1 06/22 13321
210 [TIP] À¯¿ëÇÑ ÆÁ ¸ÚÀïÀÌ 06/16 19146
209 ºÒ¹ý¼ÒÇÁÆ®¿þ¾î °Ë»öÇϱâ. [1] ¸ÚÀïÀÌ 06/16 21900 06/21(01:52)
208 °øÂ¥¿¡¿ä^^ [2] ¸ÚÀïÀÌ 06/10 13854 06/21(01:51)
207 PCS ÅëÈ­Ç°Áú Çâ»ó ¹æ¹ý [1] ¸ÚÀïÀÌ 06/10 12831 06/21(01:52)
206 PCS ÅëÈ­½Ã ±×³É ¹ö¸®´Â 10ÃÊ ¸ÚÀïÀÌ 06/10 12275
205 ¹÷½º¹ÂÁ÷ À½¾ÇÁÖ¼Ò ¾Ë¾Æ³»±â ¸ÚÀïÀÌ 06/10 13170
FIRST4567891017LAST