버전업할때... 정보
그누보드 버전업할때...본문
버전업 할 때 자료실에 그 글에 수정된 부분이 써있는데요,
예를 들어, 아래의 3.29 에서 gnuboard.lib.php 를 수정하는 부분인데,
//쪽지 레이어라는 부분의 아랫부분을 다 그렇게 바꾸라는 건가요?
// 쪽지 레이어
function gblayer($mb_id, $name='', $email='', $homepage='', $open=0)
{
global $cfg;
static $layerno = 0;
$layerno++;
$email = preg_replace("/@/", "@", $email);
$homepage = set_http($homepage);
$profile = 1;
$str = "<span onmousedown=\"gblayeraction(event, 'gblayer{$layerno}', 'visible')\" style='cursor:hand;'>";
if ($mb_id) {
$icon_file = "./data/member/$mb_id.gif";
if (file_exists($icon_file) && is_file($icon_file)) {
$size = getimagesize($icon_file);
$width = $size[0];
$height = $size[1];
if ($width > $cfg[mb_icon_width]) {
$width = $cfg[mb_icon_width];
}
if ($height > $cfg[mb_icon_height]) {
$height = $cfg[mb_icon_height];
}
$str .= "<img src='$icon_file' width='$width' height='$height' align=absbottom alt='$mb_id'> ";
}
$str .= "<span title='$mb_id'><span class=name>$name</span></span>";
/*
// 정보 비공개
if (!$open) {
$mb_id = "";
$email = "";
$homepage = "";
} else {
$profile = 1;
}
*/
} else {
$str .= $name;
}
$str .= "</span>";
// 3.29
$name = preg_replace("/\"/", """, $name);
$name = preg_replace("/\'/", "", $name);
$str .= "<script language='JavaScript'>gblayer('gblayer{$layerno}', '{$mb_id}', '{$name}', '{$email}', '{$homepage}', '{$profile}', './bbs');</script>";
return $str;
}
예를 들어, 아래의 3.29 에서 gnuboard.lib.php 를 수정하는 부분인데,
//쪽지 레이어라는 부분의 아랫부분을 다 그렇게 바꾸라는 건가요?
// 쪽지 레이어
function gblayer($mb_id, $name='', $email='', $homepage='', $open=0)
{
global $cfg;
static $layerno = 0;
$layerno++;
$email = preg_replace("/@/", "@", $email);
$homepage = set_http($homepage);
$profile = 1;
$str = "<span onmousedown=\"gblayeraction(event, 'gblayer{$layerno}', 'visible')\" style='cursor:hand;'>";
if ($mb_id) {
$icon_file = "./data/member/$mb_id.gif";
if (file_exists($icon_file) && is_file($icon_file)) {
$size = getimagesize($icon_file);
$width = $size[0];
$height = $size[1];
if ($width > $cfg[mb_icon_width]) {
$width = $cfg[mb_icon_width];
}
if ($height > $cfg[mb_icon_height]) {
$height = $cfg[mb_icon_height];
}
$str .= "<img src='$icon_file' width='$width' height='$height' align=absbottom alt='$mb_id'> ";
}
$str .= "<span title='$mb_id'><span class=name>$name</span></span>";
/*
// 정보 비공개
if (!$open) {
$mb_id = "";
$email = "";
$homepage = "";
} else {
$profile = 1;
}
*/
} else {
$str .= $name;
}
$str .= "</span>";
// 3.29
$name = preg_replace("/\"/", """, $name);
$name = preg_replace("/\'/", "", $name);
$str .= "<script language='JavaScript'>gblayer('gblayer{$layerno}', '{$mb_id}', '{$name}', '{$email}', '{$homepage}', '{$profile}', './bbs');</script>";
return $str;
}
댓글 전체
// 3.29
라고 주석표시된 부분부터 변경된 부분이지요.
비교해보시면 됩니다.
귀차니즘 발동하시면 시작과 끝을 확인하고 해당영역에 붙여넣기 하세요.
라고 주석표시된 부분부터 변경된 부분이지요.
비교해보시면 됩니다.
귀차니즘 발동하시면 시작과 끝을 확인하고 해당영역에 붙여넣기 하세요.