2003/04/16 09:53:50     13905     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 Æ÷ÀÎÆ®°¡ Áö±ÞµË´Ï´Ù.

       

>> À¥ÆùÆ® »ç¿ë½Ã ÇÑÀÚ Áö¿ø¾ÈµÇ´Â ¹®Á¦... 04/16 13905
158 Çѹø¿¡ ¸µÅ© Ŭ¸¯½Ã Á¡¼±¾ø¾Ö´Â °Å (°£´ÜÇÔ) [1] 04/15 13784 03/30(20:17)
157 ·¹º§ ¾ÆÀÌÄÜ ¸¸µé±â 04/11 12536
156 »õâ¶ç¿ï¶§ ¸ÞÀο¡ ½ºÅ©·Ñ¹Ù ¿øÀ§Ä¡ µÇµ¹¾Æ°¡´Â°Å... 04/11 13567
155 ÃֱٰԽù°¿¡ ¶Ç´Â °Ô½ÃÆÇÁ¦¸ñ ¿· new Ç¥½Ã 04/11 24272
154 [zero] °Ô½ÃÆÇ ½ºÅ²ÀÌ »ç¿ëÁßÀÎÁö... 03/21 13050
153 Á¦·Îº¸µå ¿ÜºÎ ¹«´Ü¸µÅ© ¿Ïº® Â÷´ÜÇϱâ 03/18 14595
152 Á¦·Îº¸µå °ü¸®ÀÚ Æнº¿öµå ºÐ½Ç½Ã ÇØ°á¹æ¹ý 02/28 19195
151 À̹ÌÁö µµ±¸¸ðÀ½ °¨Ãß±â 02/28 12744
150 ´Ù¸¥ ºê¶ó¿ìÀú¸¦ ¼±ÅÃÇßÀ»¶§ ÇöÀç âÀ» ÀÚµ¿À¸·Î... 02/26 11932
149 Á¡¼± Å×ÀÌºí ¸¸µé±â 02/26 12499
148 smhsÀÇ À̹ÌÁö³×ÀÓ ¸¸µé±â °­ÁÂ(À̹ÌÁö·¹µð»ç¿ë) [3] 02/25 13355 02/26(18:56)
147 À̹ÌÁö³×ÀÓ ¸¸µé±â [4] 02/24 13196 02/28(09:06)
146 À©µµ¿ì ÆùÆ®¼³Ä¡(Áú¹®) [2] 02/18 13024 09/03(13:54)
145 [ZERO] °Ô½ÃÆÇ¿¡ ·¹º§¸»°í ³ªÀÌ·Î Á¢¼ÓÁ¦ÇÑÇϱâ!... 02/10 16371
FIRST891011121314LAST