그누보드 체크 html 처리
프리이미지
본문
<?
if (!$bo_table) return true;
$buff=@file_get_contents("$g4[path]/data/arrow_html_board.php");
$arr=explode("\n",$buff);
foreach($arr as $i=>$str) $arr[$i]=trim($str);
if (in_array($bo_table,$arr)) return true;
$buff=@file_get_contents("$g4[path]/data/allow_html_id.php");
$arr=explode("\n",$buff);
foreach($arr as $i=>$str) $arr[$i]=trim($str);
if (!in_array($member[mb_id],$arr) && strstr($PHP_SELF,"_update.php")) {
if ($wr_content) {
$wr_content=str_ireplace('script','s_cript',$wr_content);
$wr_content=str_ireplace('href','h_ref',$wr_content);
$wr_content=str_ireplace('src','s_rc',$wr_content);
}
return true;
}
if (!in_array($write[mb_id],$arr) && $wr_id) {
$write[wr_option]=str_replace('html','',$write[wr_option]);
}
?>
댓글목록
등록된 댓글이 없습니다.