include_once("./_common.php");
include_once("./sh.php");
include_once(G5_PATH."/lib/latest.lib.php");
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
/*
if(!$is_member){
alert("접근권한이 없습니다.",$g4[bbs_path]."/login.php?url=".$urlencode);
}
*/
if (G5_IS_MOBILE) {
include_once(G5_MOBILE_PATH.'/sp.php');
return;
}
if($p)
$p = stripcslashes((strip_tags(trim($p))));
?>
$p = $_GET['p'];
if($p){
if(file_exists(G5_PATH."/sub/{$p}.php")){
include_once(G5_PATH."/sub/{$p}.php");
}else{
?>
if(strlen($bo_table) == 0){
$bo_table = "etc";
}
$local = getLocal($p, $p); // 로컬값을 구함
$sql = " select * from $g5[write_prefix]$bo_table where wr_subject = '$local' ";
$board = sql_fetch(" select * from g5_board where bo_table = '$bo_table' ");
$board_skin_path = G5_PATH."/skin/board/{$board['bo_skin']}";
$board_skin_url = G5_URL."/skin/board/{$board['bo_skin']}";
//echo $sql;
$row2 = sql_fetch($sql);
$view = get_view($row2, $board, $board_skin_path, 255);
?>
8 && strlen($view[wr_id]) > 0){?>
[수정]
}?>
$html = 1;
$view[content] = conv_content($view[wr_content], $html);
if (strstr($sfl, "content"))
$view[content] = search_font($stx, $view[content]);
//$view[content] = preg_replace("/(\
![]()
]*)(\>)/i", "\\1 name='target_resize_image[]' onclick='image_window(this)' style='cursor:pointer;' \\2 \\3", $view[content]);
?>
echo get_view_thumbnail($view[content]);
?>
}
}else{
alert("잘못된접근입니다.");
}
?>
include_once("./st.php");
?>