Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
css
mysql
html
jquery
������
image
mobile
API
slide
°Ô½ÃÆÇ
ÇöÀçÁ¢¼ÓÀÚ ¸í
85
|
1,778
|
2002-06-11 17:05:18
´Ð³×ÀÓ
HappyCGI
À̸ÞÀÏ
hero@happycgi.com
Á¦¸ñ
phpbb¿¡¼ ÁÙÀÓ±ÛÀÚ¿¡ Àâ¹®ÀÚ ¾ø¾Ö±â ¹× ±ò²ûÈ÷ ÁÙ¿©º¸±â
³»¿ë
ÇØÇÇCGI ÀÔ´Ï´Ù.
phpbb¿¡¼ ±ÛÀÚ¸¦ ÀÚ¸¦¶§ 2¹ÙÀÌÆ® ÄÚµåÀÎ Çѱ۶§¹®¿¡ ?°¡ Á¾Á¾»ý±é´Ï´Ù.
Âü º¸±â ½ÈÁÒ.
ÀÌ ºÎºÐÀ» ¾ø¾Ù·Á¸é ¾Æ·¡¿Í °°ÀÌ ÀÛ¾÷À» ÇÕ´Ï´Ù.
includes Æú´õ³» function.php ÆÄÀÏÀ» ¿¾îº¾´Ï´Ù.
¾Æ·¡¸¦ ã½À´Ï´Ù.
[ÇÁ·Î±×·¥ÄÚµå] /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * ***************************************************************************/
¾Æ·¡¿¡ Ãß°¡¸¦ ÇÕ´Ï´Ù.
[ÇÁ·Î±×·¥ÄÚµå] function kstrcut($str, $len, $suffix){ if ($len >= strlen($str)) return $str; $klen = $len - 1; while(ord($str[$klen]) & 0x80) $klen--; return substr($str, 0, $len - (($len + $klen + 1) % 2)) . $suffix; }
index.php ÆÄÀÏÀ» ¿¾îº¾´Ï´Ù.
¾Æ·¡¸¦ ã½À´Ï´Ù.
[ÇÁ·Î±×·¥ÄÚµå] $t2_title = substr($line2['topic_title'],0,24) . "..."; $t4_title = substr($line4['topic_title'],0,22) . "..."; $t5_title = substr($line5['topic_title'],0,18) . "...";
À§ ºÎºÐÀ» ¾Æ·¡·Î ¹Ù²ß´Ï´Ù.
[ÇÁ·Î±×·¥ÄÚµå] $t2_title = kstrcut($line2['topic_title'], "24", "..."); $t4_title = kstrcut($line4['topic_title'], "22", "..."); $t5_title = kstrcut($line5['topic_title'], "18", "...");
¾Æ·¡¸¦ ã½À´Ï´Ù.
[ÇÁ·Î±×·¥ÄÚµå] 'LAST_TOPIC' => $is_auth_ary[$forum_data[$j]['forum_id']]['auth_read'] ? (strlen($forum_data[$j]['topic_title']) > $board_config['topic_title_index_size']) ? substr($forum_data[$j]['topic_title'], 0, ($board_config['topic_title_index_size'] - 2)) . "..." : $forum_data[$j]['topic_title'] : "",
¾Æ·¡·Î ¹Ù²ß´Ï´Ù.
[ÇÁ·Î±×·¥ÄÚµå] 'LAST_TOPIC' => $is_auth_ary[$forum_data[$j]['forum_id']]['auth_read'] ? (strlen($forum_data[$j]['topic_title']) > $board_config['topic_title_index_size']) ? kstrcut($forum_data[$j]['topic_title'], ($board_config['topic_title_index_size'] - 2), "...") : $forum_data[$j]['topic_title'] : "",
ÀÌ·¸°Ô Çϸé ? ¾ø´Â ±ò²ûÇÑ ÁÙÀÓ±ÛÀÌ Ãâ·ÂµË´Ï´Ù.
¹°·Ð ... µµ ©¸°±Û¿¡¼¸¸ Ç¥½Ã°¡ µÇ±¸¿ä.
ÁÁÀº ÇÏ·çµÇ¼¼¿ä.