워터마크 급문의에요! 정보
워터마크 급문의에요!본문
그누보드4구요 갤러리 게시판입니다.
사진을 올리면 자동으로 사이트 url과 아이디가 박혀나옵니다.
이부분을 없앨수 없을까요?
write.skin.php나 write_update.skin.php를 보라고 하는데
어느 부분인지 정확히 알수가 없어서요.
참고로 그누보드 처음이거든요~ ㅠ.ㅠ
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$board_skin_path/skin.lib.php");
list($img_width, $img_height) = explode("x", $board[bo_1]);
list($img2_width, $img2_height) = explode("x", $board[bo_2]);
$img_quality = 100;
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
if ($_FILES[bf_file][name][0]) {
$row = sql_fetch(" select * from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_no = '0' ");
$file = $data_path .'/'. $row[bf_file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file)) {
$thumb_file = "{$thumb_path}/{$wr_id}";
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
if ($size[0] > $size[1]) {
$rate = $board[bo_1] / $size[0];
$height = (int)($size[1] * $rate);
$img_width = $board[bo_1];
$img_height = $height;
} else {
$rate = $board[bo_1] / $size[1];
$width = (int)($size[0] * $rate);
$img_width = $width;
$img_height = $board[bo_1];
}
createThumb2($img_width, $img_height, $file, $thumb_file, $member[mb_id]);
$thumb_file = "{$thumb_path}/{$wr_id}_{$img2_width}x{$img2_height}";
createThumb($img2_width, $img2_height, $file, $thumb_file);
$sql = " update $write_table set wr_10 = '$exif[Model]' where wr_id = '$wr_id' ";
sql_query($sql);
}
}
?>
정확히 어느 부분인지 답변 부탁드려요
사진을 올리면 자동으로 사이트 url과 아이디가 박혀나옵니다.
이부분을 없앨수 없을까요?
write.skin.php나 write_update.skin.php를 보라고 하는데
어느 부분인지 정확히 알수가 없어서요.
참고로 그누보드 처음이거든요~ ㅠ.ㅠ
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$board_skin_path/skin.lib.php");
list($img_width, $img_height) = explode("x", $board[bo_1]);
list($img2_width, $img2_height) = explode("x", $board[bo_2]);
$img_quality = 100;
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
if ($_FILES[bf_file][name][0]) {
$row = sql_fetch(" select * from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_no = '0' ");
$file = $data_path .'/'. $row[bf_file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file)) {
$thumb_file = "{$thumb_path}/{$wr_id}";
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
if ($size[0] > $size[1]) {
$rate = $board[bo_1] / $size[0];
$height = (int)($size[1] * $rate);
$img_width = $board[bo_1];
$img_height = $height;
} else {
$rate = $board[bo_1] / $size[1];
$width = (int)($size[0] * $rate);
$img_width = $width;
$img_height = $board[bo_1];
}
createThumb2($img_width, $img_height, $file, $thumb_file, $member[mb_id]);
$thumb_file = "{$thumb_path}/{$wr_id}_{$img2_width}x{$img2_height}";
createThumb($img2_width, $img2_height, $file, $thumb_file);
$sql = " update $write_table set wr_10 = '$exif[Model]' where wr_id = '$wr_id' ";
sql_query($sql);
}
}
?>
정확히 어느 부분인지 답변 부탁드려요
댓글 전체
게시판 스킨폴더
write_update.skin.php
write_update.tail.skin.php
두 파일을 보시면 되겠네요.
기본적으로 basic 스킨에는 아무코드도 없거든요.
write_update.skin.php
write_update.tail.skin.php
두 파일을 보시면 되겠네요.
기본적으로 basic 스킨에는 아무코드도 없거든요.
어떤 부분의 코드인가요? ㅠ.ㅠ
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
이렇게만 남겨놓고 다 지우세요. 미리 백업은 해두고요.
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
이렇게만 남겨놓고 다 지우세요. 미리 백업은 해두고요.