Example #1
0
<input type="hidden" name="bo_table" value="<?php 
echo $bo_table;
?>
"/>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<colgroup width="20px"/>
<colgroup width=""/>
<colgroup width="40%"/>
<tr>
	<th><input type="checkbox" name="checkall"/></th>
	<th>문서명</th>
	<th>저장할 폴더</th>
</tr>
<? foreach($list as $idx => $wr) { 
		$name_error = "";
		if(!wiki_check_doc_name($wr['wr_subject'])) {
			$name_error = " class='name_error'";
		}
?>
<tr>
	<td>
		<input type="checkbox" name="chk[]" class="chk" value="<?php 
echo $idx;
?>
"/>
	</td>
	<td<?php 
echo $style;
?>
>
		<input type="text" name="wr_subject[<?php 
Example #2
0
/**
 *
 * 폴더명 유효성 검사
 *
 * 유효성 검사 실패시 에러 페이지를 보여준다.
 *
 * @param string $ns 폴더 경로
 */
function wiki_validate_folder($ns)
{
	$wikiControl =& wiki_class_load("Control");
	if(!wiki_check_doc_name($docname)) {
		$wikiControl->error("문서명 오류", "문서명에 다음 문자는 사용할 수 없습니다 : \\, |, /, #, +");
	}
}