½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
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'] : "",




ÀÌ·¸°Ô Çϸé ? ¾ø´Â ±ò²ûÇÑ ÁÙÀÓ±ÛÀÌ Ãâ·ÂµË´Ï´Ù.
¹°·Ð ... µµ ©¸°±Û¿¡¼­¸¸ Ç¥½Ã°¡ µÇ±¸¿ä.


ÁÁÀº ÇÏ·çµÇ¼¼¿ä.
Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û Ã¥À» º¸´Ù°¡ Áú¹®À» µå¸³´Ï´Ù. ´äº¯ ºÎŹÇÕ´Ï´Ù.*^^* 2002-06-11 13:17:20
´ÙÀ½°Ô½Ã±Û ¾È³çÇϼ¼¿ä. óÀ½ ÇÏ´Â Áú¹®À̳׿ä. cgi¿Í c¿¡ °üÇÑ... 2002-06-12 15:07:09