diff --git a/bbs/_common.php b/bbs/_common.php
index 07519b018..e04878f17 100644
--- a/bbs/_common.php
+++ b/bbs/_common.php
@@ -1,4 +1,4 @@
-$g4_path = ".."; // common.php 의 상대 경로
-include_once("$g4_path/common.php");
+$g4_path = '..'; // common.php 의 상대 경로
+include_once($g4_path'./common.php');
?>
\ No newline at end of file
diff --git a/bbs/_head.php b/bbs/_head.php
index a3adcd264..f680fbdc5 100644
--- a/bbs/_head.php
+++ b/bbs/_head.php
@@ -1,4 +1,4 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
-include_once("$g4[path]/head.php");
+include_once($g4['path'].'/head.php');
?>
\ No newline at end of file
diff --git a/bbs/_tail.php b/bbs/_tail.php
index ecb08437a..7f752475a 100644
--- a/bbs/_tail.php
+++ b/bbs/_tail.php
@@ -1,4 +1,4 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
-include_once("$g4[path]/tail.php");
+include_once($g4['path'].'/tail.php');
?>
\ No newline at end of file
diff --git a/bbs/board.php b/bbs/board.php
index 6c9f9fbd9..1d4814d8a 100644
--- a/bbs/board.php
+++ b/bbs/board.php
@@ -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.'&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.'&url='.urlencode('./board.php?bo_table='.$bo_table.'&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.'&url='.urlencode('./board.php?bo_table='.$bo_table.'&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&bo_table='.$bo_table.'&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).' > '.$board[bo_subject].' > '.$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.'&url='.urlencode('board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
}
if (!$page) $page = 1;
- $g4[title] = "$group[gr_subject] > $board[bo_subject] $page 페이지";
+ $g4['title'] = $board[bo_subject].$page.' 페이지 > '.$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&bo_table=.'$bo_table;
if (!($board[bo_use_comment] && $cwin))
- include_once("./board_head.php");
+ include_once('./board_head.php');
-echo "";
+echo '';
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\n";
+echo PHP_EOL.''.PHP_EOL;
-include_once("$g4[path]/tail.sub.php");
+include_once($g4['path'].'/tail.sub.php');
?>
diff --git a/bbs/board_head.php b/bbs/board_head.php
index 1b63c439d..704bb5a7c 100644
--- a/bbs/board_head.php
+++ b/bbs/board_head.php
@@ -7,7 +7,7 @@ if ($board[bo_include_head])
// 게시판 관리의 상단 이미지 경로
if ($board[bo_image_head])
- echo "
";
+ echo '
';
// 게시판 관리의 상단 내용
if ($board[bo_content_head])
diff --git a/bbs/board_tail.php b/bbs/board_tail.php
index 892daaef4..8b8b2a2fb 100644
--- a/bbs/board_tail.php
+++ b/bbs/board_tail.php
@@ -7,7 +7,7 @@ if ($board[bo_content_tail])
// 게시판 관리의 하단 이미지 경로
if ($board[bo_image_tail])
- echo "
";
+ echo '
';
// 게시판 관리의 하단 파일 경로
if ($board[bo_include_tail])
diff --git a/bbs/calendar.php b/bbs/calendar.php
index d5f8793d0..a8a675b0b 100644
--- a/bbs/calendar.php
+++ b/bbs/calendar.php
@@ -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).'&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;
-$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.'&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;
-$yyyy_select = "';
-$mm_select = "";
+$mm_select = '';
for ($i=1; $i<=12; $i++)
{
- if ($i == $mm) $selected = " selected";
+ if ($i == $mm) $selected = ' selected';
else $selected = "";
- $mm_select .= "";
+ $mm_select .= '';
}
-$mm_select .= "";
+$mm_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');
?>
-
-include_once("$g4[path]/tail.sub.php");
+include_once($g4['path'].'/tail.sub.php');
?>
diff --git a/bbs/current_connect.php b/bbs/current_connect.php
index 18d338c94..6dc4d1c87 100644
--- a/bbs/current_connect.php
+++ b/bbs/current_connect.php
@@ -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&page=');
-echo "\n";
+echo '';
-$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');
?>
\ No newline at end of file
diff --git a/bbs/delete.php b/bbs/delete.php
index 0ea066e62..4b41c221f 100644
--- a/bbs/delete.php
+++ b/bbs/delete.php
@@ -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.'&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 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.'&page='.$page.$qstr);
?>
diff --git a/bbs/delete_all.php b/bbs/delete_all.php
index c7e638217..ea453b9b7 100644
--- a/bbs/delete_all.php
+++ b/bbs/delete_all.php
@@ -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 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.'&page='.$page.$qstr);
?>
diff --git a/bbs/delete_comment.php b/bbs/delete_comment.php
index dd9b44fb3..4f61e0f0b 100644
--- a/bbs/delete_comment.php
+++ b/bbs/delete_comment.php
@@ -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.'&wr_id='.$write[wr_parent].'&cwin='.$cwin.'&page='.$page. $qstr);
?>
diff --git a/bbs/download.php b/bbs/download.php
index 2137444d0..15d85477c 100644
--- a/bbs/download.php
+++ b/bbs/download.php
@@ -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.'&'.$qstr.'&url='.urlencode($g4['bbs_path'].'/board.php?bo_table='.$bo_table.'&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'] = '다운로드 > '.conv_subject($write[wr_subject], 255).' > '.$board[bo_subject].' > '.$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 문을 이용한 방법보다는 이방법이...
diff --git a/bbs/email_certify.php b/bbs/email_certify.php
index 8bd9cb6d1..d45982b79 100644
--- a/bbs/email_certify.php
+++ b/bbs/email_certify.php
@@ -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']);
?>
\ No newline at end of file
diff --git a/bbs/email_stop.php b/bbs/email_stop.php
index c3ad7b431..f328b68dc 100644
--- a/bbs/email_stop.php
+++ b/bbs/email_stop.php
@@ -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']);
?>
\ No newline at end of file
diff --git a/bbs/formmail.php b/bbs/formmail.php
index 626a2964e..b91b897fd 100644
--- a/bbs/formmail.php
+++ b/bbs/formmail.php
@@ -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');
?>
diff --git a/bbs/formmail_send.php b/bbs/formmail_send.php
index ca64bdf62..6f9289e6d 100644
--- a/bbs/formmail_send.php
+++ b/bbs/formmail_send.php
@@ -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 = "메일보내기$content";
+ $mail_content = '메일보내기'.$content.'';
}
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');
?>
\ No newline at end of file
diff --git a/bbs/good.php b/bbs/good.php
index 561f99abe..2610f1e20 100644
--- a/bbs/good.php
+++ b/bbs/good.php
@@ -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 "";
+echo '';
if (!$is_member)
{
- $href = "./login.php?$qstr&url=".urlencode("./board.php?bo_table=$bo_table&wr_id=$wr_id");
+ $href = './login.php?$qstr&url='.urlencode('./board.php?bo_table='.$bo_table.'&wr_id='.$wr_id);
- echo "";
+ echo '';
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 "";
+ echo '';
}
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 "";
+ echo '';
}
}
-@include_once("$board_skin_path/good.tail.skin.php");
+@include_once($board_skin_path.'/good.tail.skin.php');
?>
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/bbs/group.php b/bbs/group.php
index f4199ed74..6b38917ea 100644
--- a/bbs/group.php
+++ b/bbs/group.php
@@ -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');
?>
diff --git a/bbs/link.php b/bbs/link.php
index 1df7fd6a9..df5bd795d 100644
--- a/bbs/link.php
+++ b/bbs/link.php
@@ -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) . " > 링크";
diff --git a/bbs/list.php b/bbs/list.php
index bd8fc1371..68ed38c0c 100644
--- a/bbs/list.php
+++ b/bbs/list.php
@@ -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."&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&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&page=1";
}
$write_href = "";
diff --git a/bbs/login.php b/bbs/login.php
index 1f0dd12e9..18181a1c5 100644
--- a/bbs/login.php
+++ b/bbs/login.php
@@ -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');
?>
diff --git a/bbs/login_check.php b/bbs/login_check.php
index 1214d41b3..f2c2d2757 100644
--- a/bbs/login_check.php
+++ b/bbs/login_check.php
@@ -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);
?>
diff --git a/bbs/logout.php b/bbs/logout.php
index 2c78a4260..c7682e4a9 100644
--- a/bbs/logout.php
+++ b/bbs/logout.php
@@ -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);
diff --git a/bbs/member_confirm.php b/bbs/member_confirm.php
index 11c7125e6..33a27705e 100644
--- a/bbs/member_confirm.php
+++ b/bbs/member_confirm.php
@@ -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');
?>
diff --git a/bbs/member_email_check.php b/bbs/member_email_check.php
index fd3f2b3a2..3cd20c60b 100644
--- a/bbs/member_email_check.php
+++ b/bbs/member_email_check.php
@@ -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 <<
+
@@ -41,5 +41,5 @@ HEREDOC;
}
}
-include_once("$g4[path]/tail.sub.php");
+include_once($g4['path'].'/tail.sub.php');
?>
\ No newline at end of file
diff --git a/bbs/member_id_check.php b/bbs/member_id_check.php
index 492c7d650..e575e6599 100644
--- a/bbs/member_id_check.php
+++ b/bbs/member_id_check.php
@@ -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 "";
}
}
-include_once("$g4[path]/tail.sub.php");
+include_once($g4['path'].'/tail.sub.php');
?>
\ No newline at end of file
diff --git a/bbs/member_leave.php b/bbs/member_leave.php
index a7e5684be..f24aaa974 100644
--- a/bbs/member_leave.php
+++ b/bbs/member_leave.php
@@ -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);
?>
diff --git a/bbs/member_nick_check.php b/bbs/member_nick_check.php
index 1459c5f16..c9d6e908b 100644
--- a/bbs/member_nick_check.php
+++ b/bbs/member_nick_check.php
@@ -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 "";
} else {
if (preg_match("/[\,]?{$mb_nick}/i", $config[cf_prohibit_id])) {
- echo "";
} else {
- echo "";
+echo "";
-$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');
?>
diff --git a/bbs/memo_delete.php b/bbs/memo_delete.php
index a0e9143c1..dc08ff2ee 100644
--- a/bbs/memo_delete.php
+++ b/bbs/memo_delete.php
@@ -1,5 +1,5 @@
-include_once("./_common.php");
+include_once('./_common.php');
if (!$member[mb_id])
alert("회원만 이용하실 수 있습니다.");
diff --git a/bbs/memo_form.php b/bbs/memo_form.php
index 5c8b4ed6f..757d851ec 100644
--- a/bbs/memo_form.php
+++ b/bbs/memo_form.php
@@ -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');
?>
diff --git a/bbs/memo_form_update.php b/bbs/memo_form_update.php
index 1f2187ee5..40edeb7de 100644
--- a/bbs/memo_form_update.php
+++ b/bbs/memo_form_update.php
@@ -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";
+echo "";
-$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');
?>
diff --git a/bbs/move.php b/bbs/move.php
index 99cf3b95e..19b849715 100644
--- a/bbs/move.php
+++ b/bbs/move.php
@@ -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++)
-\n";
+echo "\n";
include_once("$new_skin_path/new.skin.php");
-include_once("./_tail.php");
+include_once('./_tail.php');
?>
diff --git a/bbs/norobot.inc.php b/bbs/norobot.inc.php
index f3dbc86d8..ac3d1fa52 100644
--- a/bbs/norobot.inc.php
+++ b/bbs/norobot.inc.php
@@ -58,4 +58,4 @@ if ($config[cf_use_norobot]) {
set_session("ss_norobot_key", "");
}
?>
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/bbs/norobot_image.php b/bbs/norobot_image.php
index a3868787f..75bcc24c8 100644
--- a/bbs/norobot_image.php
+++ b/bbs/norobot_image.php
@@ -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)
{
diff --git a/bbs/password.php b/bbs/password.php
index b806a6afa..61dcc491a 100644
--- a/bbs/password.php
+++ b/bbs/password.php
@@ -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&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');
?>
diff --git a/bbs/password_check.php b/bbs/password_check.php
index a7a9bce9a..3e28dc206 100644
--- a/bbs/password_check.php
+++ b/bbs/password_check.php
@@ -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&wr_id=$wr_id&page=$page";
$wr = get_write($write_table, $wr_id);
diff --git a/bbs/password_forget.php b/bbs/password_forget.php
index 04c95b5b3..5aca4d719 100644
--- a/bbs/password_forget.php
+++ b/bbs/password_forget.php
@@ -1,11 +1,11 @@
die("이 프로그램은 더 이상 사용하지 않습니다. 그누보드 4.32.09 를 참고하세요.");
-include_once("./_common.php");
+include_once('./_common.php');
if ($member[mb_id])
{
echo <<
+ ";
+echo "";
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');
?>
diff --git a/bbs/poll_update.php b/bbs/poll_update.php
index 06f766acd..6c0965f1a 100644
--- a/bbs/poll_update.php
+++ b/bbs/poll_update.php
@@ -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])
diff --git a/bbs/profile.php b/bbs/profile.php
index fdd7022c7..f326952a7 100644
--- a/bbs/profile.php
+++ b/bbs/profile.php
@@ -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 "";
+echo "";
-$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');
?>
diff --git a/bbs/register.php b/bbs/register.php
index 7239e5c88..71eae5416 100644
--- a/bbs/register.php
+++ b/bbs/register.php
@@ -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');
?>
diff --git a/bbs/register_form.php b/bbs/register_form.php
index 39554e99e..9a3a3e189 100644
--- a/bbs/register_form.php
+++ b/bbs/register_form.php
@@ -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');
?>
\ No newline at end of file
diff --git a/bbs/register_form_update.php b/bbs/register_form_update.php
index e145ddaf2..7b223f3b6 100644
--- a/bbs/register_form_update.php
+++ b/bbs/register_form_update.php
@@ -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 "";
+ echo "";
/*
// 결과페이지는 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 "
회원정보수정
@@ -382,7 +382,7 @@ if ($w == "") {
-
diff --git a/bbs/register_result.php b/bbs/register_result.php
index c00bcf8dd..e2c258b91 100644
--- a/bbs/register_result.php
+++ b/bbs/register_result.php
@@ -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');
?>
\ No newline at end of file
diff --git a/bbs/rss.php b/bbs/rss.php
index 4efc7697c..ef5ce1741 100644
--- a/bbs/rss.php
+++ b/bbs/rss.php
@@ -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 "- \n";
echo "".specialchars_replace($row[wr_subject])."\n";
- echo "".specialchars_replace("$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$row[wr_id]")."\n";
+ echo "".specialchars_replace("$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$row[wr_id]")."\n";
echo "\n";
echo "".specialchars_replace($row[wr_name])."\n";
$date = $row[wr_datetime];
diff --git a/bbs/scrap.php b/bbs/scrap.php
index 2dcdfa659..981a01c2d 100644
--- a/bbs/scrap.php
+++ b/bbs/scrap.php
@@ -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]&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]&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');
?>
diff --git a/bbs/scrap_delete.php b/bbs/scrap_delete.php
index ab80c055e..f99e225f5 100644
--- a/bbs/scrap_delete.php
+++ b/bbs/scrap_delete.php
@@ -1,5 +1,5 @@
-include_once("./_common.php");
+include_once('./_common.php');
if (!$member[mb_id])
alert("회원만 이용하실 수 있습니다.");
diff --git a/bbs/scrap_popin.php b/bbs/scrap_popin.php
index 79f01cf88..9bc7ec27b 100644
--- a/bbs/scrap_popin.php
+++ b/bbs/scrap_popin.php
@@ -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&url=".urlencode("./board.php?bo_table=$bo_table&wr_id=$wr_id");
echo <<
+ ";
+ $href = "./login.php?$qstr&url=".urlencode("./board.php?bo_table=$bo_table&wr_id=$wr_id");
+ echo "";
exit;
}
@@ -18,8 +18,8 @@ $row = sql_fetch($sql);
if ($row[cnt])
{
echo "
- ";
+ echo "";
}
$group_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');
?>
diff --git a/bbs/tb.php b/bbs/tb.php
index afbd4cff6..23129a486 100644
--- a/bbs/tb.php
+++ b/bbs/tb.php
@@ -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&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");
diff --git a/bbs/tb_token.php b/bbs/tb_token.php
index 507312353..7a26a6e60 100644
--- a/bbs/tb_token.php
+++ b/bbs/tb_token.php
@@ -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;
diff --git a/bbs/view.php b/bbs/view.php
index 60b18be3a..cb8727133 100644
--- a/bbs/view.php
+++ b/bbs/view.php
@@ -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&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&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&wr_id=$prev[wr_id]&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&wr_id=$next[wr_id]&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&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&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)."');";
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&wr_id=$wr_id&token=$token&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&wr_id=$wr_id&page=$page" . $qstr;
+ $delete_href = "./password.php?w=d&bo_table=$bo_table&wr_id=$wr_id&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&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');";
}
$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&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&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&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 "";
+echo "";
include_once("$board_skin_path/view.skin.php");
@include_once("$board_skin_path/view.tail.skin.php");
diff --git a/bbs/view_comment.php b/bbs/view_comment.php
index 20ac8eba4..75bd4491c 100644
--- a/bbs/view_comment.php
+++ b/bbs/view_comment.php
@@ -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&cwin=$cwin&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]&cwin=$cwin&page=$page".$qstr;
$list[$i][is_del] = true;
}
}
@@ -113,11 +113,11 @@ else
include_once("$board_skin_path/view_comment.skin.php");
// 필터
-//echo "\n";
-//echo "\n";
+//echo "\n";
+//echo "\n";
if (!$member[mb_id]) // 비회원일 경우에만
- echo "\n";
+ echo "\n";
@include_once("$board_skin_path/view_comment.tail.skin.php");
?>
\ No newline at end of file
diff --git a/bbs/write.php b/bbs/write.php
index 7b2aa8d0f..d7dd32ccb 100644
--- a/bbs/write.php
+++ b/bbs/write.php
@@ -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&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&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&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&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 "\n";
+ echo "\n";
// 필터
-//echo "\n";
-//echo "\n";
+//echo "\n";
+//echo "\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");
?>
diff --git a/bbs/write_comment_update.php b/bbs/write_comment_update.php
index 206a3cf0a..34e0ba412 100644
--- a/bbs/write_comment_update.php
+++ b/bbs/write_comment_update.php
@@ -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&wr_id=$wr_id&$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&wr_id=$wr[wr_parent]&page=$page" . $qstr . "&cwin=$cwin#c_{$comment_id}");
?>
diff --git a/bbs/write_update.php b/bbs/write_update.php
index 17e2be875..119e7bb80 100644
--- a/bbs/write_update.php
+++ b/bbs/write_update.php
@@ -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 보안 > 사용자정의수준 > 스크립팅 > Action 스크립팅 > 사용 안 함" 일 경우의 오류 처리
// 이 옵션을 사용 안 함으로 설정할 경우 어떤 스크립트도 실행 되지 않습니다.
@@ -161,7 +161,7 @@ for ($i=0; $i\n";
- echo "";
+ echo "";
}
}
@@ -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&wr_id=$wr_id&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&wr_id=$wr_id&page=$page" . $qstr);
?>
diff --git a/bbs/zip.php b/bbs/zip.php
index 538ea20b6..8acbabd3e 100644
--- a/bbs/zip.php
+++ b/bbs/zip.php
@@ -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');
?>