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

       

234 »çÀ̹ö ¼ö»ç´ë¿¡ ½Å°íÇϴ¹ý ÀüÈ­¹Ú»ç 04/14 14313
233 ¿öµå¹®¼­°¡ ¼Õ»óµÇ¾ú°Å³ª ¿­¸®Áö ¾ÊÀ»¶§ ÀÀ±Þóġ... ÀüÈ­¹Ú»ç 04/14 15592
232 MSNÀ¸·Î ÆÛÁö´Â ¹ÙÀÌ·¯½º Á¶½ÉÇϼ¼¿ä ÀüÈ­¹Ú»ç 04/14 13306
231 ÄÄÇ»ÅÍ ´Ù¿îÇö»ó ±Øº¹Çϱâ ÀüÈ­¹Ú»ç 04/14 13913
230 ¹«·á p2p °øÀ¯ ÇÁ·Î±×·¥ ÇÁ·ç³ª v2.7.9.9 21123 02/28 14267
229 ¾Ç¼ºÄÚµå ¹ÙÀÌ·¯½º PCÃÖÀûÈ­¸¦ Çѹ濡~ ´ÚÅ͹ÙÀÌ... 21123 02/07 14766
228 ȨÇÇ¿¡ ±¸±Û±¤°í ´Þ±â - AdSense ¸·µ¥¹«½Î 10/19 19429
227 ÀÎÅͳݿ¡¼­ ÇѱÛÅ°°¡ ¾È¸ÔÈ÷°í ¿µ¹®Å°¸¸ ³ª¿Ã¶§!... ¸·µ¥¹«½Î 10/19 15555
226 ¸ð´ÏÅÍ È­¸éÀÌ Ä¯Ä¯ÇØÁö´Â °íÀå°ú ½ºÆÄÀÌ¿þ¾î ¿¹... ¸·µ¥¹«½Î 10/19 16613
225 [°­Ãß] ȨÆäÀÌÁö ü°¨¼Óµµ Çâ»ó!!! [3] 10/04 17959 04/14(11:57)
224 ±â»ó À§¼º»çÁø 08/22 16854
223 SetEnvIf¿Í SetEnvIfNoCaseÀÇ Â÷ÀÌÁ¡ 08/22 15299
222 È®ÀåÀÚº° ¹«´Ü ¸µÅ© Â÷´ÜÇϱâ [3] 06/28 22008 11/25(13:17)
221 ÇѱÛÅ°°¡ ¾È¸ÔÈú¶§~ [1] ¸ÚÀïÀÌ 06/26 16681 08/23(00:14)
220 Æú´õ ²Ù¹Ì±â ÆÁ [1] ¸ÚÀïÀÌ 06/26 15638 01/12(12:28)
FIRST345678916LAST