Àú´Â ¿£Áö¿À¿¡¼ °¡Á®¿Ô´Âµ¥ °Å±â ¿Ã¸®½Å ºÐÀº
ÆùÆ®ÇǾƿ¡¼ °¡Á®¿Ô³ª º¾´Ï´Ù. ^^
Àû¿ë´ë»óÀº Á¦·Îº¸µåÀÔ´Ï´Ù~
====================================================================================
¡Û º¸Åë À¥ÆùÆ®¸¦ »ç¿ëÇϴ ȨÆäÀÌÁö¿¡¼ Çѹ®À» »ç¿ë½Ã¿¡ <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/ - ÆùÆ®ÇǾÆ
|
|