에디터, 캡챠를 bbs 밑으로 이동후 코드 수정

This commit is contained in:
gnuboard
2013-01-14 13:15:49 +09:00
parent 7b04f8a6d2
commit c0ecb1cdec
306 changed files with 138 additions and 115 deletions

View File

@ -191,7 +191,7 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
}
}
<? if (defined('_CAPTCHA_')) echo captcha_js('f.wr_key'); ?>
<? echo chk_captcha_js(); ?>
return true;
}

View File

@ -104,15 +104,7 @@ echo $option_hidden;
<tr>
<th scope="row"><label for="wr_content">내용</label></th>
<td>
<?
if (defined('_EDITOR_') && $is_dhtml_editor) {
echo editor("wr_content", $content);
} else {
echo '<textarea id="wr_content" name="wr_content" class="required" required rows="10" style="width:100%;" title="내용">'.$content."</textarea>";
}
?>
</td>
<td><?=editor_html("wr_content", $content);?></td>
</tr>
<? for ($i=1; $is_link && $i<=$g4['link_count']; $i++) { ?>
@ -137,7 +129,7 @@ echo $option_hidden;
</tbody>
</table>
<? if ($is_guest && defined('_CAPTCHA_')) { echo captcha_html(); } ?>
<?=$captcha_html?>
<div class="btn_confirm">
<input type="submit" id="btn_submit" value="글쓰기" accesskey="s">
@ -190,8 +182,8 @@ function html_auto_br(obj)
function fwrite_submit(f)
{
<? if (defined('_EDITOR_')) { echo editor_getdata("wr_content"); } ?>
<? if (defined('_EDITOR_')) { echo editor_empty("wr_content"); } ?>
<? echo get_editor_js('wr_content'); ?>
<? echo chk_editor_js('wr_content'); ?>
var subject = "";
var content = "";
@ -226,7 +218,7 @@ function fwrite_submit(f)
return false;
}
<? if (defined('_CAPTCHA_')) { echo "if (!chk_captcha()) return false;"; } ?>
<? if ($is_guest) { echo chk_captcha(); } ?>
return true;
}

View File

@ -195,7 +195,7 @@ var member_skin_path = "<?=$member_skin_path?>";
<? } ?>
</table>
<?=captcha_html('wr_key');?>
<?=$captcha_html?>
<div class="btn_confirm">
<input type="submit" class="btn_submit" value="회원가입" accesskey="s">