로그인전후가 달라지는 문제입니다. 도와주세요... 정보
로그인전후가 달라지는 문제입니다. 도와주세요...본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
접수게시판입니다. 제가 하단의 url 부분을 바꿨습니다. 원래 올라온 스킨은 글작성이 끝나면 창이 닫혀야 하는데 닫히지 않는 문제가 있어서 글작성완료후 메세지가 뜨고 원래의 글작성 페이지로 돌아가게 했는데 문제는 ...로그인하지않은상태에서는 글작성후 메세지가 뜨고난후 다시 글작성페이지로 돌아가는데 로그인 상태에서는 메세지가 뜨지 않고 그냥 창이 글작성 페이지로 넘어가 버립니다. 로그인상태에서 메세지가 뜰수있도록 어디를 수정해야할가요???부탁드립니다.
================================
<?
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);
}
}
$https_url = ".";
if($is_admin)
{
goto_url("{$https_url}/write.php?bo_table=$bo_table" . $qstr);
}else
{
alert("소중한 제보 감사드립니다! 접수가 완료됩니다. 수정이나 삭제를 원하실경우 재작성해주시면 됩니다.","{$https_url}/write.php?bo_table=$bo_table" . $qstr);
}
?>
오류 주소 :
접수게시판입니다. 제가 하단의 url 부분을 바꿨습니다. 원래 올라온 스킨은 글작성이 끝나면 창이 닫혀야 하는데 닫히지 않는 문제가 있어서 글작성완료후 메세지가 뜨고 원래의 글작성 페이지로 돌아가게 했는데 문제는 ...로그인하지않은상태에서는 글작성후 메세지가 뜨고난후 다시 글작성페이지로 돌아가는데 로그인 상태에서는 메세지가 뜨지 않고 그냥 창이 글작성 페이지로 넘어가 버립니다. 로그인상태에서 메세지가 뜰수있도록 어디를 수정해야할가요???부탁드립니다.
================================
<?
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);
}
}
$https_url = ".";
if($is_admin)
{
goto_url("{$https_url}/write.php?bo_table=$bo_table" . $qstr);
}else
{
alert("소중한 제보 감사드립니다! 접수가 완료됩니다. 수정이나 삭제를 원하실경우 재작성해주시면 됩니다.","{$https_url}/write.php?bo_table=$bo_table" . $qstr);
}
?>
댓글 전체

혹시 관리자로 로그인해서 테스트하신건 아니겠죠?
맞아요.....그래서 그런가요????다른아이디로 테스트해볼께요..

$https_url = ".";
if($is_admin)
{
goto_url("{$https_url}/write.php?bo_table=$bo_table" . $qstr);
}else
{
alert("소중한 제보 감사드립니다! 접수가 완료됩니다. 수정이나 삭제를 원하실경우 재작성해주시면 됩니다.","{$https_url}/write.php?bo_table=$bo_table" . $qstr);
}
여기서
if($is_admin) { <= 관리자일 경우를 말합니다.
} else { <= 관리자가 아닐경우 즉, 일반회원 또는 비회원 일 경우
}
관리자일 경우 alert가 없으니 알림창이 안뜨는거죠~
if($is_admin)
{
goto_url("{$https_url}/write.php?bo_table=$bo_table" . $qstr);
}else
{
alert("소중한 제보 감사드립니다! 접수가 완료됩니다. 수정이나 삭제를 원하실경우 재작성해주시면 됩니다.","{$https_url}/write.php?bo_table=$bo_table" . $qstr);
}
여기서
if($is_admin) { <= 관리자일 경우를 말합니다.
} else { <= 관리자가 아닐경우 즉, 일반회원 또는 비회원 일 경우
}
관리자일 경우 alert가 없으니 알림창이 안뜨는거죠~
정말, 감사드려요....공부좀 해야겠어요....그래도 해석해주시니 머리에 쏙 들어오네요...*^_^*