사용자단 따옴표 작업 bbs/good.php 까지 진행

This commit is contained in:
whitedot
2012-11-29 18:19:25 +09:00
parent cbf7e9c21e
commit 091f9deade
69 changed files with 587 additions and 587 deletions

View File

@ -1,4 +1,4 @@
<?
$g4_path = ".."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
$g4_path = '..'; // common.php 의 상대 경로
include_once($g4_path'./common.php');
?>

View File

@ -1,4 +1,4 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.php");
include_once($g4['path'].'/head.php');
?>

View File

@ -1,4 +1,4 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/tail.php");
include_once($g4['path'].'/tail.php');
?>

View File

@ -1,12 +1,12 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$board[bo_table])
{
if ($cwin) // 코멘트 보기
alert_close("존재하지 않는 게시판입니다.", $g4[path]);
alert_close('존재하지 않는 게시판입니다.', $g4['path']);
else
alert("존재하지 않는 게시판입니다.", $g4[path]);
alert('존재하지 않는 게시판입니다.', $g4['path']);
}
if ($write[wr_is_comment])
@ -17,12 +17,12 @@ if ($write[wr_is_comment])
else
alert("코멘트는 상세보기 하실 수 없습니다.");
*/
goto_url("./board.php?bo_table=$bo_table&wr_id=$write[wr_parent]#c_{$wr_id}");
goto_url('./board.php?bo_table='.$bo_table.'&amp;wr_id='.$write[wr_parent].'#c_'.$wr_id);
}
if (!$bo_table)
{
$msg = "bo_table 값이 넘어오지 않았습니다.\\n\\nboard.php?bo_table=code 와 같은 방식으로 넘겨 주세요.";
$msg = 'bo_table 값이 넘어오지 않았습니다.'.PHP_EOL.PHP_EOL.'board.php?bo_table=code 와 같은 방식으로 넘겨 주세요.';
if ($cwin) // 코멘트 보기
alert_close($msg);
else
@ -35,22 +35,22 @@ if ($wr_id)
// 글이 없을 경우 해당 게시판 목록으로 이동
if (!$write[wr_id])
{
$msg = "글이 존재하지 않습니다.\\n\\n글이 삭제되었거나 이동된 경우입니다.";
$msg = '글이 존재하지 않습니다.'.PHP_EOL.PHP_EOL.'글이 삭제되었거나 이동된 경우입니다.';
if ($cwin)
alert_close($msg);
else
alert($msg, "./board.php?bo_table=$bo_table");
alert($msg, './board.php?bo_table='.$bo_table);
}
// 그룹접근 사용
if ($group[gr_use_access])
{
if (!$member[mb_id]) {
$msg = "비회원은 이 게시판에 접근할 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.";
$msg = '비회원은 이 게시판에 접근할 권한이 없습니다.'.PHP_EOL.PHP_EOL.'회원이시라면 로그인 후 이용해 보십시오.';
if ($cwin)
alert_close($msg);
else
alert($msg, "./login.php?wr_id=$wr_id{$qstr}&url=".urlencode("./board.php?bo_table=$bo_table&wr_id=$wr_id"));
alert($msg, './login.php?wr_id='.$wr_id.$qstr.'&amp;url='.urlencode('./board.php?bo_table='.$bo_table.'&amp;wr_id='.$wr_id));
}
// 그룹관리자 이상이라면 통과
@ -60,11 +60,11 @@ if ($wr_id)
{
// 그룹접근
$sql = " select count(*) as cnt
from $g4[group_member_table]
where gr_id = '$board[gr_id]' and mb_id = '$member[mb_id]' ";
from {$g4[group_member_table]}
where gr_id = '{$board[gr_id]}' and mb_id = '{$member[mb_id]}' ";
$row = sql_fetch($sql);
if (!$row[cnt])
alert("접근 권한이 없으므로 글읽기가 불가합니다.\\n\\n궁금하신 사항은 관리자에게 문의 바랍니다.", $g4[path]);
alert('접근 권한이 없으므로 글읽기가 불가합니다.'.PHP_EOL.PHP_EOL.'궁금하신 사항은 관리자에게 문의 바랍니다.', $g4['path']);
}
}
@ -73,9 +73,9 @@ if ($wr_id)
{
if ($member[mb_id])
//alert("글을 읽을 권한이 없습니다.");
alert("글을 읽을 권한이 없습니다.", $g4[path]);
alert('글을 읽을 권한이 없습니다.', $g4['path']);
else
alert("글을 읽을 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.", "./login.php?wr_id=$wr_id{$qstr}&url=".urlencode("./board.php?bo_table=$bo_table&wr_id=$wr_id"));
alert('글을 읽을 권한이 없습니다.'.PHP_EOL.PHP_EOL.'회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&amp;url='.urlencode('./board.php?bo_table='.$bo_table.'&amp;wr_id='.$wr_id));
}
// 자신의 글이거나 관리자라면 통과
@ -91,16 +91,16 @@ if ($wr_id)
$is_owner = false;
if ($write[wr_reply] && $member[mb_id])
{
$sql = " select mb_id from $write_table
where wr_num = '$write[wr_num]'
$sql = " select mb_id from {$write_table}
where wr_num = '{$write[wr_num]}'
and wr_reply = ''
and wr_is_comment = '0' ";
and wr_is_comment = 0 ";
$row = sql_fetch($sql);
if ($row[mb_id] == $member[mb_id])
$is_owner = true;
}
$ss_name = "ss_secret_{$bo_table}_$write[wr_num]";
$ss_name = 'ss_secret_'.$bo_table.'_'.$write[wr_num];
if (!$is_owner)
{
@ -109,7 +109,7 @@ if ($wr_id)
// 이 게시물이 저장된 게시물이 아니면서 관리자가 아니라면
//if ("$bo_table|$write[wr_num]" != get_session("ss_secret"))
if (!get_session($ss_name))
goto_url("./password.php?w=s&bo_table=$bo_table&wr_id=$wr_id{$qstr}");
goto_url('./password.php?w=s&amp;bo_table='.$bo_table.'&amp;wr_id='.$wr_id.$qstr);
}
set_session($ss_name, TRUE);
@ -117,10 +117,10 @@ if ($wr_id)
}
// 한번 읽은글은 브라우저를 닫기전까지는 카운트를 증가시키지 않음
$ss_name = "ss_view_{$bo_table}_{$wr_id}";
$ss_name = 'ss_view_'.$bo_table.'_'.$wr_id;
if (!get_session($ss_name))
{
sql_query(" update $write_table set wr_hit = wr_hit + 1 where wr_id = '$wr_id' ");
sql_query(" update {$write_table} set wr_hit = wr_hit + 1 where wr_id = '{$wr_id}' ");
// 자신의 글이면 통과
if ($write[mb_id] && $write[mb_id] == $member[mb_id]) {
@ -133,39 +133,39 @@ if ($wr_id)
// 회원이상 글읽기가 가능하다면
if ($board[bo_read_level] > 1) {
if ($member[mb_point] + $board[bo_read_point] < 0)
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없거나 모자라서 글읽기(".number_format($board[bo_read_point]).")가 불가합니다.\\n\\n포인트를 모으신 후 다시 글읽기 해 주십시오.");
alert('보유하신 포인트('.number_format($member[mb_point]).')가 없거나 모자라서 글읽기('.number_format($board[bo_read_point]).')가 불가합니다.'.PHP_EOL.PHP_EOL.'포인트를 모으신 후 다시 글읽기 해 주십시오.');
insert_point($member[mb_id], $board[bo_read_point], "$board[bo_subject] $wr_id 글읽기", $bo_table, $wr_id, '읽기');
insert_point($member[mb_id], $board[bo_read_point], '{$board[bo_subject]} {$wr_id} 글읽기', $bo_table, $wr_id, '읽기');
}
*/
// 글읽기 포인트가 설정되어 있다면
if ($board[bo_read_point] && $member[mb_point] + $board[bo_read_point] < 0)
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없거나 모자라서 글읽기(".number_format($board[bo_read_point]).")가 불가합니다.\\n\\n포인트를 모으신 후 다시 글읽기 해 주십시오.");
alert('보유하신 포인트('.number_format($member[mb_point]).')가 없거나 모자라서 글읽기('.number_format($board[bo_read_point]).')가 불가합니다.'.PHP_EOL.PHP_EOL.'포인트를 모으신 후 다시 글읽기 해 주십시오.');
insert_point($member[mb_id], $board[bo_read_point], "$board[bo_subject] $wr_id 글읽기", $bo_table, $wr_id, '읽기');
insert_point($member[mb_id], $board[bo_read_point], '{$board[bo_subject]} {$wr_id} 글읽기', $bo_table, $wr_id, '읽기');
}
set_session($ss_name, TRUE);
}
$g4[title] = "$group[gr_subject] > $board[bo_subject] > " . strip_tags(conv_subject($write[wr_subject], 255));
$g4['title'] = strip_tags(conv_subject($write[wr_subject], 255).' &gt; '.$board[bo_subject].' &gt; '.$group[gr_subject]);
}
else
{
if ($member[mb_level] < $board[bo_list_level])
{
if ($member[mb_id])
alert("목록을 볼 권한이 없습니다.", $g4[path]);
alert('목록을 볼 권한이 없습니다.', $g4['path']);
else
alert("목록을 볼 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.", "./login.php?wr_id=$wr_id{$qstr}&url=".urlencode("board.php?bo_table=$bo_table&wr_id=$wr_id"));
alert('목록을 볼 권한이 없습니다.'.PHP_EOL.PHP_EOL.'회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&amp;url='.urlencode('board.php?bo_table='.$bo_table.'&amp;wr_id='.$wr_id));
}
if (!$page) $page = 1;
$g4[title] = "$group[gr_subject] > $board[bo_subject] $page 페이지";
$g4['title'] = $board[bo_subject].$page.' 페이지 &gt; '.$group[gr_subject];
}
include_once("$g4[path]/head.sub.php");
include_once($g4['path'].'/head.sub.php');
$width = $board[bo_table_width];
if ($width <= 100) $width .= '%';
@ -181,7 +181,7 @@ if ($is_admin) {
// 분류 사용
$is_category = false;
$category_name = "";
$category_name = '';
if ($board[bo_use_category]) {
$is_category = true;
$category_name = $write[ca_name]; // 분류명
@ -200,29 +200,29 @@ if ($board[bo_use_nogood])
$admin_href = "";
// 최고관리자 또는 그룹관리자라면
if ($member[mb_id] && ($is_admin == 'super' || $group[gr_admin] == $member[mb_id]))
$admin_href = "$g4[admin_path]/board_form.php?w=u&bo_table=$bo_table";
$admin_href = $g4[admin_path].'/board_form.php?w=u&amp;bo_table=.'$bo_table;
if (!($board[bo_use_comment] && $cwin))
include_once("./board_head.php");
include_once('./board_head.php');
echo "<script src=\"$g4[path]/js/sideview.js\"></script>";
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
if (!($board[bo_use_comment] && $cwin)) {
// 게시물 아이디가 있다면 게시물 보기를 INCLUDE
if ($wr_id)
include_once("./view.php");
include_once('./view.php');
// 전체목록보이기 사용이 "예" 또는 wr_id 값이 없다면 목록을 보임
//if ($board[bo_use_list_view] || empty($wr_id))
if ($member[mb_level] >= $board[bo_list_level] && $board[bo_use_list_view] || empty($wr_id))
include_once ("./list.php");
include_once ('./list.php');
include_once("./board_tail.php");
include_once('./board_tail.php');
}
else
include_once("./view_comment.php");
include_once('./view_comment.php');
echo "\n<!-- 사용스킨 : $board[bo_skin] -->\n";
echo PHP_EOL.'<!-- 사용스킨 : $board[bo_skin] -->'.PHP_EOL;
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -7,7 +7,7 @@ if ($board[bo_include_head])
// 게시판 관리의 상단 이미지 경로
if ($board[bo_image_head])
echo "<img src='$g4[path]/data/file/$bo_table/$board[bo_image_head]' border='0'>";
echo '<img src="'.$g4['path'].'/data/file/'.$bo_table.'/'.$board[bo_image_head].'">';
// 게시판 관리의 상단 내용
if ($board[bo_content_head])

View File

@ -7,7 +7,7 @@ if ($board[bo_content_tail])
// 게시판 관리의 하단 이미지 경로
if ($board[bo_image_tail])
echo "<img src='$g4[path]/data/file/$bo_table/$board[bo_image_tail]' border='0'>";
echo '<img src="'.$g4['path'].'/data/file/'.$bo_table.'/'.$board[bo_image_tail].'">';
// 게시판 관리의 하단 파일 경로
if ($board[bo_include_tail])

View File

@ -1,19 +1,19 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$g4[title] = "달력";
include_once("$g4[path]/head.sub.php");
$g4['title'] = '달력';
include_once($g4['path'].'/head.sub.php');
// 글자 색상
$weekday_color = "#000000"; // 평일
$saturday_color = "#000000"; // 토요일
$sunday_color = "#FF3300"; // 일요일 (공휴일)
$weekday_color = '#000000'; // 평일
$saturday_color = '#000000'; // 토요일
$sunday_color = '#FF3300'; // 일요일 (공휴일)
// 배경 색상
$today_bgcolor = "yellow"; // 오늘
$select_bgcolor = "#BAFFF6"; // 선택일
$today_bgcolor = 'yellow'; // 오늘
$select_bgcolor = '#BAFFF6'; // 선택일
// 요일
$yoil = array ("", "", "", "", "", "", "");
$yoil = array ('일', '월', '화', '수', '목', '금', '토');
// mktime() 함수는 1970 ~ 2038년까지만 계산되므로 사용하지 않음
// 참고 : http://phpschool.com/bbs2/inc_view.html?id=3924&code=tnt2&start=0&mode=search&s_que=mktime&field=title&operator=and&period=all
@ -28,8 +28,8 @@ function spacer($year, $month)
// 오늘
$today = getdate($g4[server_time]);
$mon = substr("0".$today[mon],-2);
$mday = substr("0".$today[mday],-2);
$mon = substr('0'.$today[mon],-2);
$mday = substr('0'.$today[mday],-2);
// delimiter 를 없앤다
$cur_date = preg_replace("/([^0-9]*)/", "", $cur_date);
@ -41,13 +41,13 @@ if ($cur_date && !$yyyy)
}
else
{
if (!$yyyy) $yyyy = $today['year'];
if (!$mm) $mm = $today['mon'];
if (!$yyyy) $yyyy = $today[year];
if (!$mm) $mm = $today[mon];
}
$yyyy = (int)$yyyy;
$mm = (int)$mm;
$f = @file("./calendar/$yyyy.txt");
$f = @file('./calendar/'.$yyyy.'.txt');
if ($f) {
while ($line = each($f)) {
$tmp = explode("|", $line[value]);
@ -92,35 +92,35 @@ if ($mm_after > 12)
$fr_yyyy = $yyyy - 80;
$to_yyyy = $yyyy + 80;
$yyyy_before_href = "$_SERVER[PHP_SELF]?yyyy=".($yyyy-1)."&mm={$mm}&cur_date={$cur_date}&fld={$fld}&delimiter={$delimiter}";
$yyyy_after_href = "$_SERVER[PHP_SELF]?yyyy=".($yyyy+1)."&mm={$mm}&cur_date={$cur_date}&fld={$fld}&delimiter={$delimiter}";
$yyyy_before_href = $_SERVER[PHP_SELF].'?yyyy='.($yyyy-1).'&amp;mm='.$mm.'&amp;cur_date='.$cur_date.'&amp;fld='.$fld.'&amp;delimiter='.$delimiter;
$yyyy_after_href = $_SERVER[PHP_SELF].'?yyyy='.($yyyy+1).'&amp;mm='.$mm.'&amp;cur_date='.$cur_date.'&amp;fld='.$fld.'&amp;delimiter='.$delimiter;
$mm_after_href = "$_SERVER[PHP_SELF]?yyyy={$yyyy_after}&mm={$mm_after}&cur_date={$cur_date}&fld={$fld}&delimiter={$delimiter}";
$mm_before_href = "$_SERVER[PHP_SELF]?yyyy={$yyyy_before}&mm={$mm_before}&cur_date={$cur_date}&fld={$fld}&delimiter={$delimiter}";
$mm_after_href = $_SERVER[PHP_SELF].'?yyyy='.$yyyy_after.'&amp;mm='.$mm_after.'&amp;cur_date='.$cur_date.'&amp;fld='.$fld.'&amp;delimiter='.$delimiter;
$mm_before_href = $_SERVER[PHP_SELF].'?yyyy='.$yyyy_before.'&amp;mm='.$mm_before.'&amp;cur_date='.$cur_date.'&amp;fld='.$fld.'&amp;delimiter='.$delimiter;
$yyyy_select = "<select name=yyyy onchange='document.fcalendar.submit();'>";
$yyyy_select = '<select name="yyyy" onchange="document.fcalendar.submit();">';
for ($i=$fr_yyyy; $i<=$to_yyyy; $i++)
{
if ($i == $yyyy) $selected = " selected";
if ($i == $yyyy) $selected = ' selected';
else $selected = "";
$yyyy_select .= "<option value='{$i}'{$selected}>$i 년</option>";
$yyyy_select .= '<option value='.$i.$selected.'>'.$i.' 년</option>';
}
$yyyy_select .= "</select>";
$yyyy_select .= '</select>';
$mm_select = "<select name=mm onchange='document.fcalendar.submit();'>";
$mm_select = '<select name="mm" onchange="document.fcalendar.submit();">';
for ($i=1; $i<=12; $i++)
{
if ($i == $mm) $selected = " selected";
if ($i == $mm) $selected = ' selected';
else $selected = "";
$mm_select .= "<option value='{$i}'{$selected}>$i 월</option>";
$mm_select .= '<option value="'.$i.$selected.'">'.$i.' 월</option>';
}
$mm_select .= "</select>";
$mm_select .= '</select>';
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/calendar.skin.php");
$member_skin_path = $g4['path'].'/skin/member/.'$config[cf_member_skin];
include_once($member_skin_path.'/calendar.skin.php');
?>
<script type="text/javascript">
<script>
//
// year : 4자리
// month : 1~2자리
@ -137,5 +137,5 @@ function date_send(year, month, day, wday, handay)
</script>
<?
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,15 +1,15 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$g4[title] = "현재접속자";
include_once("./_head.php");
$g4['title'] = '현재접속자';
include_once('./_head.php');
$list = array();
$sql = " select a.mb_id, b.mb_nick, b.mb_name, b.mb_email, b.mb_homepage, b.mb_open, b.mb_point, a.lo_ip, a.lo_location, a.lo_url
from $g4[login_table] a left join $g4[member_table] b on (a.mb_id = b.mb_id)
where a.mb_id <> '$config[cf_admin]'
order by a.lo_datetime desc ";
from {$g4[login_table]} a left join {$g4[member_table]} b on (a.mb_id = b.mb_id)
where a.mb_id <> '{$config[cf_admin]}'
order by a.lo_datetime desc ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
@ -26,15 +26,15 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$list[$i][name] = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "\\1.♡.\\3.\\4", $row[lo_ip]);
}
$list[$i][num] = sprintf("%03d",$i+1);
$list[$i][num] = sprintf('%03d',$i+1);
}
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "?gr_id=$gr_id&page=");
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, '?gr_id=$gr_id&amp;page=');
echo "<script type=\"text/javascript\" src=\"$g4[path]/js/sideview.js\"></script>\n";
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
$connect_skin_path = "$g4[path]/skin/connect/$config[cf_connect_skin]";
include_once("$connect_skin_path/current_connect.skin.php");
$connect_skin_path = $g4['path'].'/skin/connect/'.$config[cf_connect_skin];
include_once($connect_skin_path.'/current_connect.skin.php');
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,38 +1,38 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if ($is_admin)
{
if (!($token && get_session("ss_delete_token") == $token))
alert("토큰 에러로 삭제 불가합니다.");
if (!($token && get_session('ss_delete_token') == $token))
alert('토큰 에러로 삭제 불가합니다.');
}
//$wr = sql_fetch(" select * from $write_table where wr_id = '$wr_id' ");
@include_once("$board_skin_path/delete.head.skin.php");
@include_once($board_skin_path.'/delete.head.skin.php');
if ($is_admin == "super") // 최고관리자 통과
if ($is_admin == 'super') // 최고관리자 통과
;
else if ($is_admin == "group") { // 그룹관리자
else if ($is_admin == 'group') { // 그룹관리자
$mb = get_member($write[mb_id]);
if ($member[mb_id] != $group[gr_admin]) // 자신이 관리하는 그룹인가?
alert("자신이 관리하는 그룹의 게시판이 아니므로 삭제할 수 없습니다.");
alert('자신이 관리하는 그룹의 게시판이 아니므로 삭제할 수 없습니다.');
else if ($member[mb_level] < $mb[mb_level]) // 자신의 레벨이 크거나 같다면 통과
alert("자신의 권한보다 높은 권한의 회원이 작성한 글은 삭제할 수 없습니다.");
} else if ($is_admin == "board") { // 게시판관리자이면
alert('자신의 권한보다 높은 권한의 회원이 작성한 글은 삭제할 수 없습니다.');
} else if ($is_admin == 'board') { // 게시판관리자이면
$mb = get_member($write[mb_id]);
if ($member[mb_id] != $board[bo_admin]) // 자신이 관리하는 게시판인가?
alert("자신이 관리하는 게시판이 아니므로 삭제할 수 없습니다.");
alert('자신이 관리하는 게시판이 아니므로 삭제할 수 없습니다.');
else if ($member[mb_level] < $mb[mb_level]) // 자신의 레벨이 크거나 같다면 통과
alert("자신의 권한보다 높은 권한의 회원이 작성한 글은 삭제할 수 없습니다.");
alert('자신의 권한보다 높은 권한의 회원이 작성한 글은 삭제할 수 없습니다.');
} else if ($member[mb_id]) {
if ($member[mb_id] != $write[mb_id])
alert("자신의 글이 아니므로 삭제할 수 없습니다.");
alert('자신의 글이 아니므로 삭제할 수 없습니다.');
} else {
if ($write[mb_id])
alert("로그인 후 삭제하세요.", "./login.php?url=".urlencode("./board.php?bo_table=$bo_table&wr_id=$wr_id"));
alert('로그인 후 삭제하세요.', './login.php?url='.urlencode('./board.php?bo_table='.$bo_table.'&amp;wr_id='.$wr_id));
else if (sql_password($wr_password) != $write[wr_password])
alert("패스워드가 틀리므로 삭제할 수 없습니다.");
alert('패스워드가 틀리므로 삭제할 수 없습니다.');
}
$len = strlen($write[wr_reply]);
@ -40,32 +40,32 @@ if ($len < 0) $len = 0;
$reply = substr($write[wr_reply], 0, $len);
// 원글만 구한다.
$sql = " select count(*) as cnt from $write_table
where wr_reply like '$reply%'
and wr_id <> '$write[wr_id]'
and wr_num = '$write[wr_num]'
$sql = " select count(*) as cnt from {$write_table}
where wr_reply like '{$reply}%'
and wr_id <> '{$write[wr_id]}'
and wr_num = '{$write[wr_num]}'
and wr_is_comment = 0 ";
$row = sql_fetch($sql);
if ($row[cnt] && !$is_admin)
alert("이 글과 관련된 답변글이 존재하므로 삭제 할 수 없습니다.\\n\\n우선 답변글부터 삭제하여 주십시오.");
alert('이 글과 관련된 답변글이 존재하므로 삭제 할 수 없습니다..PHP_EOL.PHP_EOL.우선 답변글부터 삭제하여 주십시오.');
// 코멘트 달린 원글의 삭제 여부
$sql = " select count(*) as cnt from $write_table
where wr_parent = '$wr_id'
and mb_id <> '$member[mb_id]'
$sql = " select count(*) as cnt from {$write_table}
where wr_parent = '{$wr_id}'
and mb_id <> '{$member[mb_id]}'
and wr_is_comment = 1 ";
$row = sql_fetch($sql);
if ($row[cnt] >= $board[bo_count_delete] && !$is_admin)
alert("이 글과 관련된 코멘트가 존재하므로 삭제 할 수 없습니다.\\n\\n코멘트가 {$board[bo_count_delete]}건 이상 달린 원글은 삭제할 수 없습니다.");
alert('이 글과 관련된 코멘트가 존재하므로 삭제 할 수 없습니다.'.PHP_EOL.PHP_EOL.'코멘트가 '.$board[bo_count_delete].'건 이상 달린 원글은 삭제할 수 없습니다.');
// 사용자 코드 실행
@include_once("$board_skin_path/delete.skin.php");
@include_once($board_skin_path.'/delete.skin.php');
// 나라오름님 수정 : 원글과 코멘트수가 정상적으로 업데이트 되지 않는 오류를 잡아 주셨습니다.
//$sql = " select wr_id, mb_id, wr_comment from $write_table where wr_parent = '$write[wr_id]' order by wr_id ";
$sql = " select wr_id, mb_id, wr_is_comment from $write_table where wr_parent = '$write[wr_id]' order by wr_id ";
$sql = " select wr_id, mb_id, wr_is_comment from {$write_table} where wr_parent = '{$write[wr_id]}' order by wr_id ";
$result = sql_query($sql);
while ($row = sql_fetch_array($result))
{
@ -74,16 +74,16 @@ while ($row = sql_fetch_array($result))
{
// 원글 포인트 삭제
if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '쓰기'))
insert_point($row[mb_id], $board[bo_write_point] * (-1), "$board[bo_subject] $row[wr_id] 글삭제");
insert_point($row[mb_id], $board[bo_write_point] * (-1), "{$board[bo_subject]} {$row[wr_id]} 글삭제");
// 업로드된 파일이 있다면 파일삭제
$sql2 = " select * from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$row[wr_id]' ";
$sql2 = " select * from {$g4[board_file_table]} where bo_table = '{$bo_table}' and wr_id = '{$row[wr_id]}' ";
$result2 = sql_query($sql2);
while ($row2 = sql_fetch_array($result2))
@unlink("$g4[path]/data/file/$bo_table/$row2[bf_file]");
@unlink($g4['path'].'/data/file/'.$bo_table.'/'.$row2[bf_file]);
// 파일테이블 행 삭제
sql_query(" delete from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$row[wr_id]' ");
sql_query(" delete from {$g4[board_file_table]} where bo_table = '{$bo_table}' and wr_id = '{$row[wr_id]}' ");
$count_write++;
}
@ -91,20 +91,20 @@ while ($row = sql_fetch_array($result))
{
// 코멘트 포인트 삭제
if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '코멘트'))
insert_point($row[mb_id], $board[bo_comment_point] * (-1), "$board[bo_subject] {$write[wr_id]}-{$row[wr_id]} 코멘트삭제");
insert_point($row[mb_id], $board[bo_comment_point] * (-1), "{$board[bo_subject]} {$write[wr_id]}-{$row[wr_id]} 코멘트삭제");
$count_comment++;
}
}
// 게시글 삭제
sql_query(" delete from $write_table where wr_parent = '$write[wr_id]' ");
sql_query(" delete from {$write_table} where wr_parent = '{$write[wr_id]}' ");
// 최근게시물 삭제
sql_query(" delete from $g4[board_new_table] where bo_table = '$bo_table' and wr_parent = '$write[wr_id]' ");
sql_query(" delete from {$g4[board_new_table]} where bo_table = '{$bo_table}' and wr_parent = '{$write[wr_id]}' ");
// 스크랩 삭제
sql_query(" delete from $g4[scrap_table] where bo_table = '$bo_table' and wr_id = '$write[wr_id]' ");
sql_query(" delete from {$g4[scrap_table]} where bo_table = '{$bo_table}' and wr_id = '{$write[wr_id]}' ");
// 공지사항 삭제
$notice_array = explode("\n", trim($board[bo_notice]));
@ -113,13 +113,13 @@ for ($k=0; $k<count($notice_array); $k++)
if ((int)$write[wr_id] != (int)$notice_array[$k])
$bo_notice .= $notice_array[$k] . "\n";
$bo_notice = trim($bo_notice);
sql_query(" update $g4[board_table] set bo_notice = '$bo_notice' where bo_table = '$bo_table' ");
sql_query(" update {$g4[board_table]} set bo_notice = '{$bo_notice}' where bo_table = '{$bo_table}' ");
// 글숫자 감소
if ($count_write > 0 || $count_comment > 0)
sql_query(" update $g4[board_table] set bo_count_write = bo_count_write - '$count_write', bo_count_comment = bo_count_comment - '$count_comment' where bo_table = '$bo_table' ");
sql_query(" update {$g4[board_table]} set bo_count_write = bo_count_write - '{$count_write}', bo_count_comment = bo_count_comment - '{$count_comment}' where bo_table = '{$bo_table}' ");
@include_once("$board_skin_path/delete.tail.skin.php");
@include_once($board_skin_path.'/delete.tail.skin.php');
goto_url("./board.php?bo_table=$bo_table&page=$page" . $qstr);
goto_url('./board.php?bo_table='.$bo_table.'&amp;page='.$page.$qstr);
?>

View File

@ -1,8 +1,8 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 4.11
@include_once("$board_skin_path/delete_all.head.skin.php");
@include_once($board_skin_path.'/delete_all.head.skin.php');
$count_write = 0;
$count_comment = 0;
@ -15,17 +15,17 @@ else // 일괄삭제
// 사용자 코드 실행
@include_once("$board_skin_path/delete_all.skin.php");
@include_once($board_skin_path.'/delete_all.skin.php');
// 거꾸로 읽는 이유는 답변글부터 삭제가 되어야 하기 때문임
for ($i=count($tmp_array)-1; $i>=0; $i--)
{
$write = sql_fetch(" select * from $write_table where wr_id = '{$tmp_array[$i]}' ");
$write = sql_fetch(" select * from {$write_table} where wr_id = '{$tmp_array[$i]}' ");
if ($is_admin == "super") // 최고관리자 통과
if ($is_admin == 'super') // 최고관리자 통과
;
else if ($is_admin == "group") // 그룹관리자
else if ($is_admin == 'group') // 그룹관리자
{
$mb = get_member($write[mb_id]);
if ($member[mb_id] == $group[gr_admin]) // 자신이 관리하는 그룹인가?
@ -38,7 +38,7 @@ for ($i=count($tmp_array)-1; $i>=0; $i--)
else
continue;
}
else if ($is_admin == "board") // 게시판관리자이면
else if ($is_admin == 'board') // 게시판관리자이면
{
$mb = get_member($write[mb_id]);
if ($member[mb_id] == $board[bo_admin]) // 자신이 관리하는 게시판인가?
@ -65,18 +65,18 @@ for ($i=count($tmp_array)-1; $i>=0; $i--)
$reply = substr($write[wr_reply], 0, $len);
// 원글만 구한다.
$sql = " select count(*) as cnt from $write_table
where wr_reply like '$reply%'
and wr_id <> '$write[wr_id]'
and wr_num = '$write[wr_num]'
$sql = " select count(*) as cnt from {$write_table}
where wr_reply like '{$reply}%'
and wr_id <> '{$write[wr_id]}'
and wr_num = '{$write[wr_num]}'
and wr_is_comment = 0 ";
$row = sql_fetch($sql);
if ($row[cnt])
continue;
// 나라오름님 수정 : 원글과 코멘트수가 정상적으로 업데이트 되지 않는 오류를 잡아 주셨습니다.
//$sql = " select wr_id, mb_id, wr_comment from $write_table where wr_parent = '$write[wr_id]' order by wr_id ";
$sql = " select wr_id, mb_id, wr_is_comment from $write_table where wr_parent = '$write[wr_id]' order by wr_id ";
//$sql = " select wr_id, mb_id, wr_comment from {$write_table} where wr_parent = '{$write[wr_id]}' order by wr_id ";
$sql = " select wr_id, mb_id, wr_is_comment from {$write_table} where wr_parent = '{$write[wr_id]}' order by wr_id ";
$result = sql_query($sql);
while ($row = sql_fetch_array($result))
{
@ -85,17 +85,17 @@ for ($i=count($tmp_array)-1; $i>=0; $i--)
{
// 원글 포인트 삭제
if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '쓰기'))
insert_point($row[mb_id], $board[bo_write_point] * (-1), "$board[bo_subject] $row[wr_id] 글삭제");
insert_point($row[mb_id], $board[bo_write_point] * (-1), "{$board[bo_subject]} {$row[wr_id]} 삭제");
// 업로드된 파일이 있다면
$sql2 = " select * from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$row[wr_id]' ";
$sql2 = " select * from {$g4[board_file_table]} where bo_table = '{$bo_table}' and wr_id = '{$row[wr_id]}' ";
$result2 = sql_query($sql2);
while ($row2 = sql_fetch_array($result2))
// 파일삭제
@unlink("$g4[path]/data/file/$bo_table/$row2[bf_file]");
@unlink($g4['path'].'/data/file/'.$bo_table.'/'.$row2[bf_file]);
// 파일테이블 행 삭제
sql_query(" delete from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$row[wr_id]' ");
sql_query(" delete from {$g4[board_file_table]} where bo_table = '{$bo_table}' and wr_id = '{$row[wr_id]}' ");
$count_write++;
}
@ -103,38 +103,38 @@ for ($i=count($tmp_array)-1; $i>=0; $i--)
{
// 코멘트 포인트 삭제
if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '코멘트'))
insert_point($row[mb_id], $board[bo_comment_point] * (-1), "$board[bo_subject] {$write[wr_id]}-{$row[wr_id]} 코멘트삭제");
insert_point($row[mb_id], $board[bo_comment_point] * (-1), "{$board[bo_subject]} {$write[wr_id]}-{$row[wr_id]} 코멘트삭제");
$count_comment++;
}
}
// 게시글 삭제
sql_query(" delete from $write_table where wr_parent = '$write[wr_id]' ");
sql_query(" delete from {$write_table} where wr_parent = '{$write[wr_id]}' ");
// 최근게시물 삭제
sql_query(" delete from $g4[board_new_table] where bo_table = '$bo_table' and wr_parent = '$write[wr_id]' ");
sql_query(" delete from {$g4[board_new_table]} where bo_table = '{$bo_table}' and wr_parent = '{$write[wr_id]}' ");
// 스크랩 삭제
sql_query(" delete from $g4[scrap_table] where bo_table = '$bo_table' and wr_id = '$write[wr_id]' ");
sql_query(" delete from {$g4[scrap_table]} where bo_table = '{$bo_table}' and wr_id = '{$write[wr_id]}' ");
// 공지사항 삭제
$notice_array = explode("\n", trim($board[bo_notice]));
$notice_array = explode(',', trim($board[bo_notice]));
$bo_notice = "";
for ($k=0; $k<count($notice_array); $k++)
if ((int)$write[wr_id] != (int)$notice_array[$k])
$bo_notice .= $notice_array[$k] . "\n";
$bo_notice .= $notice_array[$k].',';
$bo_notice = trim($bo_notice);
sql_query(" update $g4[board_table] set bo_notice = '$bo_notice' where bo_table = '$bo_table' ");
sql_query(" update {$g4[board_table]} set bo_notice = '{$bo_notice}' where bo_table = '{$bo_table}' ");
$board[bo_notice] = $bo_notice;
}
// 글숫자 감소
if ($count_write > 0 || $count_comment > 0)
sql_query(" update $g4[board_table] set bo_count_write = bo_count_write - '$count_write', bo_count_comment = bo_count_comment - '$count_comment' where bo_table = '$bo_table' ");
sql_query(" update {$g4[board_table]} set bo_count_write = bo_count_write - '{$count_write}', bo_count_comment = bo_count_comment - '{$count_comment}' where bo_table = '{$bo_table}' ");
// 4.11
@include_once("$board_skin_path/delete_all.tail.skin.php");
@include_once($board_skin_path.'/delete_all.tail.skin.php');
goto_url("./board.php?bo_table=$bo_table&page=$page" . $qstr);
goto_url('./board.php?bo_table='.$bo_table.'&amp;page='.$page.$qstr);
?>

View File

@ -1,87 +1,87 @@
<?
// 코멘트 삭제
include_once("./_common.php");
include_once('./_common.php');
if ($is_admin)
{
if (!($token && get_session("ss_delete_token") == $token))
alert("토큰 에러로 삭제 불가합니다.");
alert('토큰 에러로 삭제 불가합니다.');
}
// 4.1
@include_once("$board_skin_path/delete_comment.head.skin.php");
@include_once($board_skin_path.'/delete_comment.head.skin.php');
$write = sql_fetch(" select * from $write_table where wr_id = '$comment_id' ");
$write = sql_fetch(" select * from {$write_table} where wr_id = '{$comment_id}' ");
if (!$write[wr_id] || !$write[wr_is_comment])
alert("등록된 코멘트가 없거나 코멘트 글이 아닙니다.");
alert('등록된 코멘트가 없거나 코멘트 글이 아닙니다.');
if ($is_admin == "super") // 최고관리자 통과
if ($is_admin == 'super') // 최고관리자 통과
;
else if ($is_admin == "group") { // 그룹관리자
else if ($is_admin == 'group') { // 그룹관리자
$mb = get_member($write[mb_id]);
if ($member[mb_id] == $group[gr_admin]) { // 자신이 관리하는 그룹인가?
if ($member[mb_level] >= $mb[mb_level]) // 자신의 레벨이 크거나 같다면 통과
;
else
alert("그룹관리자의 권한보다 높은 회원의 코멘트이므로 삭제할 수 없습니다.");
alert('그룹관리자의 권한보다 높은 회원의 코멘트이므로 삭제할 수 없습니다.');
} else
alert("자신이 관리하는 그룹의 게시판이 아니므로 코멘트를 삭제할 수 없습니다.");
} else if ($is_admin == "board") { // 게시판관리자이면
alert('자신이 관리하는 그룹의 게시판이 아니므로 코멘트를 삭제할 수 없습니다.');
} else if ($is_admin == 'board') { // 게시판관리자이면
$mb = get_member($write[mb_id]);
if ($member[mb_id] == $board[bo_admin]) { // 자신이 관리하는 게시판인가?
if ($member[mb_level] >= $mb[mb_level]) // 자신의 레벨이 크거나 같다면 통과
;
else
alert("게시판관리자의 권한보다 높은 회원의 코멘트이므로 삭제할 수 없습니다.");
alert('게시판관리자의 권한보다 높은 회원의 코멘트이므로 삭제할 수 없습니다.');
} else
alert("자신이 관리하는 게시판이 아니므로 코멘트를 삭제할 수 없습니다.");
alert('자신이 관리하는 게시판이 아니므로 코멘트를 삭제할 수 없습니다.');
} else if ($member[mb_id]) {
if ($member[mb_id] != $write[mb_id])
alert("자신의 글이 아니므로 삭제할 수 없습니다.");
alert('자신의 글이 아니므로 삭제할 수 없습니다.');
} else {
if (sql_password($wr_password) != $write[wr_password])
alert("패스워드가 틀립니다.");
alert('패스워드가 틀립니다.');
}
$len = strlen($write[wr_comment_reply]);
if ($len < 0) $len = 0;
$comment_reply = substr($write[wr_comment_reply], 0, $len);
$sql = " select count(*) as cnt from $write_table
where wr_comment_reply like '$comment_reply%'
and wr_id <> '$comment_id'
and wr_parent = '$write[wr_parent]'
and wr_comment = '$write[wr_comment]'
$sql = " select count(*) as cnt from {$write_table}
where wr_comment_reply like '{$comment_reply}%'
and wr_id <> '{$comment_id}'
and wr_parent = '{$write[wr_parent]}'
and wr_comment = '{$write[wr_comment]}'
and wr_is_comment = 1 ";
$row = sql_fetch($sql);
if ($row[cnt] && !$is_admin)
alert("이 코멘트와 관련된 답변코멘트가 존재하므로 삭제 할 수 없습니다.");
alert('이 코멘트와 관련된 답변코멘트가 존재하므로 삭제 할 수 없습니다.');
// 코멘트 삭제
if (!delete_point($write[mb_id], $bo_table, $comment_id, '코멘트'))
insert_point($write[mb_id], $board[bo_comment_point] * (-1), "$board[bo_subject] {$write[wr_parent]}-{$comment_id} 코멘트삭제");
insert_point($write[mb_id], $board[bo_comment_point] * (-1), "{$board[bo_subject]} {$write[wr_parent]}-{$comment_id} 코멘트삭제");
// 코멘트 삭제
sql_query(" delete from $write_table where wr_id = '$comment_id' ");
sql_query(" delete from {$write_table} where wr_id = '{$comment_id}' ");
// 코멘트가 삭제되므로 해당 게시물에 대한 최근 시간을 다시 얻는다.
$sql = " select max(wr_datetime) as wr_last from $write_table where wr_parent = '$write[wr_parent]' ";
$sql = " select max(wr_datetime) as wr_last from {$write_table} where wr_parent = '{$write[wr_parent]}' ";
$row = sql_fetch($sql);
// 원글의 코멘트 숫자를 감소
sql_query(" update $write_table set wr_comment = wr_comment - 1, wr_last = '$row[wr_last]' where wr_id = '$write[wr_parent]' ");
sql_query(" update {$write_table} set wr_comment = wr_comment - 1, wr_last = '{$row[wr_last]}' where wr_id = '{$write[wr_parent]}' ");
// 코멘트 숫자 감소
sql_query(" update $g4[board_table] set bo_count_comment = bo_count_comment - 1 where bo_table = '$bo_table' ");
sql_query(" update {$g4[board_table]} set bo_count_comment = bo_count_comment - 1 where bo_table = '{$bo_table}' ");
// 새글 삭제
sql_query(" delete from $g4[board_new_table] where bo_table = '$bo_table' and wr_id = '$comment_id' ");
sql_query(" delete from {$g4[board_new_table]} where bo_table = '{$bo_table}' and wr_id = '{$comment_id}' ");
// 사용자 코드 실행
@include_once("$board_skin_path/delete_comment.skin.php");
@include_once($board_skin_path.'/delete_comment.skin.php');
// 4.1
@include_once("$board_skin_path/delete_comment.tail.skin.php");
@include_once($board_skin_path.'/delete_comment.tail.skin.php');
goto_url("./board.php?bo_table=$bo_table&wr_id=$write[wr_parent]&cwin=$cwin&page=$page" . $qstr);
goto_url('./board.php?bo_table='.$bo_table.'&amp;wr_id='.$write[wr_parent].'&amp;cwin='.$cwin.'&amp;page='.$page. $qstr);
?>

View File

@ -1,38 +1,38 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$no = (int)$no;
@include_once("$board_skin_path/download.head.skin.php");
@include_once($board_skin_path.'/download.head.skin.php');
// 쿠키에 저장된 ID값과 넘어온 ID값을 비교하여 같지 않을 경우 오류 발생
// 다른곳에서 링크 거는것을 방지하기 위한 코드
if (!get_session("ss_view_{$bo_table}_{$wr_id}"))
alert("잘못된 접근입니다.");
if (!get_session('ss_view_'.$bo_table.'_'.$wr_id))
alert('잘못된 접근입니다.');
$sql = " select bf_source, bf_file from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_no = '$no' ";
$sql = " select bf_source, bf_file from {$g4[board_file_table]} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' and bf_no = '{$no}' ";
$file = sql_fetch($sql);
if (!$file[bf_file])
alert_close("파일 정보가 존재하지 않습니다.");
alert_close('파일 정보가 존재하지 않습니다.');
if ($member[mb_level] < $board[bo_download_level]) {
$alert_msg = "다운로드 권한이 없습니다.";
$alert_msg = '다운로드 권한이 없습니다.';
if ($member[mb_id])
alert($alert_msg);
else
alert($alert_msg . "\\n\\n회원이시라면 로그인 후 이용해 보십시오.", "./login.php?wr_id=$wr_id&$qstr&url=".urlencode("$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$wr_id"));
alert($alert_msg.PHP_EOL.PHP_EOL.'회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id=.'$wr_id.'&amp;'.$qstr.'&amp;url='.urlencode($g4['bbs_path'].'/board.php?bo_table='.$bo_table.'&amp;wr_id='.$wr_id));
}
$filepath = "$g4[path]/data/file/$bo_table/$file[bf_file]";
$filepath = $g4['path'].'/data/file/'.$bo_table.'/'.$file[bf_file];
$filepath = addslashes($filepath);
if (!is_file($filepath) || !file_exists($filepath))
alert("파일이 존재하지 않습니다.");
alert('파일이 존재하지 않습니다.');
// 사용자 코드 실행
@include_once("$board_skin_path/download.skin.php");
@include_once($board_skin_path.'/download.skin.php');
// 이미 다운로드 받은 파일인지를 검사한 후 게시물당 한번만 포인트를 차감하도록 수정
$ss_name = "ss_down_{$bo_table}_{$wr_id}";
$ss_name = 'ss_down_'.$bo_table.'_'.$wr_id;
if (!get_session($ss_name))
{
// 자신의 글이라면 통과
@ -43,27 +43,27 @@ if (!get_session($ss_name))
{
// 다운로드 포인트가 음수이고 회원의 포인트가 0 이거나 작다면
if ($member[mb_point] + $board[bo_download_point] < 0)
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없거나 모자라서 다운로드(".number_format($board[bo_download_point]).")가 불가합니다.\\n\\n포인트를 적립하신 후 다시 다운로드 해 주십시오.");
alert('보유하신 포인트('.number_format($member[mb_point]).')가 없거나 모자라서 다운로드('.number_format($board[bo_download_point]).')가 불가합니다.'.PHP_EOL.PHP_EOL.'포인트를 적립하신 후 다시 다운로드 해 주십시오.');
// 게시물당 한번만 차감하도록 수정
insert_point($member[mb_id], $board[bo_download_point], "$board[bo_subject] $wr_id 파일 다운로드", $bo_table, $wr_id, "다운로드");
insert_point($member[mb_id], $board[bo_download_point], "{$board[bo_subject]} {$wr_id} 파일 다운로드", $bo_table, $wr_id, "다운로드");
}
// 다운로드 카운트 증가
$sql = " update $g4[board_file_table] set bf_download = bf_download + 1 where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_no = '$no' ";
$sql = " update {$g4[board_file_table]} set bf_download = bf_download + 1 where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' and bf_no = '{$no}' ";
sql_query($sql);
set_session($ss_name, TRUE);
}
$g4[title] = "$group[gr_subject] > $board[bo_subject] > " . conv_subject($write[wr_subject], 255) . " > 다운로드";
$g4['title'] = '다운로드 &gt; '.conv_subject($write[wr_subject], 255).' &gt; '.$board[bo_subject].' &gt; '.$group[gr_subject];
if (preg_match("/^utf/i", $g4[charset]))
$original = urlencode($file[bf_source]);
else
$original = $file[bf_source];
@include_once("$board_skin_path/download.tail.skin.php");
@include_once($board_skin_path.'/download.tail.skin.php');
if(preg_match("/msie/i", $_SERVER[HTTP_USER_AGENT]) && preg_match("/5\.5/", $_SERVER[HTTP_USER_AGENT])) {
header("content-type: doesn/matter");
@ -80,7 +80,7 @@ header("pragma: no-cache");
header("expires: 0");
flush();
$fp = fopen("$filepath", "rb");
$fp = fopen($filepath, 'rb');
// 4.00 대체
// 서버부하를 줄이려면 print 나 echo 또는 while 문을 이용한 방법보다는 이방법이...

View File

@ -1,21 +1,21 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$sql = " select mb_id, mb_email, mb_datetime from $g4[member_table] where mb_id = '$mb_id' ";
$sql = " select mb_id, mb_email, mb_datetime from {$g4[member_table]} where mb_id = '{$mb_id}' ";
$row = sql_fetch($sql);
if (!$row[mb_id])
alert("존재하는 회원이 아닙니다.", $g4[path]);
alert('존재하는 회원이 아닙니다.', $g4['path']);
if ($mb_md5)
{
$tmp_md5 = md5($row[mb_id].$row[mb_email].$row[mb_datetime]);
if ($mb_md5 == $tmp_md5)
{
sql_query(" update $g4[member_table] set mb_email_certify = '$g4[time_ymdhis]' where mb_id = '$mb_id' ");
sql_query(" update {$g4[member_table]} set mb_email_certify = '{$g4[time_ymdhis]}' where mb_id = '{$mb_id}' ");
alert("E-mail 인증 처리를 완료 하였습니다.", $g4[path]);
alert('E-mail 인증 처리를 완료 하였습니다.', $g4['path']);
}
}
alert("제대로 된 값이 넘어오지 않았습니다.", $g4[path]);
alert('제대로 된 값이 넘어오지 않았습니다.', $g4['path']);
?>

View File

@ -1,21 +1,21 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$sql = " select mb_id, mb_email, mb_datetime from $g4[member_table] where mb_id = '$mb_id' ";
$sql = " select mb_id, mb_email, mb_datetime from {$g4[member_table]} where mb_id = '{$mb_id}' ";
$row = sql_fetch($sql);
if (!$row[mb_id])
alert("존재하는 회원이 아닙니다.", $g4[path]);
alert('존재하는 회원이 아닙니다.', $g4['path']);
if ($mb_md5)
{
$tmp_md5 = md5($row[mb_id].$row[mb_email].$row[mb_datetime]);
if ($mb_md5 == $tmp_md5)
{
sql_query(" update $g4[member_table] set mb_mailling = '0' where mb_id = '$mb_id' ");
sql_query(" update {$g4[member_table]} set mb_mailling = 0 where mb_id = '{$mb_id}' ");
alert("정보메일을 보내지 않도록 수신거부 하였습니다.", $g4[path]);
alert('정보메일을 보내지 않도록 수신거부 하였습니다.', $g4['path']);
}
}
alert("제대로 된 값이 넘어오지 않았습니다.", $g4[path]);
alert('제대로 된 값이 넘어오지 않았습니다.', $g4['path']);
?>

View File

@ -1,31 +1,31 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$config[cf_email_use])
alert("환경설정에서 \'메일발송 사용\'에 체크하셔야 메일을 발송할 수 있습니다.\\n\\n관리자에게 문의하시기 바랍니다.");
alert('환경설정에서 "메일발송 사용"에 체크하셔야 메일을 발송할 수 있습니다.'.PHP_EOL.PHP_EOL.'관리자에게 문의하시기 바랍니다.');
if (!$is_member && $config[cf_formmail_is_member])
alert_close("회원만 이용하실 수 있습니다.");
alert_close('회원만 이용하실 수 있습니다.');
if ($is_member && !$member[mb_open] && $is_admin != "super" && $member[mb_id] != $mb_id)
alert_close("자신의 정보를 공개하지 않으면 다른분에게 메일을 보낼 수 없습니다.\\n\\n정보공개 설정은 회원정보수정에서 하실 수 있습니다.");
alert_close('자신의 정보를 공개하지 않으면 다른분에게 메일을 보낼 수 없습니다.'.PHP_EOL.PHP_EOL.'정보공개 설정은 회원정보수정에서 하실 수 있습니다.');
if ($mb_id)
{
$mb = get_member($mb_id);
if (!$mb[mb_id])
alert_close("회원정보가 존재하지 않습니다.\\n\\n탈퇴하였을 수 있습니다.");
alert_close('회원정보가 존재하지 않습니다.'.PHP_EOL.PHP_EOL.'탈퇴한 회원일 수 있습니다.');
if (!$mb[mb_open] && $is_admin != "super")
alert_close("정보공개를 하지 않았습니다.");
alert_close('정보공개를 하지 않았습니다.');
}
$sendmail_count = (int)get_session('ss_sendmail_count') + 1;
if ($sendmail_count > 3)
alert_close('한번 접속후 일정수의 메일만 발송할 수 있습니다.\n\n계속해서 메일을 보내시려면 다시 로그인 또는 접속하여 주십시오.');
alert_close('한번 접속후 일정수의 메일만 발송할 수 있습니다.'.PHP_EOL.PHP_EOL.'계속해서 메일을 보내시려면 다시 로그인 또는 접속하여 주십시오.');
$g4[title] = "메일 쓰기";
include_once("$g4[path]/head.sub.php");
$g4['title'] = '메일 쓰기';
include_once($g4['path'].'/head.sub.php');
if (!$name)
$name = base64_decode($email);
@ -34,10 +34,10 @@ if (!isset($type))
$type = 0;
$type_checked[0] = $type_checked[1] = $type_checked[2] = "";
$type_checked[$type] = "checked";
$type_checked[$type] = 'checked';
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/formmail.skin.php");
$member_skin_path = $g4['path'].'/skin/member/'.$config[cf_member_skin];
include_once($member_skin_path.'/formmail.skin.php');
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,12 +1,12 @@
<?
include_once("./_common.php");
include_once("$g4[path]/lib/mailer.lib.php");
include_once('./_common.php');
include_once("$g4['path']/lib/mailer.lib.php");
if (!$config[cf_email_use])
alert("환경설정에서 \'메일발송 사용\'에 체크하셔야 메일을 발송할 수 있습니다.\\n\\n관리자에게 문의하시기 바랍니다.");
alert('환경설정에서 "메일발송 사용"에 체크하셔야 메일을 발송할 수 있습니다.'.PHP_EOL.PHP_EOL.'관리자에게 문의하시기 바랍니다.');
if (!$is_member && $config[cf_formmail_is_member])
alert_close("회원만 이용하실 수 있습니다.");
alert_close('회원만 이용하실 수 있습니다.');
$to = base64_decode($to);
@ -14,17 +14,17 @@ if (substr_count($to, "@") > 1)
alert_close('한번에 한사람에게만 메일을 발송할 수 있습니다.');
$key = get_session("captcha_keystring");
$key = get_session('captcha_keystring');
if (!($key && $key == $_POST[wr_key])) {
session_unregister("captcha_keystring");
alert("정상적인 접근이 아닌것 같습니다.");
session_unregister('captcha_keystring');
alert('정상적인 접근이 아닌것 같습니다.');
}
for ($i=1; $i<=$attach; $i++)
{
if ($_FILES["file".$i][name])
$file[] = attach_file($_FILES["file".$i][name], $_FILES["file".$i][tmp_name]);
if ($_FILES['file'.$i][name])
$file[] = attach_file($_FILES['file'.$i][name], $_FILES['file'.$i][tmp_name]);
}
$content = stripslashes($content);
@ -38,7 +38,7 @@ if ($type == 2)
if ($type)
{
$current_url = $g4[url];
$mail_content = "<html><head><meta http-equiv='content-type' content='text/html; charset=$g4[charset]'><title>메일보내기</title><link rel='stylesheet' href='$current_url/style.css' type='text/css'></head><body>$content</body></html>";
$mail_content = '<!doctype html><html lang="ko"><head><meta charset="'.$g4[charset].'"><title>메일보내기</title><link rel="stylesheet" href="'.$current_url.'/style.css"></head><body>'.$content.'</body></html>';
}
else
$mail_content = $content;
@ -46,10 +46,10 @@ else
mailer($fnick, $fmail, $to, $subject, $mail_content, $type, $file);
//$html_title = $tmp_to . "님께 메일발송";
$html_title = "메일 발송중";
include_once("$g4[path]/head.sub.php");
$html_title = '메일 발송중';
include_once($g4['path'].'/head.sub.php');
alert_close("메일을 정상적으로 발송하였습니다.");
alert_close('메일을 정상적으로 발송하였습니다.');
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,71 +1,71 @@
<?
include_once("./_common.php");
include_once('./_common.php');
@include_once("$board_skin_path/good.head.skin.php");
@include_once($board_skin_path.'/good.head.skin.php');
echo "<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'>";
echo '<meta charset="$g4[charset]">';
if (!$is_member)
{
$href = "./login.php?$qstr&url=".urlencode("./board.php?bo_table=$bo_table&wr_id=$wr_id");
$href = './login.php?$qstr&amp;url='.urlencode('./board.php?bo_table='.$bo_table.'&amp;wr_id='.$wr_id);
echo "<script type='text/javascript'>alert('회원만 가능합니다.'); top.location.href = '$href';</script>";
echo '<script>alert(\'회원만 가능합니다.\'); top.location.href = \''.$href.'\';</script>';
exit;
}
if (!($bo_table && $wr_id))
alert_close("값이 제대로 넘어오지 않았습니다.");
alert_close('값이 제대로 넘어오지 않았습니다.');
$ss_name = "ss_view_{$bo_table}_{$wr_id}";
$ss_name = 'ss_view_'.$bo_table.'_'.$wr_id;
if (!get_session($ss_name))
alert_close("해당 게시물에서만 추천 또는 비추천 하실 수 있습니다.");
alert_close('해당 게시물에서만 추천 또는 비추천 하실 수 있습니다.');
$row = sql_fetch(" select count(*) as cnt from {$g4[write_prefix]}{$bo_table} ", FALSE);
if (!$row[cnt])
alert_close("존재하는 게시판이 아닙니다.");
alert_close('존재하는 게시판이 아닙니다.');
if ($good == "good" || $good == "nogood")
if ($good == 'good' || $good == 'nogood')
{
if($write[mb_id] == $member[mb_id])
alert_close("자신의 글에는 추천 또는 비추천 하실 수 없습니다.");
alert_close('자신의 글에는 추천 또는 비추천 하실 수 없습니다.');
if (!$board[bo_use_good] && $good == "good")
alert_close("이 게시판은 추천 기능을 사용하지 않습니다.");
if (!$board[bo_use_good] && $good == 'good')
alert_close('이 게시판은 추천 기능을 사용하지 않습니다.');
if (!$board[bo_use_nogood] && $good == "nogood")
alert_close("이 게시판은 비추천 기능을 사용하지 않습니다.");
alert_close('이 게시판은 비추천 기능을 사용하지 않습니다.');
$sql = " select bg_flag from $g4[board_good_table]
where bo_table = '$bo_table'
and wr_id = '$wr_id'
and mb_id = '$member[mb_id]'
$sql = " select bg_flag from {$g4[board_good_table]}
where bo_table = '{$bo_table}'
and wr_id = '{$wr_id}'
and mb_id = '{$member[mb_id]}'
and bg_flag in ('good', 'nogood') ";
$row = sql_fetch($sql);
if ($row[bg_flag])
{
if ($row[bg_flag] == "good")
$status = "추천";
if ($row[bg_flag] == 'good')
$status = '추천';
else
$status = "비추천";
$status = '비추천';
echo "<script type='text/javascript'>alert('이미 \'$status\' 하신 글 입니다.');</script>";
echo '<script>alert(\'이미 \''.$status.'\' 하신 글 입니다.\');</script>';
}
else
{
// 추천(찬성), 비추천(반대) 카운트 증가
sql_query(" update {$g4[write_prefix]}{$bo_table} set wr_{$good} = wr_{$good} + 1 where wr_id = '$wr_id' ");
sql_query(" update {$g4[write_prefix]}{$bo_table} set wr_{$good} = wr_{$good} + 1 where wr_id = '{$wr_id}' ");
// 내역 생성
sql_query(" insert $g4[board_good_table] set bo_table = '$bo_table', wr_id = '$wr_id', mb_id = '$member[mb_id]', bg_flag = '$good', bg_datetime = '$g4[time_ymdhis]' ");
sql_query(" insert {$g4[board_good_table]} set bo_table = '{$bo_table}', wr_id = '{$wr_id}', mb_id = '{$member[mb_id]}', bg_flag = '{$good}', bg_datetime = '{$g4[time_ymdhis]}' ");
if ($good == "good")
$status = "추천";
if ($good == 'good')
$status = '추천';
else
$status = "비추천";
$status = '비추천';
echo "<script type='text/javascript'> alert('이 글을 \'$status\' 하셨습니다.');</script>";
echo '<script> alert(\'이 글을 \'$status\' 하셨습니다.\');</script>';
}
}
@include_once("$board_skin_path/good.tail.skin.php");
@include_once($board_skin_path.'/good.tail.skin.php');
?>
<script type="text/javascript"> window.close(); </script>
<script> window.close(); </script>

View File

@ -1,11 +1,11 @@
<?
// 상대 경로
$g4_path = "..";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4_path = '..';
include_once($g4_path'./common.php');
include_once("$g4['path']/lib/latest.lib.php");
$g4[title] = $group[gr_subject];
include_once("./_head.php");
$g4['title'] = $group[gr_subject];
include_once('./_head.php');
?>
<!-- 메인화면 최신글 시작 -->
@ -35,5 +35,5 @@ include_once("./_head.php");
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$html_title = "$group[gr_subject] > $board[bo_subject] > " . conv_subject($write[wr_subject], 255) . " > 링크";

View File

@ -130,7 +130,7 @@ while ($row = sql_fetch_array($result))
$k++;
}
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "./board.php?bo_table=$bo_table".$qstr."&page=");
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "./board.php?bo_table=$bo_table".$qstr."&amp;page=");
$list_href = '';
$prev_part_href = '';
@ -142,11 +142,11 @@ if ($sca || $stx)
//if ($prev_spt >= $min_spt)
$prev_spt = $spt - $config[cf_search_part];
if (isset($min_spt) && $prev_spt >= $min_spt)
$prev_part_href = "./board.php?bo_table=$bo_table".$qstr."&spt=$prev_spt&page=1";
$prev_part_href = "./board.php?bo_table=$bo_table".$qstr."&spt=$prev_spt&amp;page=1";
$next_spt = $spt + $config[cf_search_part];
if ($next_spt < 0)
$next_part_href = "./board.php?bo_table=$bo_table".$qstr."&spt=$next_spt&page=1";
$next_part_href = "./board.php?bo_table=$bo_table".$qstr."&spt=$next_spt&amp;page=1";
}
$write_href = "";

View File

@ -1,8 +1,8 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$g4[title] = "로그인";
include_once("./_head.php");
$g4['title'] = "로그인";
include_once('./_head.php');
$p = parse_url($url);
if ($p['scheme'] || $p['host']) {
@ -15,7 +15,7 @@ if ($member[mb_id])
if ($url)
goto_url($url);
else
goto_url($g4[path]);
goto_url($g4['path']);
}
if ($url)
@ -23,9 +23,9 @@ if ($url)
else
$urlencode = urlencode($_SERVER[REQUEST_URI]);
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/login.skin.php");
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$mb_id = $_POST[mb_id];
$mb_password = $_POST[mb_password];
@ -23,25 +23,25 @@ $mb = get_member($mb_id);
// 회원아이디를 입력해 보고 맞으면 또 패스워드를 입력해보는 경우를 방지하기 위해서입니다.
// 불법사용자의 경우 회원아이디가 틀린지, 패스워드가 틀린지를 알기까지는 많은 시간이 소요되기 때문입니다.
if (!$mb[mb_id] || (sql_password($mb_password) != $mb[mb_password])) {
alert("가입된 회원이 아니거나 패스워드가 틀립니다.\\n\\n패스워드는 대소문자를 구분합니다.");
alert("가입된 회원이 아니거나 패스워드가 틀립니다..PHP_EOL.PHP_EOL.패스워드는 대소문자를 구분합니다.");
}
// 차단된 아이디인가?
if ($mb[mb_intercept_date] && $mb[mb_intercept_date] <= date("Ymd", $g4[server_time])) {
$date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1년 \\2월 \\3일", $mb[mb_intercept_date]);
alert("회원님의 아이디는 접근이 금지되어 있습니다.\\n\\n처리일 : $date");
alert("회원님의 아이디는 접근이 금지되어 있습니다..PHP_EOL.PHP_EOL.처리일 : $date");
}
// 탈퇴한 아이디인가?
if ($mb[mb_leave_date] && $mb[mb_leave_date] <= date("Ymd", $g4[server_time])) {
$date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1년 \\2월 \\3일", $mb[mb_leave_date]);
alert("탈퇴한 아이디이므로 접근하실 수 없습니다.\\n\\n탈퇴일 : $date");
alert("탈퇴한 아이디이므로 접근하실 수 없습니다..PHP_EOL.PHP_EOL.탈퇴일 : $date");
}
if ($config[cf_use_email_certify] && !preg_match("/[1-9]/", $mb[mb_email_certify]))
alert("메일인증을 받으셔야 로그인 하실 수 있습니다.\\n\\n회원님의 메일주소는 $mb[mb_email] 입니다.");
alert("메일인증을 받으셔야 로그인 하실 수 있습니다..PHP_EOL.PHP_EOL.회원님의 메일주소는 $mb[mb_email] 입니다.");
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
@include_once("$member_skin_path/login_check.skin.php");
// 회원아이디 세션 생성
@ -85,7 +85,7 @@ if ($url)
}
}
else
$link = $g4[path];
$link = $g4['path'];
goto_url($link);
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 이호경님 제안 코드
session_unset(); // 모든 세션변수를 언레지스터 시켜줌
@ -18,9 +18,9 @@ if ($url) {
$link = $url;
} else if ($bo_table) {
$link = "$g4[bbs_path]/board.php?bo_table=$bo_table";
$link = "$g4['bbs_path']/board.php?bo_table=$bo_table";
} else {
$link = $g4[path];
$link = $g4['path'];
}
goto_url($link);

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$member[mb_id])
alert("로그인 한 회원만 접근하실 수 있습니다.");
@ -11,11 +11,11 @@ else
$urlencode = urlencode($_SERVER[REQUEST_URI]);
*/
$g4[title] = "회원 패스워드 확인";
include_once("./_head.php");
$g4['title'] = "회원 패스워드 확인";
include_once('./_head.php');
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/member_confirm.skin.php");
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,8 +1,8 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$g4[title] = "E-mail 중복확인";
include_once("$g4[path]/head.sub.php");
$g4['title'] = "E-mail 중복확인";
include_once($g4['path'].'/head.sub.php');
$mb_email = trim($mb_email);
@ -14,7 +14,7 @@ $row = sql_fetch($sql);
if ($row[mb_email]) {
echo <<<HEREDOC
<script type="text/javascript">
<script>
alert("'{$mb_email}'은(는) 이미 다른 회원이 사용하는 E-mail이므로 사용하실 수 없습니다.");
//opener.fmbform.mb_email_enabled.value = "0"; // 새창으로 열 경우에...
parent.document.getElementById("mb_email_enabled").value = -1;
@ -24,7 +24,7 @@ HEREDOC;
} else {
if (!preg_match("/([0-9a-zA-Z_-]+)@([0-9a-zA-Z_-]+)\.([0-9a-zA-Z_-]+)/", $mb_email)) {
echo <<<HEREDOC
<script type="text/javascript">
<script>
alert("'{$mb_email}'은(는) E-mail 주소 형식이 아니므로 사용하실 수 없습니다.");
parent.document.getElementById("mb_email_enabled").value = "";
window.close();
@ -32,8 +32,8 @@ HEREDOC;
HEREDOC;
} else {
echo <<<HEREDOC
<script type="text/javascript">
alert("'{$mb_email}'은(는) 중복된 E-mail이 없습니다.\\n\\n사용하셔도 좋습니다.");
<script>
alert("'{$mb_email}'은(는) 중복된 E-mail이 없습니다..PHP_EOL.PHP_EOL.사용하셔도 좋습니다.");
parent.document.getElementById("mb_email_enabled").value = 1;
window.close();
</script>
@ -41,5 +41,5 @@ HEREDOC;
}
}
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,15 +1,15 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$g4[title] = "회원아이디 중복확인";
include_once("$g4[path]/head.sub.php");
$g4['title'] = "회원아이디 중복확인";
include_once($g4['path'].'/head.sub.php');
$mb_id = trim($mb_id);
$mb = get_member($mb_id);
if ($mb[mb_id])
{
echo "<script type=\"text/javascript\">";
echo "<script>";
echo "alert(\"'{$mb_id}'은(는) 이미 가입된 회원아이디 이므로 사용하실 수 없습니다.\");";
echo "parent.document.getElementById(\"mb_id_enabled\").value = -1;";
echo "window.close();";
@ -19,7 +19,7 @@ else
{
if (preg_match("/[\,]?{$mb_id}/i", $config[cf_prohibit_id]))
{
echo "<script type=\"text/javascript\">";
echo "<script>";
echo "alert(\"'{$mb_id}'은(는) 예약어로 사용하실 수 없는 회원아이디입니다.\");";
echo "parent.document.getElementById(\"mb_id_enabled\").value = -2;";
echo "window.close();";
@ -27,13 +27,13 @@ else
}
else
{
echo "<script type=\"text/javascript\">";
echo "alert(\"'{$mb_id}'은(는) 중복된 회원아이디가 없습니다.\\n\\n사용하셔도 좋습니다.\");";
echo "<script>";
echo "alert(\"'{$mb_id}'은(는) 중복된 회원아이디가 없습니다..PHP_EOL.PHP_EOL.사용하셔도 좋습니다.\");";
echo "parent.document.getElementById(\"mb_id_enabled\").value = 1;";
echo "window.close();";
echo "</script>";
}
}
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$member[mb_id])
alert("회원만 접근하실 수 있습니다.");
@ -19,7 +19,7 @@ sql_query($sql);
session_unregister("ss_mb_id");
if (!$url)
$url = $g4[path];
$url = $g4['path'];
alert("{$member[mb_nick]}님께서는 " . date("Y년 m월 d일") . "에 회원에서 탈퇴 하셨습니다.", $url);
?>

View File

@ -1,14 +1,14 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$g4[title] = "별명 중복확인";
include_once("$g4[path]/head.sub.php");
$g4['title'] = "별명 중복확인";
include_once($g4['path'].'/head.sub.php');
$mb_nick = trim($mb_nick);
// 별명은 한글, 영문, 숫자만 가능
if (!check_string($mb_nick, _G4_HANGUL_ + _G4_ALPHABETIC_ + _G4_NUMERIC_)) {
echo "<script type='text/javascript'>";
echo "<script>";
echo "alert(\"별명은 공백없이 한글, 영문, 숫자만 입력 가능합니다.\");";
echo "parent.document.getElementById('mb_nick_enabled').value = '';";
echo "window.close();";
@ -18,20 +18,20 @@ if (!check_string($mb_nick, _G4_HANGUL_ + _G4_ALPHABETIC_ + _G4_NUMERIC_)) {
$mb = sql_fetch(" select mb_nick from $g4[member_table] where mb_nick = '$mb_nick' ");
if ($mb[mb_nick]) {
echo "<script type='text/javascript'>";
echo "<script>";
echo "alert(\"'{$mb_nick}'은(는) 이미 다른분께서 사용하고 있는 별명이므로 사용하실 수 없습니다.\");";
echo "parent.document.getElementById('mb_nick_enabled').value = -1;";
echo "window.close();";
echo "</script>";
} else {
if (preg_match("/[\,]?{$mb_nick}/i", $config[cf_prohibit_id])) {
echo "<script type='text/javascript'>";
echo "<script>";
echo "alert(\"'{$mb_nick}'은(는) 예약어로 사용하실 수 없는 별명입니다.\");";
echo "parent.document.getElementById('mb_nick_enabled').value = -2;";
echo "window.close();";
echo "</script>";
} else {
echo "<script type='text/javascript'>";
echo "<script>";
echo "alert(\"'{$mb_nick}'은(는) 별명으로 사용할 수 있습니다.\");";
echo "parent.document.getElementById('mb_nick_enabled').value = 1;";
echo "window.close();";
@ -39,5 +39,5 @@ if ($mb[mb_nick]) {
}
}
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,11 +1,11 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$member[mb_id])
alert_close("회원만 이용하실 수 있습니다.");
$g4[title] = "내 쪽지함";
include_once("$g4[path]/head.sub.php");
$g4['title'] = "내 쪽지함";
include_once($g4['path'].'/head.sub.php');
// 설정일이 지난 메모 삭제
$sql = " delete from $g4[memo_table]
@ -74,10 +74,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$list[$i][del_href] = "./memo_delete.php?me_id=$row[me_id]&kind=$kind";
}
echo "<script type='text/javascript' src='$g4[path]/js/sideview.js'></script>";
echo "<script src='$g4['path']/js/sideview.js'></script>";
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/memo.skin.php");
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$member[mb_id])
alert("회원만 이용하실 수 있습니다.");

View File

@ -1,11 +1,11 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$member[mb_id])
alert_close("회원만 이용하실 수 있습니다.");
if (!$member[mb_open] && $is_admin != "super" && $member[mb_id] != $mb_id)
alert_close("자신의 정보를 공개하지 않으면 다른분에게 쪽지를 보낼 수 없습니다.\\n\\n정보공개 설정은 회원정보수정에서 하실 수 있습니다.");
alert_close("자신의 정보를 공개하지 않으면 다른분에게 쪽지를 보낼 수 없습니다..PHP_EOL.PHP_EOL.정보공개 설정은 회원정보수정에서 하실 수 있습니다.");
$content = "";
// 탈퇴한 회원에게 쪽지 보낼 수 없음
@ -13,7 +13,7 @@ if ($me_recv_mb_id)
{
$mb = get_member($me_recv_mb_id);
if (!$mb[mb_id])
alert_close("회원정보가 존재하지 않습니다.\\n\\n탈퇴하였을 수 있습니다.");
alert_close("회원정보가 존재하지 않습니다..PHP_EOL.PHP_EOL.탈퇴하였을 수 있습니다.");
if (!$mb[mb_open] && $is_admin != "super")
alert_close("정보공개를 하지 않았습니다.");
@ -31,11 +31,11 @@ if ($me_recv_mb_id)
}
}
$g4[title] = "쪽지 보내기";
include_once("$g4[path]/head.sub.php");
$g4['title'] = "쪽지 보내기";
include_once($g4['path'].'/head.sub.php');
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/memo_form.skin.php");
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$member[mb_id])
alert("회원만 이용하실 수 있습니다.");
@ -30,7 +30,7 @@ for ($i=0; $i<count($recv_list); $i++) {
$error_msg = implode(",", $error_list);
if ($error_msg && !$is_admin)
alert("회원아이디 \'".$error_msg."\' 은(는) 존재(또는 정보공개)하지 않는 회원아이디 이거나 탈퇴, 접근차단된 회원아이디 입니다.\\n\\n쪽지를 발송하지 않았습니다.");
alert("회원아이디 \'".$error_msg."\' 은(는) 존재(또는 정보공개)하지 않는 회원아이디 이거나 탈퇴, 접근차단된 회원아이디 입니다..PHP_EOL.PHP_EOL.쪽지를 발송하지 않았습니다.");
if (!$is_admin) {
if (count($member_list['id'])) {

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$member[mb_id])
alert("회원만 이용하실 수 있습니다.");
@ -26,8 +26,8 @@ else
alert("\$kind 값을 넘겨주세요.");
}
$g4[title] = "{$t} 쪽지 보기";
include_once("$g4[path]/head.sub.php");
$g4['title'] = "{$t} 쪽지 보기";
include_once($g4['path'].'/head.sub.php');
$sql = " select * from $g4[memo_table]
where me_id = '$me_id'
@ -61,10 +61,10 @@ else
$mb = get_member($memo["me_{$unkind}_mb_id"]);
echo "<script type='text/javascript' src='$g4[path]/js/sideview.js'></script>";
echo "<script src='$g4['path']/js/sideview.js'></script>";
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/memo_view.skin.php");
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if ($sw == "move")
$act = "이동";
@ -12,8 +12,8 @@ else
if ($is_admin != "board" && $is_admin != "group" && $is_admin != "super")
alert_close("게시판 관리자 이상 접근이 가능합니다.");
$g4[title] = "게시물 " . $act;
include_once("$g4[path]/head.sub.php");
$g4['title'] = "게시물 " . $act;
include_once($g4['path'].'/head.sub.php');
$wr_id_list = "";
if ($wr_id)
@ -125,7 +125,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
</form>
<script type='text/javascript'>
<script>
function fboardmoveall_submit(f)
{
var check = false;
@ -161,5 +161,5 @@ function fboardmoveall_submit(f)
</td></tr></table>
<?
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 게시판 관리자 이상 복사, 이동 가능
if ($is_admin != 'board' && $is_admin != 'group' && $is_admin != 'super')
@ -9,7 +9,7 @@ if ($sw != "move" && $sw != "copy")
alert("sw 값이 제대로 넘어오지 않았습니다.");
// 원본 파일 디렉토리
$src_dir = "$g4[path]/data/file/$bo_table";
$src_dir = "$g4['path']/data/file/$bo_table";
$save = array();
$save_count_write = 0;
@ -28,8 +28,8 @@ while ($row = sql_fetch_array($result))
$move_bo_table = $_POST['chk_bo_table'][$i];
$move_write_table = $g4['write_prefix'] . $move_bo_table;
$src_dir = "$g4[path]/data/file/$bo_table"; // 원본 디렉토리
$dst_dir = "$g4[path]/data/file/$move_bo_table"; // 복사본 디렉토리
$src_dir = "$g4['path']/data/file/$bo_table"; // 원본 디렉토리
$dst_dir = "$g4['path']/data/file/$move_bo_table"; // 복사본 디렉토리
$count_write = 0;
$count_comment = 0;
@ -174,11 +174,11 @@ if ($sw == "move")
}
$msg = "해당 게시물을 선택한 게시판으로 $act 하였습니다.";
$opener_href = "./board.php?bo_table=$bo_table&page=$page&$qstr";
$opener_href = "./board.php?bo_table=$bo_table&amp;page=$page&amp;$qstr";
echo <<<HEREDOC
<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>
<script type="text/javascript">
<script>
alert("{$msg}");
opener.document.location.href = "{$opener_href}";
window.close();

View File

@ -1,8 +1,8 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$g4[title] = "최근 게시물";
include_once("./_head.php");
$g4['title'] = "최근 게시물";
include_once('./_head.php');
$sql_common = " from $g4[board_new_table] a, $g4[board_table] b, $g4[group_table] c
where a.bo_table = b.bo_table and b.gr_id = c.gr_id and b.bo_use_search = '1' ";
@ -88,7 +88,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$list[$i][bo_table] = $row[bo_table];
$list[$i][name] = $name;
$list[$i][comment] = $comment;
$list[$i][href] = "./board.php?bo_table=$row[bo_table]&wr_id=$row2[wr_id]{$comment_link}";
$list[$i][href] = "./board.php?bo_table=$row[bo_table]&amp;wr_id=$row2[wr_id]{$comment_link}";
$list[$i][datetime] = $datetime;
$list[$i][datetime2] = $datetime2;
@ -97,13 +97,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$list[$i][wr_subject] = $row2[wr_subject];
}
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "?gr_id=$gr_id&view=$view&mb_id=$mb_id&page=");
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "?gr_id=$gr_id&view=$view&mb_id=$mb_id&amp;page=");
$new_skin_path = "$g4[path]/skin/new/$config[cf_new_skin]";
$new_skin_path = "$g4['path']/skin/new/$config[cf_new_skin]";
echo "<script type=\"text/javascript\" src=\"$g4[path]/js/sideview.js\"></script>\n";
echo "<script src=\"$g4['path']/js/sideview.js\"></script>\n";
include_once("$new_skin_path/new.skin.php");
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -58,4 +58,4 @@ if ($config[cf_use_norobot]) {
set_session("ss_norobot_key", "");
}
?>
<script type='text/javascript'> var md5_norobot_key = '<?=md5($norobot_key)?>'; </script>
<script> var md5_norobot_key = '<?=md5($norobot_key)?>'; </script>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
function echo_check_image($str, $width, $height, $background_color, $text_color, $grid_color)
{

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if ($w == "u")
$action = "./write.php";
@ -11,25 +11,25 @@ else if ($w == "s")
{
// 패스워드 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감
if ($is_admin || ($member[mb_id] == $write[mb_id] && $write[mb_id]))
goto_url("./board.php?bo_table=$bo_table&wr_id=$wr_id");
goto_url("./board.php?bo_table=$bo_table&amp;wr_id=$wr_id");
else
$action = "./password_check.php";
}
else
alert("w 값이 제대로 넘어오지 않았습니다.");
$g4[title] = "패스워드 입력";
include_once("$g4[path]/head.sub.php");
$g4['title'] = "패스워드 입력";
include_once($g4['path'].'/head.sub.php');
if ($board[bo_include_head]) { @include ($board[bo_include_head]); }
if ($board[bo_content_head]) { echo stripslashes($board[bo_content_head]); }
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/password.skin.php");
if ($board[bo_content_tail]) { echo stripslashes($board[bo_content_tail]); }
if ($board[bo_include_tail]) { @include ($board[bo_include_tail]); }
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,8 +1,8 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if ($w == "s") {
$qstr = "bo_table=$bo_table&sfl=$sfl&stx=$stx&sop=$sop&wr_id=$wr_id&page=$page";
$qstr = "bo_table=$bo_table&sfl=$sfl&stx=$stx&sop=$sop&amp;wr_id=$wr_id&amp;page=$page";
$wr = get_write($write_table, $wr_id);

View File

@ -1,11 +1,11 @@
<?
die("이 프로그램은 더 이상 사용하지 않습니다. 그누보드 4.32.09 를 참고하세요.");
include_once("./_common.php");
include_once('./_common.php');
if ($member[mb_id])
{
echo <<<HEREDOC
<script type="text/javascript">
<script>
alert("이미 로그인중입니다.");
window.close();
opener.document.location.reload();
@ -14,11 +14,11 @@ HEREDOC;
exit;
}
$g4[title] = "회원아이디/패스워드 찾기";
include_once("$g4[path]/head.sub.php");
$g4['title'] = "회원아이디/패스워드 찾기";
include_once($g4['path'].'/head.sub.php');
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/password_forget.skin.php");
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,6 +1,6 @@
<?
die("이 프로그램은 더 이상 사용하지 않습니다. 그누보드 4.32.09 를 참고하세요.");
include_once("./_common.php");
include_once('./_common.php');
// 토큰 생성
$token = md5(uniqid(rand(), true));
@ -23,14 +23,14 @@ if (!$mb[mb_id])
else if (is_admin($mb[mb_id]))
alert("관리자 아이디는 접근 불가합니다.");
$g4[title] = "패스워드 찾기 2단계";
include_once("$g4[path]/head.sub.php");
$g4['title'] = "패스워드 찾기 2단계";
include_once($g4['path'].'/head.sub.php');
// 081022 : CSRF 보안 결함으로 인한 코드 수정
$mb[mb_password_q] = get_text($mb[mb_password_q]);
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/password_forget2.skin.php");
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,6 +1,6 @@
<?
die("이 프로그램은 더 이상 사용하지 않습니다. 그누보드 4.32.09 를 참고하세요.");
include_once("./_common.php");
include_once('./_common.php');
/*
$wr_key = trim($_POST[wr_key]);
@ -24,8 +24,8 @@ else if ($mb_password_a !== $mb[mb_password_a])
else if (is_admin($mb[mb_id]))
alert("관리자 아이디는 접근 불가합니다.");
$g4[title] = "패스워드 찾기 3단계";
include_once("$g4[path]/head.sub.php");
$g4['title'] = "패스워드 찾기 3단계";
include_once($g4['path'].'/head.sub.php');
// 난수 발생
list($usec, $sec) = explode(" ", microtime());
@ -39,8 +39,8 @@ $sql = " update $g4[member_table]
where mb_id = '$mb[mb_id]' ";
sql_query($sql);
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/password_forget3.skin.php");
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,9 +1,9 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if ($member[mb_id])
{
echo "<script type='text/javascript'>";
echo "<script>";
echo "alert('이미 로그인중입니다.');";
echo "window.close();";
echo "opener.document.location.reload();";
@ -11,11 +11,11 @@ if ($member[mb_id])
exit;
}
$g4[title] = "회원아이디/패스워드 찾기";
include_once("$g4[path]/head.sub.php");
$g4['title'] = "회원아이디/패스워드 찾기";
include_once($g4['path'].'/head.sub.php');
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/password_lost.skin.php");
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,10 +1,10 @@
<?
include_once("./_common.php");
include_once("$g4[path]/lib/mailer.lib.php");
include_once('./_common.php');
include_once("$g4['path']/lib/mailer.lib.php");
if ($member[mb_id])
{
echo "<script type='text/javascript'>";
echo "<script>";
echo "alert('이미 로그인중입니다.');";
echo "window.close();";
echo "opener.document.location.reload();";
@ -26,7 +26,7 @@ if (!$email)
$sql = " select count(*) as cnt from $g4[member_table] where mb_email = '$email' ";
$row = sql_fetch($sql);
if ($row[cnt] > 1)
alert("동일한 메일주소가 2개 이상 존재합니다.\\n\\n관리자에게 문의하여 주십시오.");
alert("동일한 메일주소가 2개 이상 존재합니다..PHP_EOL.PHP_EOL.관리자에게 문의하여 주십시오.");
$sql = " select mb_no, mb_id, mb_name, mb_nick, mb_email, mb_datetime from $g4[member_table] where mb_email = '$email' ";
$mb = sql_fetch($sql);
@ -84,5 +84,5 @@ $content .= "</div>";
$admin = get_admin('super');
mailer($admin[mb_nick], $admin[mb_email], $mb[mb_email], $subject, $content, 1);
alert_close("$email 메일로 회원아이디와 패스워드를 인증할 수 있는 메일이 발송 되었습니다.\\n\\n메일을 확인하여 주십시오.");
alert_close("$email 메일로 회원아이디와 패스워드를 인증할 수 있는 메일이 발송 되었습니다..PHP_EOL.PHP_EOL.메일을 확인하여 주십시오.");
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 오류시 공히 Error 라고 처리하는 것은 회원정보가 있는지? 패스워드가 틀린지? 를 알아보려는 해킹에 대비한것
@ -19,7 +19,7 @@ sql_query(" update $g4[member_table] set mb_lost_certify = '' where mb_no = '$mb
// 변경될 패스워드가 넘어와야하고 저장된 변경패스워드를 md5 로 변환하여 같으면 정상
if ($mb_lost_certify && $mb_datetime === sql_password($mb[mb_datetime]) && $mb_lost_certify === $mb[mb_lost_certify]) {
sql_query(" update $g4[member_table] set mb_password = '$mb[mb_lost_certify]' where mb_no = '$mb_no' ");
alert("이메일로 보내드린 패스워드로 변경 하였습니다.\\n\\n회원아이디와 변경된 패스워드로 로그인 하시기 바랍니다.", "$g4[url]/$g4[bbs]/login.php");
alert("이메일로 보내드린 패스워드로 변경 하였습니다..PHP_EOL.PHP_EOL.회원아이디와 변경된 패스워드로 로그인 하시기 바랍니다.", "$g4[url]/$g4[bbs]/login.php");
}
else {
die("Error");

View File

@ -1,11 +1,11 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$member[mb_id])
alert_close("회원만 조회하실 수 있습니다.");
$g4[title] = $member[mb_nick] . "님의 포인트 내역";
include_once("$g4[path]/head.sub.php");
$g4['title'] = $member[mb_nick] . "님의 포인트 내역";
include_once($g4['path'].'/head.sub.php');
$list = array();
@ -27,7 +27,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
<td align="center" valign="middle" bgcolor="#EBEBEB"><table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$g4[bbs_img_path]?>/icon_01.gif" width="5" height="5"></td>
<td width="" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b><?=$g4[title]?></b></font></td>
<td width="" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b><?=$g4['title']?></b></font></td>
</tr>
</table></td>
</tr>
@ -100,7 +100,7 @@ HEREDOC;
</table></td>
</tr>
<tr>
<td height="30" align="center"><?=get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");?></td>
<td height="30" align="center"><?=get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&amp;page=");?></td>
</tr>
<tr>
<td height="30" align="center" bgcolor="#F6F6F6">
@ -167,7 +167,7 @@ if ($i == 0)
</table>
<table width='100%' cellpadding=3 cellspacing=0>
<tr><td height=45 align=center><?=get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");?></td></tr>
<tr><td height=45 align=center><?=get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&amp;page=");?></td></tr>
</table>
<table width='99%' align=center cellpadding=1 cellspacing=0 bgcolor=#CCCCCC>
@ -189,5 +189,5 @@ if ($i == 0)
<?*/?>
<?
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,6 +1,6 @@
<?
include_once("./_common.php");
include_once("$g4[path]/lib/mailer.lib.php");
include_once('./_common.php');
include_once("$g4['path']/lib/mailer.lib.php");
if ($w == "")
{

View File

@ -1,11 +1,11 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$po = sql_fetch(" select * from $g4[poll_table] where po_id = '$po_id' ");
if (!$po[po_id])
alert_close('설문조사 정보가 없습니다.');
$g4[title] = "설문조사 결과";
$g4['title'] = "설문조사 결과";
$po_subject = $po[po_subject];
@ -83,14 +83,14 @@ for ($i=0; $row2=sql_fetch_array($result); $i++)
$list3[$i][subject] = cut_str($row2[po_subject],60,"");
}
include_once("$g4[path]/head.sub.php");
include_once($g4['path'].'/head.sub.php');
echo "<script type='text/javascript' src='$g4[path]/js/sideview.js'></script>";
echo "<script src='$g4['path']/js/sideview.js'></script>";
if (!$skin_dir) $skin_dir = "basic";
$poll_skin_path = "$g4[path]/skin/poll/$skin_dir";
$poll_skin_path = "$g4['path']/skin/poll/$skin_dir";
if (!file_exists("$poll_skin_path/poll_result.skin.php")) die("skin error");
include_once ("$poll_skin_path/poll_result.skin.php");
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$po = sql_fetch(" select * from $g4[poll_table] where po_id = '$_POST[po_id]' ");
if (!$po[po_id])

View File

@ -1,21 +1,21 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$member[mb_id])
alert_close("회원만 이용하실 수 있습니다.");
if (!$member[mb_open] && $is_admin != "super" && $member[mb_id] != $mb_id)
alert_close("자신의 정보를 공개하지 않으면 다른분의 정보를 조회할 수 없습니다.\\n\\n정보공개 설정은 회원정보수정에서 하실 수 있습니다.");
alert_close("자신의 정보를 공개하지 않으면 다른분의 정보를 조회할 수 없습니다..PHP_EOL.PHP_EOL.정보공개 설정은 회원정보수정에서 하실 수 있습니다.");
$mb = get_member($mb_id);
if (!$mb[mb_id])
alert_close("회원정보가 존재하지 않습니다.\\n\\n탈퇴하였을 수 있습니다.");
alert_close("회원정보가 존재하지 않습니다..PHP_EOL.PHP_EOL.탈퇴하였을 수 있습니다.");
if (!$mb[mb_open] && $is_admin != "super" && $member[mb_id] != $mb_id)
alert_close("정보공개를 하지 않았습니다.");
$g4[title] = $mb[mb_nick] . "님의 자기소개";
include_once("$g4[path]/head.sub.php");
$g4['title'] = $mb[mb_nick] . "님의 자기소개";
include_once($g4['path'].'/head.sub.php');
$mb_nick = get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_email], $mb[mb_homepage], $mb[mb_open]);
@ -27,10 +27,10 @@ $mb_reg_after = $row[days];
$mb_homepage = set_http($mb[mb_homepage]);
$mb_profile = $mb[mb_profile] ? conv_content($mb[mb_profile],0) : "소개 내용이 없습니다.";
echo "<script type='text/javascript' src='$g4[path]/js/sideview.js'></script>";
echo "<script src='$g4['path']/js/sideview.js'></script>";
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/profile.skin.php");
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,17 +1,17 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 로그인중인 경우 회원가입 할 수 없습니다.
if ($member[mb_id])
goto_url($g4[path]);
goto_url($g4['path']);
// 세션을 지웁니다.
set_session("ss_mb_reg", "");
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
$g4[title] = "회원가입약관";
include_once("./_head.php");
$g4['title'] = "회원가입약관";
include_once('./_head.php');
include_once("$member_skin_path/register.skin.php");
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 불법접근을 막도록 토큰생성
$token = md5(uniqid(rand(), true));
@ -10,7 +10,7 @@ if ($w == "") {
// 경고창이 뜨는것을 막기위해 아래의 코드로 대체
// alert("이미 로그인중이므로 회원 가입 하실 수 없습니다.", "./");
if ($member[mb_id])
goto_url($g4[path]);
goto_url($g4['path']);
// 리퍼러 체크
referer_check();
@ -30,7 +30,7 @@ if ($w == "") {
if ($row[mb_name] == $mb_name)
alert("이미 가입되어 있습니다.");
else
alert("다른 이름으로 같은 주민등록번호가 이미 가입되어 있습니다.\\n\\n관리자에게 문의해 주십시오.");
alert("다른 이름으로 같은 주민등록번호가 이미 가입되어 있습니다..PHP_EOL.PHP_EOL.관리자에게 문의해 주십시오.");
}
// 주민등록번호의 7번째 한자리 숫자
@ -59,15 +59,15 @@ if ($w == "") {
$member[mb_sex] = $sex;
$member[mb_name] = $mb_name;
$g4[title] = "회원 가입";
$g4['title'] = "회원 가입";
}
else if ($w == "u")
{
if ($is_admin)
alert("관리자의 회원정보는 관리자 화면에서 수정해 주십시오.", $g4[path]);
alert("관리자의 회원정보는 관리자 화면에서 수정해 주십시오.", $g4['path']);
if (!$member[mb_id])
alert("로그인 후 이용하여 주십시오.", $g4[path]);
alert("로그인 후 이용하여 주십시오.", $g4['path']);
if ($member[mb_id] != $mb_id)
alert("로그인된 회원과 넘어온 정보가 서로 다릅니다.");
@ -91,7 +91,7 @@ else if ($w == "u")
alert("패스워드가 틀립니다.");
}
$g4[title] = "회원 정보 수정";
$g4['title'] = "회원 정보 수정";
$member[mb_email] = get_text($member[mb_email]);
$member[mb_homepage] = get_text($member[mb_homepage]);
@ -119,11 +119,11 @@ else if ($w == "u")
alert("w 값이 제대로 넘어오지 않았습니다.");
// 회원아이콘 경로
$mb_icon = "$g4[path]/data/member/".substr($member[mb_id],0,2)."/$member[mb_id].gif";
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$mb_icon = "$g4['path']/data/member/".substr($member[mb_id],0,2)."/$member[mb_id].gif";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
include_once("./_head.php");
include_once('./_head.php');
include_once("./norobot.inc.php"); // 자동등록방지
include_once("$member_skin_path/register_form.skin.php");
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,6 +1,6 @@
<?
include_once("./_common.php");
include_once("$g4[path]/lib/mailer.lib.php");
include_once('./_common.php');
include_once("$g4['path']/lib/mailer.lib.php");
/*
// 081022 : CSRF 에서 토큰 비교는 의미 없음
@ -28,7 +28,7 @@ if (!($w == "" || $w == "u"))
alert("w 값이 제대로 넘어오지 않았습니다.");
if ($w == "u" && $is_admin == "super") {
if (file_exists("$g4[path]/DEMO"))
if (file_exists("$g4['path']/DEMO"))
alert("데모 화면에서는 하실(보실) 수 없는 작업입니다.");
}
@ -91,7 +91,7 @@ if ($w == '' || $w == 'u')
if ($row[mb_name] == $mb_name)
alert("이미 가입되어 있습니다.");
else
alert("다른 이름으로 같은 주민등록번호가 이미 가입되어 있습니다.\\n\\n관리자에게 문의해 주십시오.");
alert("다른 이름으로 같은 주민등록번호가 이미 가입되어 있습니다..PHP_EOL.PHP_EOL.관리자에게 문의해 주십시오.");
}
}
}
@ -116,7 +116,7 @@ if ($w == '' || $w == 'u')
}
}
$mb_dir = "$g4[path]/data/member/".substr($mb_id,0,2);
$mb_dir = "$g4['path']/data/member/".substr($mb_id,0,2);
// 아이콘 삭제
if ($del_mb_icon)
@ -265,7 +265,7 @@ else if ($w == "u")
alert("로그인 되어 있지 않습니다.");
if ($_SESSION["ss_mb_id"] != $_POST[mb_id])
alert("로그인된 정보와 수정하려는 정보가 틀리므로 수정할 수 없습니다.\\n\\n만약 올바르지 않은 방법을 사용하신다면 바로 중지하여 주십시오.");
alert("로그인된 정보와 수정하려는 정보가 틀리므로 수정할 수 없습니다..PHP_EOL.PHP_EOL.만약 올바르지 않은 방법을 사용하신다면 바로 중지하여 주십시오.");
$sql_password = "";
if ($mb_password)
@ -348,11 +348,11 @@ else if ($w == "u")
// 사용자 코드 실행
@include_once ("$g4[path]/skin/member/$config[cf_member_skin]/register_update.skin.php");
@include_once ("$g4['path']/skin/member/$config[cf_member_skin]/register_update.skin.php");
if ($msg)
echo "<script type='text/javascript'>alert('{$msg}');</script>";
echo "<script>alert('{$msg}');</script>";
/*
// 결과페이지는 https 에서 http 로 변경이 되어야 함
@ -372,7 +372,7 @@ if ($w == "") {
if ($old_email != $mb_email && $config[cf_use_email_certify]) {
set_session("ss_mb_id", "");
alert("회원 정보가 수정 되었습니다.\\n\\nE-mail 주소가 변경되었으므로 다시 인증하셔야 합니다.", $g4[path]);
alert("회원 정보가 수정 되었습니다..PHP_EOL.PHP_EOL.E-mail 주소가 변경되었으므로 다시 인증하셔야 합니다.", $g4['path']);
} else {
echo "
<html><title>회원정보수정</title><meta http-equiv='Content-Type' content='text/html; charset=$g4[charset]'></html><body>
@ -382,7 +382,7 @@ if ($w == "") {
<input type='hidden' name='mb_password' value='{$tmp_password}'>
<input type='hidden' name='is_update' value='1'>
</form>
<script type='text/javascript'>
<script>
alert('회원 정보가 수정 되었습니다.');
document.fregisterupdate.submit();
</script>

View File

@ -1,15 +1,15 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$mb = get_member($_SESSION[ss_mb_reg]);
// 회원정보가 없다면 초기 페이지로 이동
if (!$mb[mb_id])
goto_url($g4[path]);
goto_url($g4['path']);
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
$g4[title] = "회원가입결과";
include_once("./_head.php");
$g4['title'] = "회원가입결과";
include_once('./_head.php');
include_once("$member_skin_path/register_result.skin.php");
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 특수문자 변환
function specialchars_replace($str, $len=0) {
@ -62,7 +62,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
echo "<item>\n";
echo "<title>".specialchars_replace($row[wr_subject])."</title>\n";
echo "<link>".specialchars_replace("$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$row[wr_id]")."</link>\n";
echo "<link>".specialchars_replace("$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&amp;wr_id=$row[wr_id]")."</link>\n";
echo "<description><![CDATA[".$file . conv_content($row[wr_content], $html)."]]></description>\n";
echo "<dc:creator>".specialchars_replace($row[wr_name])."</dc:creator>\n";
$date = $row[wr_datetime];

View File

@ -1,11 +1,11 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$member[mb_id])
alert_close("회원만 조회하실 수 있습니다.");
$g4[title] = $member[mb_nick] . "님의 스크랩";
include_once("$g4[path]/head.sub.php");
$g4['title'] = $member[mb_nick] . "님의 스크랩";
include_once($g4['path'].'/head.sub.php');
$list = array();
@ -50,14 +50,14 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$list[$i][num] = $num;
$list[$i][opener_href] = "./board.php?bo_table=$row[bo_table]";
$list[$i][opener_href_wr_id] = "./board.php?bo_table=$row[bo_table]&wr_id=$row[wr_id]";
$list[$i][opener_href_wr_id] = "./board.php?bo_table=$row[bo_table]&amp;wr_id=$row[wr_id]";
$list[$i][bo_subject] = $row2[bo_subject];
$list[$i][subject] = $subject;
$list[$i][del_href] = "./scrap_delete.php?ms_id=$row[ms_id]&page=$page";
$list[$i][del_href] = "./scrap_delete.php?ms_id=$row[ms_id]&amp;page=$page";
}
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/scrap.skin.php");
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$member[mb_id])
alert("회원만 이용하실 수 있습니다.");

View File

@ -1,12 +1,12 @@
<?
include_once("./_common.php");
include_once('./_common.php');
include_once("$g4[path]/head.sub.php");
include_once($g4['path'].'/head.sub.php');
if (!$member[mb_id]) {
$href = "./login.php?$qstr&url=".urlencode("./board.php?bo_table=$bo_table&wr_id=$wr_id");
$href = "./login.php?$qstr&amp;url=".urlencode("./board.php?bo_table=$bo_table&amp;wr_id=$wr_id");
echo <<<HEREDOC
<script type="text/javascript">
<script>
alert("회원만 접근 가능합니다.");
opener.location.href = "$href";
window.close();
@ -16,7 +16,7 @@ HEREDOC;
}
echo <<<HEREDOC
<script type="text/javascript">
<script>
if (window.name != "scrap") {
alert("올바른 방법으로 사용해 주십시오.");
window.close();
@ -34,8 +34,8 @@ $sql = " select count(*) as cnt from $g4[scrap_table]
$row = sql_fetch($sql);
if ($row[cnt]) {
echo <<<HEREDOC
<script type="text/javascript">
if (confirm('이미 스크랩하신 글 입니다.\\n\\n지금 스크랩을 확인하시겠습니까?'))
<script>
if (confirm('이미 스크랩하신 글 입니다..PHP_EOL.PHP_EOL.지금 스크랩을 확인하시겠습니까?'))
document.location.href = './scrap.php';
else
window.close();
@ -44,8 +44,8 @@ HEREDOC;
exit;
}
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/scrap_popin.skin.php");
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,12 +1,12 @@
<?
include_once("./_common.php");
include_once('./_common.php');
include_once("$g4[path]/head.sub.php");
include_once($g4['path'].'/head.sub.php');
if (!$member[mb_id])
{
$href = "./login.php?$qstr&url=".urlencode("./board.php?bo_table=$bo_table&wr_id=$wr_id");
echo "<script type='text/javascript'> alert('회원만 접근 가능합니다.'); top.location.href = '$href'; </script>";
$href = "./login.php?$qstr&amp;url=".urlencode("./board.php?bo_table=$bo_table&amp;wr_id=$wr_id");
echo "<script> alert('회원만 접근 가능합니다.'); top.location.href = '$href'; </script>";
exit;
}
@ -18,8 +18,8 @@ $row = sql_fetch($sql);
if ($row[cnt])
{
echo "
<script type='text/javascript'>
if (confirm('이미 스크랩하신 글 입니다.\\n\\n지금 스크랩을 확인하시겠습니까?'))
<script>
if (confirm('이미 스크랩하신 글 입니다..PHP_EOL.PHP_EOL.지금 스크랩을 확인하시겠습니까?'))
document.location.href = './scrap.php';
else
window.close();
@ -85,8 +85,8 @@ $sql = " insert into $g4[scrap_table] ( mb_id, bo_table, wr_id, ms_datetime )
sql_query($sql);
echo <<<HEREDOC
<script type="text/javascript">
if (confirm("이 글을 스크랩 하였습니다.\\n\\n지금 스크랩을 확인하시겠습니까?"))
<script>
if (confirm("이 글을 스크랩 하였습니다..PHP_EOL.PHP_EOL.지금 스크랩을 확인하시겠습니까?"))
document.location.href = "./scrap.php";
else
window.close();

View File

@ -1,10 +1,10 @@
<?
include_once("./_common.php");
include_once('./_common.php');
//if (!$stx) alert("검색어가 없습니다.");
$g4[title] = "검색 : " . $stx;
include_once("./_head.php");
$g4['title'] = "검색 : " . $stx;
include_once('./_head.php');
if ($stx)
{
@ -172,7 +172,7 @@ if ($stx)
{
// 검색어까지 링크되면 게시판 부하가 일어남
$list[$idx][$i] = $row;
$list[$idx][$i][href] = "./board.php?bo_table=$search_table[$idx]&wr_id=$row[wr_parent]";
$list[$idx][$i][href] = "./board.php?bo_table=$search_table[$idx]&amp;wr_id=$row[wr_parent]";
if ($row[wr_is_comment])
{
@ -216,9 +216,9 @@ if ($stx)
$from_record = 0;
}
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$search_query&gr_id=$gr_id&srows=$srows&onetable=$onetable&page=");
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$search_query&gr_id=$gr_id&srows=$srows&onetable=$onetable&amp;page=");
echo "<script type=\"text/javascript\" src=\"$g4[path]/js/sideview.js\"></script>";
echo "<script src=\"$g4['path']/js/sideview.js\"></script>";
}
$group_select = "<select id='gr_id' name='gr_id' class=select><option value=''>전체 분류";
@ -231,8 +231,8 @@ $group_select .= "</select>";
if (!$sfl) $sfl = "wr_subject";
if (!$sop) $sop = "or";
$search_skin_path = "$g4[path]/skin/search/$config[cf_search_skin]";
$search_skin_path = "$g4['path']/skin/search/$config[cf_search_skin]";
include_once("$search_skin_path/search.skin.php");
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -4,9 +4,9 @@
//
define("_GNUBOARD_", TRUE);
include_once("./_common.php");
include_once('./_common.php');
// 오류는 write_log() 함수로 남긴다.
include_once("$g4[path]/lib/etc.lib.php");
include_once("$g4['path']/lib/etc.lib.php");
function tb_xml_msg($error, $msg="")
{
@ -40,7 +40,7 @@ $wr = sql_fetch($sql, FALSE);
if (!$wr[wr_id] || !($_POST[title] && $_POST[excerpt] && $_POST[url] && $_POST[blog_name]))
{
$tmp_dir = str_replace("/tb.php", "", $_SERVER[SCRIPT_NAME]);
header("location:$tmp_dir/board.php?bo_table=$bo_table&wr_id=$wr_id");
header("location:$tmp_dir/board.php?bo_table=$bo_table&amp;wr_id=$wr_id");
exit;
}
@ -48,7 +48,7 @@ if (!$wr[wr_id] || !($_POST[title] && $_POST[excerpt] && $_POST[url] && $_POST[b
if (!$to_token)
{
if (isset($_POST))
write_log("$g4[path]/data/log/tb.log", $_POST);
write_log("$g4['path']/data/log/tb.log", $_POST);
echo tb_xml_msg(1, "토큰값이 넘어오지 않았습니다.");
exit;
@ -118,7 +118,7 @@ if ($_POST[title])
$msg = "$write_table TABLE INSERT 오류";
}
//write_log("$g4[path]/data/log/aaa", $msg);
//write_log("$g4['path']/data/log/aaa", $msg);
if ($msg) // 비정상(오류)
{
@ -130,7 +130,7 @@ if ($_POST[title])
// 메일발송 사용
if ($config[cf_email_use] && $board[bo_use_email])
{
include_once("$g4[path]/lib/mailer.lib.php");
include_once("$g4['path']/lib/mailer.lib.php");
// 관리자의 정보를 얻고
$super_admin = get_admin("super");

View File

@ -1,10 +1,10 @@
<?
// 토큰 생성
include_once("./_common.php");
include_once('./_common.php');
// 오류는 write_log() 로 잡는다.
include_once("$g4[path]/lib/etc.lib.php");
//write_log("$g4[path]/lib/log/aaa", 1);
include_once("$g4['path']/lib/etc.lib.php");
//write_log("$g4['path']/lib/log/aaa", 1);
if (isset($g4['token_time']) == false)
$g4['token_time'] = 3;

View File

@ -13,11 +13,11 @@ $sql_search = "";
if ($sca || $stx) {
// where 문을 얻음
$sql_search = get_sql_search($sca, $sfl, $stx, $sop);
$search_href = "./board.php?bo_table=$bo_table&page=$page" . $qstr;
$search_href = "./board.php?bo_table=$bo_table&amp;page=$page" . $qstr;
$list_href = "./board.php?bo_table=$bo_table";
} else {
$search_href = "";
$list_href = "./board.php?bo_table=$bo_table&page=$page";
$list_href = "./board.php?bo_table=$bo_table&amp;page=$page";
}
if (!$board[bo_use_list_view]) {
@ -47,14 +47,14 @@ if (!$board[bo_use_list_view]) {
$prev_href = "";
if ($prev[wr_id]) {
$prev_wr_subject = get_text(cut_str($prev[wr_subject], 255));
$prev_href = "./board.php?bo_table=$bo_table&wr_id=$prev[wr_id]&page=$page" . $qstr;
$prev_href = "./board.php?bo_table=$bo_table&amp;wr_id=$prev[wr_id]&amp;page=$page" . $qstr;
}
// 다음글 링크
$next_href = "";
if ($next[wr_id]) {
$next_wr_subject = get_text(cut_str($next[wr_subject], 255));
$next_href = "./board.php?bo_table=$bo_table&wr_id=$next[wr_id]&page=$page" . $qstr;
$next_href = "./board.php?bo_table=$bo_table&amp;wr_id=$next[wr_id]&amp;page=$page" . $qstr;
}
// 쓰기 링크
@ -65,30 +65,30 @@ if ($member[mb_level] >= $board[bo_write_level])
// 답변 링크
$reply_href = "";
if ($member[mb_level] >= $board[bo_reply_level])
$reply_href = "./write.php?w=r&bo_table=$bo_table&wr_id=$wr_id" . $qstr;
$reply_href = "./write.php?w=r&bo_table=$bo_table&amp;wr_id=$wr_id" . $qstr;
// 수정, 삭제 링크
$update_href = $delete_href = "";
// 로그인중이고 자신의 글이라면 또는 관리자라면 패스워드를 묻지 않고 바로 수정, 삭제 가능
if (($member[mb_id] && ($member[mb_id] == $write[mb_id])) || $is_admin) {
$update_href = "./write.php?w=u&bo_table=$bo_table&wr_id=$wr_id&page=$page" . $qstr;
$delete_href = "javascript:del('./delete.php?bo_table=$bo_table&wr_id=$wr_id&page=$page".urldecode($qstr)."');";
$update_href = "./write.php?w=u&bo_table=$bo_table&amp;wr_id=$wr_id&amp;page=$page" . $qstr;
$delete_href = "javascript:del('./delete.php?bo_table=$bo_table&amp;wr_id=$wr_id&amp;page=$page".urldecode($qstr)."');";
if ($is_admin)
{
set_session("ss_delete_token", $token = uniqid(time()));
$delete_href = "javascript:del('./delete.php?bo_table=$bo_table&wr_id=$wr_id&token=$token&page=$page".urldecode($qstr)."');";
$delete_href = "javascript:del('./delete.php?bo_table=$bo_table&amp;wr_id=$wr_id&token=$token&amp;page=$page".urldecode($qstr)."');";
}
}
else if (!$write[mb_id]) { // 회원이 쓴 글이 아니라면
$update_href = "./password.php?w=u&bo_table=$bo_table&wr_id=$wr_id&page=$page" . $qstr;
$delete_href = "./password.php?w=d&bo_table=$bo_table&wr_id=$wr_id&page=$page" . $qstr;
$update_href = "./password.php?w=u&bo_table=$bo_table&amp;wr_id=$wr_id&amp;page=$page" . $qstr;
$delete_href = "./password.php?w=d&bo_table=$bo_table&amp;wr_id=$wr_id&amp;page=$page" . $qstr;
}
// 최고, 그룹관리자라면 글 복사, 이동 가능
$copy_href = $move_href = "";
if ($write[wr_reply] == "" && ($is_admin == "super" || $is_admin == "group")) {
$copy_href = "javascript:win_open('./move.php?sw=copy&bo_table=$bo_table&wr_id=$wr_id&page=$page".$qstr."', 'boardcopy', 'left=50, top=50, width=500, height=550, scrollbars=1');";
$move_href = "javascript:win_open('./move.php?sw=move&bo_table=$bo_table&wr_id=$wr_id&page=$page".$qstr."', 'boardmove', 'left=50, top=50, width=500, height=550, scrollbars=1');";
$copy_href = "javascript:win_open('./move.php?sw=copy&bo_table=$bo_table&amp;wr_id=$wr_id&amp;page=$page".$qstr."', 'boardcopy', 'left=50, top=50, width=500, height=550, scrollbars=1');";
$move_href = "javascript:win_open('./move.php?sw=move&bo_table=$bo_table&amp;wr_id=$wr_id&amp;page=$page".$qstr."', 'boardmove', 'left=50, top=50, width=500, height=550, scrollbars=1');";
}
$scrap_href = "";
@ -96,15 +96,15 @@ $good_href = "";
$nogood_href = "";
if ($member[mb_id]) {
// 스크랩 링크
$scrap_href = "./scrap_popin.php?bo_table=$bo_table&wr_id=$wr_id";
$scrap_href = "./scrap_popin.php?bo_table=$bo_table&amp;wr_id=$wr_id";
// 추천 링크
if ($board[bo_use_good])
$good_href = "./good.php?bo_table=$bo_table&wr_id=$wr_id&good=good";
$good_href = "./good.php?bo_table=$bo_table&amp;wr_id=$wr_id&good=good";
// 비추천 링크
if ($board[bo_use_nogood])
$nogood_href = "./good.php?bo_table=$bo_table&wr_id=$wr_id&good=nogood";
$nogood_href = "./good.php?bo_table=$bo_table&amp;wr_id=$wr_id&good=nogood";
}
$view = get_view($write, $board, $board_skin_path, 255);
@ -147,7 +147,7 @@ if ($board[bo_use_signature] && $view[mb_id])
$signature = conv_content($signature, 1);
}
echo "<script type='text/javascript' src='{$g4['path']}/js/ajax.js'></script>";
echo "<script src='{$g4['path']}/js/ajax.js'></script>";
include_once("$board_skin_path/view.skin.php");
@include_once("$board_skin_path/view.tail.skin.php");

View File

@ -66,7 +66,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ($row[mb_id] == $member[mb_id] || $is_admin)
{
$list[$i][del_link] = "./delete_comment.php?bo_table=$bo_table&comment_id=$row[wr_id]&token=$token&cwin=$cwin&page=$page".$qstr;
$list[$i][del_link] = "./delete_comment.php?bo_table=$bo_table&comment_id=$row[wr_id]&token=$token&amp;cwin=$cwin&amp;page=$page".$qstr;
$list[$i][is_edit] = true;
$list[$i][is_del] = true;
}
@ -74,7 +74,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
else
{
if (!$row[mb_id]) {
$list[$i][del_link] = "./password.php?w=x&bo_table=$bo_table&comment_id=$row[wr_id]&cwin=$cwin&page=$page".$qstr;
$list[$i][del_link] = "./password.php?w=x&bo_table=$bo_table&comment_id=$row[wr_id]&amp;cwin=$cwin&amp;page=$page".$qstr;
$list[$i][is_del] = true;
}
}
@ -113,11 +113,11 @@ else
include_once("$board_skin_path/view_comment.skin.php");
// 필터
//echo "<script type='text/javascript'> var g4_cf_filter = '$config[cf_filter]'; </script>\n";
//echo "<script type='text/javascript' src='$g4[path]/js/filter.js'></script>\n";
//echo "<script> var g4_cf_filter = '$config[cf_filter]'; </script>\n";
//echo "<script src='$g4['path']/js/filter.js'></script>\n";
if (!$member[mb_id]) // 비회원일 경우에만
echo "<script type='text/javascript' src='$g4[path]/js/md5.js'></script>\n";
echo "<script src='$g4['path']/js/md5.js'></script>\n";
@include_once("$board_skin_path/view_comment.tail.skin.php");
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
set_session('ss_bo_table', $_REQUEST['bo_table']);
set_session('ss_wr_id', $_REQUEST['wr_id']);
@ -8,15 +8,15 @@ set_session('ss_wr_id', $_REQUEST['wr_id']);
if (!$board[bo_table])
{
if ($cwin) // 코멘트 보기
alert_close("존재하지 않는 게시판입니다.", $g4[path]);
alert_close("존재하지 않는 게시판입니다.", $g4['path']);
else
alert("존재하지 않는 게시판입니다.", $g4[path]);
alert("존재하지 않는 게시판입니다.", $g4['path']);
}
if (!$bo_table)
alert("bo_table 값이 넘어오지 않았습니다.\\n\\nwrite.php?bo_table=code 와 같은 방식으로 넘겨 주세요.", $g4[path]);
alert("bo_table 값이 넘어오지 않았습니다..PHP_EOL.PHP_EOL.write.php?bo_table=code 와 같은 방식으로 넘겨 주세요.", $g4['path']);
@include_once ("$g4[path]/skin/board/write.head.skin.php");
@include_once ("$g4['path']/skin/board/write.head.skin.php");
@include_once ("$board_skin_path/write.head.skin.php");
$notice_array = explode("\n", trim($board[bo_notice]));
@ -24,25 +24,25 @@ $notice_array = explode("\n", trim($board[bo_notice]));
if ($w == "")
{
if (isset($wr_id))
alert("글쓰기에는 \$wr_id 값을 사용하지 않습니다.", "$g4[bbs_path]/board.php?bo_table=$bo_table");
alert("글쓰기에는 \$wr_id 값을 사용하지 않습니다.", "$g4['bbs_path']/board.php?bo_table=$bo_table");
if ($member[mb_level] < $board[bo_write_level]) {
if ($member[mb_id])
alert("글을 쓸 권한이 없습니다.");
else
alert("글을 쓸 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.", "./login.php?$qstr&url=".urlencode("$_SERVER[PHP_SELF]?bo_table=$bo_table"));
alert("글을 쓸 권한이 없습니다..PHP_EOL.PHP_EOL.회원이시라면 로그인 후 이용해 보십시오.", "./login.php?$qstr&amp;url=".urlencode("$_SERVER[PHP_SELF]?bo_table=$bo_table"));
}
/*
if ($member[mb_point] + $board[bo_write_point] < 0 && !$is_admin)
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없거나 모자라서 글쓰기(".number_format($board[bo_write_point]).")가 불가합니다.\\n\\n포인트를 적립하신 후 다시 글쓰기 해 주십시오.");
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없거나 모자라서 글쓰기(".number_format($board[bo_write_point]).")가 불가합니다..PHP_EOL.PHP_EOL.포인트를 적립하신 후 다시 글쓰기 해 주십시오.");
*/
// 음수도 true 인것을 왜 이제야 알았을까?
//$tmp_point = $member[mb_point] ? $member[mb_point] : 0;
$tmp_point = ($member[mb_point] > 0) ? $member[mb_point] : 0;
if ($tmp_point + $board[bo_write_point] < 0 && !$is_admin)
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없거나 모자라서 글쓰기(".number_format($board[bo_write_point]).")가 불가합니다.\\n\\n포인트를 적립하신 후 다시 글쓰기 해 주십시오.");
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없거나 모자라서 글쓰기(".number_format($board[bo_write_point]).")가 불가합니다..PHP_EOL.PHP_EOL.포인트를 적립하신 후 다시 글쓰기 해 주십시오.");
$title_msg = "글쓰기";
}
@ -56,7 +56,7 @@ else if ($w == "u")
if ($member[mb_id])
alert("글을 수정할 권한이 없습니다.");
else
alert("글을 수정할 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.", "./login.php?$qstr&url=".urlencode("$_SERVER[PHP_SELF]?bo_table=$bo_table"));
alert("글을 수정할 권한이 없습니다..PHP_EOL.PHP_EOL.회원이시라면 로그인 후 이용해 보십시오.", "./login.php?$qstr&amp;url=".urlencode("$_SERVER[PHP_SELF]?bo_table=$bo_table"));
}
$len = strlen($write[wr_reply]);
@ -71,7 +71,7 @@ else if ($w == "u")
and wr_is_comment = 0 ";
$row = sql_fetch($sql);
if ($row[cnt] && !$is_admin)
alert("이 글과 관련된 답변글이 존재하므로 수정 할 수 없습니다.\\n\\n답변글이 있는 원글은 수정할 수 없습니다.");
alert("이 글과 관련된 답변글이 존재하므로 수정 할 수 없습니다..PHP_EOL.PHP_EOL.답변글이 있는 원글은 수정할 수 없습니다.");
// 코멘트 달린 원글의 수정 여부
$sql = " select count(*) as cnt from $write_table
@ -80,7 +80,7 @@ else if ($w == "u")
and wr_is_comment = 1 ";
$row = sql_fetch($sql);
if ($row[cnt] >= $board[bo_count_modify] && !$is_admin)
alert("이 글과 관련된 코멘트가 존재하므로 수정 할 수 없습니다.\\n\\n코멘트가 {$board[bo_count_modify]}건 이상 달린 원글은 수정할 수 없습니다.");
alert("이 글과 관련된 코멘트가 존재하므로 수정 할 수 없습니다..PHP_EOL.PHP_EOL.코멘트가 {$board[bo_count_modify]}건 이상 달린 원글은 수정할 수 없습니다.");
$title_msg = "글수정";
}
@ -90,17 +90,17 @@ else if ($w == "r")
if ($member[mb_id])
alert("글을 답변할 권한이 없습니다.");
else
alert("글을 답변할 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.", "./login.php?$qstr&url=".urlencode("$_SERVER[PHP_SELF]?bo_table=$bo_table"));
alert("글을 답변할 권한이 없습니다..PHP_EOL.PHP_EOL.회원이시라면 로그인 후 이용해 보십시오.", "./login.php?$qstr&amp;url=".urlencode("$_SERVER[PHP_SELF]?bo_table=$bo_table"));
}
/*
if ($member[mb_point] + $board[bo_comment_point] < 0)
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없거나 모자라서 글답변(".number_format($board[bo_comment_point]).")가 불가합니다.\\n\\n포인트를 적립하신 후 다시 글답변 해 주십시오.");
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없거나 모자라서 글답변(".number_format($board[bo_comment_point]).")가 불가합니다..PHP_EOL.PHP_EOL.포인트를 적립하신 후 다시 글답변 해 주십시오.");
*/
$tmp_point = $member[mb_point] ? $member[mb_point] : 0;
if ($tmp_point + $board[bo_write_point] < 0 && !$is_admin)
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없거나 모자라서 글답변(".number_format($board[bo_comment_point]).")가 불가합니다.\\n\\n포인트를 적립하신 후 다시 글답변 해 주십시오.");
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없거나 모자라서 글답변(".number_format($board[bo_comment_point]).")가 불가합니다..PHP_EOL.PHP_EOL.포인트를 적립하신 후 다시 글답변 해 주십시오.");
//if (preg_match("/[^0-9]{0,1}{$wr_id}[\r]{0,1}/",$board[bo_notice]))
if (in_array((int)$wr_id, $notice_array))
@ -131,7 +131,7 @@ else if ($w == "r")
// 최대 답변은 테이블에 잡아놓은 wr_reply 사이즈만큼만 가능합니다.
if (strlen($reply_array[wr_reply]) == 10)
alert("더 이상 답변하실 수 없습니다.\\n\\n답변은 10단계 까지만 가능합니다.");
alert("더 이상 답변하실 수 없습니다..PHP_EOL.PHP_EOL.답변은 10단계 까지만 가능합니다.");
$reply_len = strlen($reply_array[wr_reply]) + 1;
if ($board[bo_reply_order]) {
@ -151,7 +151,7 @@ else if ($w == "r")
if (!$row[reply])
$reply_char = $begin_reply_char;
else if ($row[reply] == $end_reply_char) // A~Z은 26 입니다.
alert("더 이상 답변하실 수 없습니다.\\n\\n답변은 26개 까지만 가능합니다.");
alert("더 이상 답변하실 수 없습니다..PHP_EOL.PHP_EOL.답변은 26개 까지만 가능합니다.");
else
$reply_char = chr(ord($row[reply]) + $reply_number);
@ -166,7 +166,7 @@ else if ($w == "r")
if ($group[gr_use_access])
{
if (!$member[mb_id])
alert("접근 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.", "login.php?$qstr&url=".urlencode("$_SERVER[PHP_SELF]?bo_table=$bo_table"));
alert("접근 권한이 없습니다..PHP_EOL.PHP_EOL.회원이시라면 로그인 후 이용해 보십시오.", "login.php?$qstr&amp;url=".urlencode("$_SERVER[PHP_SELF]?bo_table=$bo_table"));
if ($is_admin == 'super' || $group[gr_admin] == $member[mb_id] || $board[bo_admin] == $member[mb_id])
; // 통과
@ -175,14 +175,14 @@ if ($group[gr_use_access])
$sql = " select gr_id from $g4[group_member_table] where gr_id = '$board[gr_id]' and mb_id = '$member[mb_id]' ";
$row = sql_fetch($sql);
if (!$row[gr_id])
alert("접근 권한이 없으므로 글쓰기가 불가합니다.\\n\\n궁금하신 사항은 관리자에게 문의 바랍니다.");
alert("접근 권한이 없으므로 글쓰기가 불가합니다..PHP_EOL.PHP_EOL.궁금하신 사항은 관리자에게 문의 바랍니다.");
}
}
$g4[title] = "$group[gr_subject] > $board[bo_subject] > " . $title_msg;
$g4['title'] = "$group[gr_subject] > $board[bo_subject] > " . $title_msg;
if (($w == "u" || $w == "r") && !$write[wr_id])
alert("글이 존재하지 않습니다.\\n\\n삭제되었거나 이동된 경우입니다.", $g4[path]);
alert("글이 존재하지 않습니다..PHP_EOL.PHP_EOL.삭제되었거나 이동된 경우입니다.", $g4['path']);
$is_notice = false;
if ($is_admin && $w != "r")
@ -356,7 +356,7 @@ else
$write_max = (int)$board[bo_write_max];
}
include_once("$g4[path]/head.sub.php");
include_once($g4['path'].'/head.sub.php');
include_once("./board_head.php");
// 자동등록방지
@ -397,14 +397,14 @@ if ($file_length < 0)
include_once ("$board_skin_path/write.skin.php");
if (!$member[mb_id])
echo "<script type='text/javascript' src='$g4[path]/js/md5.js'></script>\n";
echo "<script src='$g4['path']/js/md5.js'></script>\n";
// 필터
//echo "<script type='text/javascript'> var g4_cf_filter = '$config[cf_filter]'; </script>\n";
//echo "<script type='text/javascript' src='$g4[path]/js/filter.js'></script>\n";
//echo "<script> var g4_cf_filter = '$config[cf_filter]'; </script>\n";
//echo "<script src='$g4['path']/js/filter.js'></script>\n";
include_once("./board_tail.php");
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
@include_once ("$board_skin_path/write.tail.skin.php");
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 090710
if (substr_count($wr_content, "&#") > 50) {
@ -9,7 +9,7 @@ if (substr_count($wr_content, "&#") > 50) {
@include_once("$board_skin_path/write_comment_update.head.skin.php");
$g4[title] = $wr_subject . "코멘트입력";
$g4['title'] = $wr_subject . "코멘트입력";
$w = $_POST["w"];
$wr_name = strip_tags($_POST["wr_name"]);
@ -51,7 +51,7 @@ if ($row[prev_md5] == $curr_md5 && $w != 'cu' && !$is_admin)
$wr = get_write($write_table, $wr_id);
if (!$wr[wr_id])
alert("글이 존재하지 않습니다.\\n\\n글이 삭제되었거나 이동하였을 수 있습니다.");
alert("글이 존재하지 않습니다..PHP_EOL.PHP_EOL.글이 삭제되었거나 이동하였을 수 있습니다.");
// 자동등록방지 검사
//include_once ("./norobot_check.inc.php");
@ -90,12 +90,12 @@ if ($w == "c") // 코멘트 입력
{
/*
if ($member[mb_point] + $board[bo_comment_point] < 0 && !$is_admin)
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없거나 모자라서 코멘트쓰기(".number_format($board[bo_comment_point]).")가 불가합니다.\\n\\n포인트를 적립하신 후 다시 코멘트를 써 주십시오.");
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없거나 모자라서 코멘트쓰기(".number_format($board[bo_comment_point]).")가 불가합니다..PHP_EOL.PHP_EOL.포인트를 적립하신 후 다시 코멘트를 써 주십시오.");
*/
// 코멘트쓰기 포인트설정시 회원의 포인트가 음수인 경우 코멘트를 쓰지 못하던 버그를 수정 (곱슬최씨님)
$tmp_point = ($member[mb_point] > 0) ? $member[mb_point] : 0;
if ($tmp_point + $board[bo_comment_point] < 0 && !$is_admin)
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없거나 모자라서 코멘트쓰기(".number_format($board[bo_comment_point]).")가 불가합니다.\\n\\n포인트를 적립하신 후 다시 코멘트를 써 주십시오.");
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없거나 모자라서 코멘트쓰기(".number_format($board[bo_comment_point]).")가 불가합니다..PHP_EOL.PHP_EOL.포인트를 적립하신 후 다시 코멘트를 써 주십시오.");
// 코멘트 답변
if ($comment_id)
@ -104,12 +104,12 @@ if ($w == "c") // 코멘트 입력
where wr_id = '$comment_id' ";
$reply_array = sql_fetch($sql);
if (!$reply_array[wr_id])
alert("답변할 코멘트가 없습니다.\\n\\n답변하는 동안 코멘트가 삭제되었을 수 있습니다.");
alert("답변할 코멘트가 없습니다..PHP_EOL.PHP_EOL.답변하는 동안 코멘트가 삭제되었을 수 있습니다.");
$tmp_comment = $reply_array[wr_comment];
if (strlen($reply_array[wr_comment_reply]) == 5)
alert("더 이상 답변하실 수 없습니다.\\n\\n답변은 5단계 까지만 가능합니다.");
alert("더 이상 답변하실 수 없습니다..PHP_EOL.PHP_EOL.답변은 5단계 까지만 가능합니다.");
$reply_len = strlen($reply_array[wr_comment_reply]) + 1;
if ($board[bo_reply_order]) {
@ -140,7 +140,7 @@ if ($w == "c") // 코멘트 입력
if (!$row[reply])
$reply_char = $begin_reply_char;
else if ($row[reply] == $end_reply_char) // A~Z은 26 입니다.
alert("더 이상 답변하실 수 없습니다.\\n\\n답변은 26개 까지만 가능합니다.");
alert("더 이상 답변하실 수 없습니다..PHP_EOL.PHP_EOL.답변은 26개 까지만 가능합니다.");
else
$reply_char = chr(ord($row[reply]) + $reply_number);
@ -219,9 +219,9 @@ if ($w == "c") // 코멘트 입력
$subject = "'{$board[bo_subject]}' 게시판에 {$str}글이 올라왔습니다.";
// 4.00.15 - 메일로 보내는 코멘트의 바로가기 링크 수정
$link_url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$wr_id&$qstr#c_{$comment_id}";
$link_url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&amp;wr_id=$wr_id&amp;$qstr#c_{$comment_id}";
include_once("$g4[path]/lib/mailer.lib.php");
include_once("$g4['path']/lib/mailer.lib.php");
ob_start();
include_once ("./write_update_mail.php");
@ -339,5 +339,5 @@ else if ($w == "cu") // 코멘트 수정
@include_once("$board_skin_path/write_comment_update.skin.php");
@include_once("$board_skin_path/write_comment_update.tail.skin.php");
goto_url("./board.php?bo_table=$bo_table&wr_id=$wr[wr_parent]&page=$page" . $qstr . "&cwin=$cwin#c_{$comment_id}");
goto_url("./board.php?bo_table=$bo_table&amp;wr_id=$wr[wr_parent]&amp;page=$page" . $qstr . "&amp;cwin=$cwin#c_{$comment_id}");
?>

View File

@ -1,6 +1,6 @@
<?
$g4[title] = $wr_subject . "글입력";
include_once("./_common.php");
$g4['title'] = $wr_subject . "글입력";
include_once('./_common.php');
// 090710
if (substr_count($wr_content, "&#") > 50) {
@ -10,7 +10,7 @@ if (substr_count($wr_content, "&#") > 50) {
@include_once("$board_skin_path/write_update.head.skin.php");
include_once("$g4[path]/lib/trackback.lib.php");
include_once("$g4['path']/lib/trackback.lib.php");
/*
$filters = explode(",", $config[cf_filter]);
@ -30,7 +30,7 @@ for ($i=0; $i<count($filters); $i++) {
$upload_max_filesize = ini_get('upload_max_filesize');
if (empty($_POST))
alert("파일 또는 글내용의 크기가 서버에서 설정한 값을 넘어 오류가 발생하였습니다.\\n\\npost_max_size=".ini_get('post_max_size')." , upload_max_filesize=$upload_max_filesize\\n\\n게시판관리자 또는 서버관리자에게 문의 바랍니다.");
alert("파일 또는 글내용의 크기가 서버에서 설정한 값을 넘어 오류가 발생하였습니다..PHP_EOL.PHP_EOL.post_max_size=".ini_get('post_max_size')." , upload_max_filesize=$upload_max_filesize.PHP_EOL.PHP_EOL.게시판관리자 또는 서버관리자에게 문의 바랍니다.");
// 리퍼러 체크
//referer_check();
@ -44,7 +44,7 @@ $notice_array = explode("\n", trim($board[bo_notice]));
if ($w == "u" || $w == "r") {
$wr = get_write($write_table, $wr_id);
if (!$wr[wr_id])
alert("글이 존재하지 않습니다.\\n\\n글이 삭제되었거나 이동하였을 수 있습니다.");
alert("글이 존재하지 않습니다..PHP_EOL.PHP_EOL.글이 삭제되었거나 이동하였을 수 있습니다.");
}
// 외부에서 글을 등록할 수 있는 버그가 존재하므로 비밀글은 사용일 경우에만 가능해야 함
@ -80,7 +80,7 @@ else if ($w == "r")
// 최대 답변은 테이블에 잡아놓은 wr_reply 사이즈만큼만 가능합니다.
if (strlen($reply_array[wr_reply]) == 10)
alert("더 이상 답변하실 수 없습니다.\\n\\n답변은 10단계 까지만 가능합니다.");
alert("더 이상 답변하실 수 없습니다..PHP_EOL.PHP_EOL.답변은 10단계 까지만 가능합니다.");
$reply_len = strlen($reply_array[wr_reply]) + 1;
if ($board[bo_reply_order]) {
@ -100,7 +100,7 @@ else if ($w == "r")
if (!$row[reply])
$reply_char = $begin_reply_char;
else if ($row[reply] == $end_reply_char) // A~Z은 26 입니다.
alert("더 이상 답변하실 수 없습니다.\\n\\n답변은 26개 까지만 가능합니다.");
alert("더 이상 답변하실 수 없습니다..PHP_EOL.PHP_EOL.답변은 26개 까지만 가능합니다.");
else
$reply_char = chr(ord($row[reply]) + $reply_number);
@ -140,8 +140,8 @@ if (!isset($_POST[wr_subject]) || !trim($_POST[wr_subject]))
alert("제목을 입력하여 주십시오.");
// 디렉토리가 없다면 생성합니다. (퍼미션도 변경하구요.)
@mkdir("$g4[path]/data/file/$bo_table", 0707);
@chmod("$g4[path]/data/file/$bo_table", 0707);
@mkdir("$g4['path']/data/file/$bo_table", 0707);
@chmod("$g4['path']/data/file/$bo_table", 0707);
// "인터넷옵션 > 보안 > 사용자정의수준 > 스크립팅 > Action 스크립팅 > 사용 안 함" 일 경우의 오류 처리
// 이 옵션을 사용 안 함으로 설정할 경우 어떤 스크립트도 실행 되지 않습니다.
@ -161,7 +161,7 @@ for ($i=0; $i<count($_FILES[bf_file][name]); $i++)
$upload[$i][del_check] = true;
$row = sql_fetch(" select bf_file from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_no = '$i' ");
@unlink("$g4[path]/data/file/$bo_table/$row[bf_file]");
@unlink("$g4['path']/data/file/$bo_table/$row[bf_file]");
}
else
$upload[$i][del_check] = false;
@ -219,7 +219,7 @@ for ($i=0; $i<count($_FILES[bf_file][name]); $i++)
{
// 존재하는 파일이 있다면 삭제합니다.
$row = sql_fetch(" select bf_file from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_no = '$i' ");
@unlink("$g4[path]/data/file/$bo_table/$row[bf_file]");
@unlink("$g4['path']/data/file/$bo_table/$row[bf_file]");
}
// 프로그램 원래 파일명
@ -240,7 +240,7 @@ for ($i=0; $i<count($_FILES[bf_file][name]); $i++)
//$upload[$i][file] = abs(ip2long($_SERVER[REMOTE_ADDR])).'_'.substr($shuffle,0,8).'_'.str_replace('%', '', urlencode($filename));
$upload[$i][file] = abs(ip2long($_SERVER[REMOTE_ADDR])).'_'.substr($shuffle,0,8).'_'.str_replace('%', '', urlencode(str_replace(' ', '_', $filename)));
$dest_file = "$g4[path]/data/file/$bo_table/" . $upload[$i][file];
$dest_file = "$g4['path']/data/file/$bo_table/" . $upload[$i][file];
// 업로드가 안된다면 에러메세지 출력하고 죽어버립니다.
$error_code = move_uploaded_file($tmp_file, $dest_file) or die($_FILES[bf_file][error][$i]);
@ -380,7 +380,7 @@ else if ($w == "u")
alert("자신의 글이 아니므로 수정할 수 없습니다.");
} else {
if ($write[mb_id])
alert("로그인 후 수정하세요.", "./login.php?url=".urlencode("./board.php?bo_table=$bo_table&wr_id=$wr_id"));
alert("로그인 후 수정하세요.", "./login.php?url=".urlencode("./board.php?bo_table=$bo_table&amp;wr_id=$wr_id"));
}
if ($member[mb_id])
@ -567,9 +567,9 @@ if (!($w == "u" || $w == "cu") && $config[cf_email_use] && $board[bo_use_email])
$str = $warr[$w];
$subject = "'{$board[bo_subject]}' 게시판에 {$str}글이 올라왔습니다.";
$link_url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$wr_id&$qstr";
$link_url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&amp;wr_id=$wr_id&amp;$qstr";
include_once("$g4[path]/lib/mailer.lib.php");
include_once("$g4['path']/lib/mailer.lib.php");
ob_start();
include_once ("./write_update_mail.php");
@ -619,7 +619,7 @@ if (($w != "u" && $wr_trackback) || ($w=="u" && $wr_trackback && $re_trackback))
$msg = send_trackback($wr_trackback, $trackback_url, $wr_subject, $board[bo_subject], $_POST[wr_content]);
if ($msg) {
echo "<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>\n";
echo "<script type='text/javascript'>alert('$msg $wr_trackback');</script>";
echo "<script>alert('$msg $wr_trackback');</script>";
}
}
@ -631,7 +631,7 @@ else
$https_url = ".";
if ($file_upload_msg)
alert($file_upload_msg, "{$https_url}/board.php?bo_table=$bo_table&wr_id=$wr_id&page=$page" . $qstr);
alert($file_upload_msg, "{$https_url}/board.php?bo_table=$bo_table&amp;wr_id=$wr_id&amp;page=$page" . $qstr);
else
goto_url("{$https_url}/board.php?bo_table=$bo_table&wr_id=$wr_id&page=$page" . $qstr);
goto_url("{$https_url}/board.php?bo_table=$bo_table&amp;wr_id=$wr_id&amp;page=$page" . $qstr);
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 메모리를 많이 잡아먹어서 아래의 코드로 대체
//ini_set('memory_limit', '20M');
@ -62,11 +62,11 @@ if ($addr1)
}
*/
$g4[title] = "우편번호 검색";
include_once("$g4[path]/head.sub.php");
$g4['title'] = "우편번호 검색";
include_once($g4['path'].'/head.sub.php');
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
$member_skin_path = "$g4['path']/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/zip.skin.php");
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>