ÇöÀçÁ¢¼ÓÀÚ
: 1 (ȸ¿ø 0)
¹÷½º4·Î »çÀÌÆ® Á¦ÀÛ?
»çÀÌÆ®°¡ ¹¹¾ß?
¸¸µé¾î º¼²¨¾ß
±âÁ¸²¨ ¾÷±ÛÇÒ°Ü
¸Ó¸®¾ÆÆÛ. ¹¯Áö¸¶ ¤Ð¤Ð..
86
84
395
37,577
¸ñ·Ïº¸±â
Á¦·Î4 ½ºÅ²À» ¹÷½º4 ½ºÅ²À¸·Î ¾÷±ÛÇϱâ
¾ÆºüºÒ´ç
2009-11-27 13:37:30, Á¶È¸ :
853
, ̵̧ :
0
- view_comment.php
(1) ¾Õ¿¡ ¾Æ·¡ Äڵ带 ³Ö½À´Ï´Ù. À̰ÍÀº ÄÚ¸àÆ®¸¦ Çѹ濡 ã±â À§ÇѰſ¡¿ä.
<a name="c_<?=$comment_id?>"></a>
(2) ´äº¯´Þ±â, ¼öÁ¤Çϱ⠹öưÀÇ ¸µÅ©´Â ¾Æ·¡¿Í °°½À´Ï´Ù.
Á¦·Î4¿¡ ´äº¯/¼öÁ¤ ±â´ÉÀÌ ¾ø¾î¼ °³º° ¼öÁ¤ÀÌ µÇ´Ù°¡ º¸´Ï ¸íĪÀÌ ¸ðµÎ ´Ù¸£´õ¶ó±¸¿ä.
$a_comment_reply
$a_comment_modify
(3) °¡Àå ¹Ø¿¡ ¾Æ·¡ÀÇ Äڵ带 Ãß°¡ ÇÕ´Ï´Ù.
<textarea id='save_comment_<?=$comment_id?>' style='display:none;'><?=$c_memo_org?></textarea>
<input type=hidden id='secret_comment_<?=$comment_id?>' value="<?=$c_secret?>">
<input type=hidden id='save_comment_name_<?=$comment_id?>' value='<?=$c_data[name]?>'>
<span id='edit_<?=$comment_id?>' style='display:none;'></span><!-- ¼öÁ¤ -->
<span id='reply_<?=$comment_id?>' style='display:none;'></span><!-- ´äº¯ -->
- view_foot.phpÀÇ Çϴܺο¡ ´äÄÚ¸àÆ®/¼öÁ¤À» À§ÇÑ java script¸¦ »ðÀÔ ÇÕ´Ï´Ù.
<!-- ÄÚ¸àÆ® ¾²±â ±ÇÇÑÀÌ ÀÖÀ» ¶§¸¸ -->
<? if ($member[level]<=$setup[grant_comment] || $is_admin) { ?>
<script type="text/javascript">
var save_before = '';
var save_html = document.getElementById('comment_write').innerHTML;
function comment_box(comment_id, work)
{
var el_id;
// ÄÚ¸àÆ® ¾ÆÀ̵𰡠³Ñ¾î¿À¸é ´äº¯, ¼öÁ¤
if (comment_id)
{
if (work == 'c')
el_id = 'reply_' + comment_id;
else
el_id = 'edit_' + comment_id;
}
else
el_id = 'comment_write';
if (save_before != el_id)
{
if (save_before)
{
document.getElementById(save_before).style.display = 'none';
document.getElementById(save_before).innerHTML = '';
}
document.getElementById(el_id).style.display = '';
document.getElementById(el_id).innerHTML = save_html;
// ÄÚ¸àÆ® ¼öÁ¤
if (work == 'cu')
{
document.getElementById('memo').value = document.getElementById('save_comment_' + comment_id).value;
<? if (!$member[no]) { ?>
document.getElementById('name').value = document.getElementById('save_comment_name_' + comment_id).value;
<? } ?>
if (document.getElementById('secret_comment_'+comment_id).value)
document.getElementById('wr_secret').checked = true;
else
document.getElementById('wr_secret').checked = false;
}
document.getElementById('comment_id').value = comment_id;
document.getElementById('w').value = work;
save_before = el_id;
}
}
comment_box('', 'c'); // ÄÚ¸àÆ® ÀÔ·ÂÆûÀÌ º¸À̵µ·Ï ó¸®ÇϱâÀ§Çؼ Ãß°¡ (root´Ô)
</script>
<? } ?>
- write.php¿¡¼
(1) formÀÇ nameÀ» write¿¡¼ fwrite·Î ¹Ù²ß´Ï´Ù.
À̰ÍÀº java scriptµî¿¡¼ÀÇ È¥¶õÀ» ¸·±â À§ÇÑ °Í ÀÔ´Ï´Ù.
(2) ½ºÆÔ¹æÁö¸¦ À§ÇÑ Äڵ带 $hide_start ¶óÀÎ ¹Ø¿¡ Ãß°¡ ÇÕ´Ï´Ù.
<tr>
<td>½ºÆÔ¹æÁöÄÚµå</td>
<td>
<img align=absmiddle src="zmSpamFree/zmSpamFree.php?zsfimg=<?php echo time();?>" id="zsfImg" alt="¿©±â¸¦ Ŭ¸¯ÇØ ÁÖ¼¼¿ä." title="Ŭ¸¯ÇÏ½Ã¸é ´Ù¸¥ ¹®Á¦·Î ¹Ù²ò´Ï´Ù. SpamFree.kr" onclick="this.src='zmSpamFree/zmSpamFree.php?re&zsfimg=' + new Date().getTime();" />
<input type="text" size="10" maxlength="10" name="zsfCode" id="zsfCode" onblur="checkZsfCode(this);" />
</td>
</tr>
(3) À¥ÆíÁý±â°¡ °¡´ÉÇÏ°Ô Äڵ带 ¼öÁ¤ ÇÕ´Ï´Ù.
(¼öÁ¤Àü)
<textarea name="memo" class="write_textarea"><?=$memo?></textarea>
(¼öÁ¤ÈÄ)
<? if ($use_dhtml_editor) { ?>
<?=cheditor2('memo', $memo);?>
<? } else { ?>
<textarea name=memo <?=size2(90)?> rows=18 class=textarea style=width:99%><?=$memo?></textarea>
<? } ?>
http://www.bugsboard.co.kr/zboard.php?id=bugs4_tips&no=82
ÃßõÇϱâ
¸ñ·Ïº¸±â
¹øÈ£
Á¦¸ñ
ÀÛ¼ºÀÚ
ÀÛ¼ºÀÏ
̵̧
Á¶È¸
Notice
»çÀÌÆ® °³¹ßÈÄ À¥Ãë¾àÁ¡ Á¡°ËÀ» ²À ¹ÞÀ¸¼¼¿ä
¾ÆºüºÒ´ç
2009/12/04
0
510
Notice
iframeÀÌ »ðÀÔ µÇ´Â ÇØÅ·ÀÇ ¹æ¾î
¾ÆºüºÒ´ç
2009/10/27
8
670
Notice
Á¦·Îº¸µå¿¡ ¹÷½º4ÀÇ ÆÁÀ» Àû¿ëÇØµµ µÇ³ª¿ä?
¾ÆºüºÒ´ç
2009/10/16
13
608
Notice
ÆÁ¿¡ ÄÚ¸àÆ®·Î Áú¹®À» ÇÏÁö ¸»¾ÆÁÖ¼¼¿ä
¾ÆºüºÒ´ç
2009/10/14
14
402
81
db_cache ÇÔ¼ö »ç¿ë¹ý
¾ÆºüºÒ´ç
2010/04/19
0
479
80
À¥È¯°æ¿¡¼ÀÇ ÆÄÀÏ ±ÇÇÑ¿¡ ´ëÇØ¼
¾ÆºüºÒ´ç
2010/03/11
0
566
79
¾Æ¿ô·Î±×Àο¡ ·¹º§Ç¥½ÃÇϱâ
ÄÄÇ»ÅÍ
2010/02/18
0
481
78
¹÷½ºº¸µå·¹º§¾ÆÀÌÄÜ´Þ±â
[2]
ÄÄÇ»ÅÍ
2010/02/18
0
864
77
php 5.1.x ÀÌ»óÀÌ¸é¼ ¼¹ö¿Í ´Ù¸¥ ½Ã°£´ë ¼³Á¤ÀÌ ÇÊ¿äÇÒ ¶§
¾ÆºüºÒ´ç
2010/02/12
0
499
76
config.php ÆÄÀÏÀ» ¿ÜºÎ¿¡¼ ¸ø ÀÐ°Ô Çϱâ
[2]
¾ÆºüºÒ´ç
2010/01/14
0
817
75
ÁֹιøÈ£ ÀúÀ广½Ä
¾ÆºüºÒ´ç
2010/01/05
0
587
74
ȸ¿ø·¹º§¸í Àû¿ëÇϱâ
¾ÆºüºÒ´ç
2010/01/02
0
534
73
°ü¸®ÀÚ ¸Þ´º¿¡ style ÁöÁ¤Çϱâ
¾ÆºüºÒ´ç
2009/12/16
0
521
72
ÄÚ¸àÆ®¿¡ À̸ðƼÄÜ Ã·ºÎÇϱâ
[2]
¾ÆºüºÒ´ç
2009/12/11
0
847
71
ÄÚ¸àÆ®¿¡ image ³Ö±â
[4]
¾ÆºüºÒ´ç
2009/12/11
0
764
70
ȸ¿ø°¡ÀÔÁ¤º¸ º¸±â
¾ÆºüºÒ´ç
2009/12/09
0
469
69
±Û¾²±â ½ºÅ²¿¡¼ cheditor4 »ç¿ëÇϱâ
¾ÆºüºÒ´ç
2009/12/04
0
685
68
±ÇÇÑÀÌ ¾ø´Âµ¥µµ ¸ñ·Ï¿¡¼ üũ¹Ú½º°¡ º¸ÀÏ ¶§
¾ÆºüºÒ´ç
2009/11/30
0
389
Á¦·Î4 ½ºÅ²À» ¹÷½º4 ½ºÅ²À¸·Î ¾÷±ÛÇϱâ
¾ÆºüºÒ´ç
2009/11/27
0
853
66
ÆÄÀÏ´Ù¿î·Îµå¿¡ ´ëÇÑ alert ¸Þ½ÃÁö Ãß°¡
¾ÆºüºÒ´ç
2009/11/25
2
382
¸ñ·Ïº¸±â
´ÙÀ½ÆäÀÌÁö
1
[2]
[3]
[4]
[5]
Copyright ¨Ï your-domain. All rights reserved.