diff --git a/adm/admin.lib.php b/adm/admin.lib.php
index 0ea37f4d7..df560e7d8 100644
--- a/adm/admin.lib.php
+++ b/adm/admin.lib.php
@@ -70,7 +70,7 @@ function member_delete($mb_id)
}
// 회원자료는 정보만 없앤 후 아이디는 보관하여 다른 사람이 사용하지 못하도록 함 : 061025
- $sql = " update {$g4['member_table']} set mb_jumin = '', mb_password = '', mb_level = 1, mb_email = '', mb_homepage = '', mb_password_q = '', mb_password_a = '', mb_tel = '', mb_hp = '', mb_zip1 = '', mb_zip2 = '', mb_addr1 = '', mb_addr2 = '', mb_birth = '', mb_sex = '', mb_signature = '', mb_memo = '".date('Ymd', G4_SERVER_TIME)." 삭제함".PHP_EOL."{$mb['mb_memo']}', mb_leave_date = '".date('Ymd', G4_SERVER_TIME)."' where mb_id = '{$mb_id}' ";
+ $sql = " update {$g4['member_table']} set mb_jumin = '', mb_password = '', mb_level = 1, mb_email = '', mb_homepage = '', mb_password_q = '', mb_password_a = '', mb_tel = '', mb_hp = '', mb_zip1 = '', mb_zip2 = '', mb_addr1 = '', mb_addr2 = '', mb_birth = '', mb_sex = '', mb_signature = '', mb_memo = '".date('Ymd', G4_SERVER_TIME)." 삭제함\n{$mb['mb_memo']}', mb_leave_date = '".date('Ymd', G4_SERVER_TIME)."' where mb_id = '{$mb_id}' ";
sql_query($sql);
}
@@ -176,7 +176,7 @@ function help($help="")
{
global $g4;
- $str = ''.$help.' ';
+ $str = ''.str_replace("\n", " ", $help).' ';
return $str;
}
diff --git a/adm/auth_list.php b/adm/auth_list.php
index ec8bde957..cb8a41da7 100644
--- a/adm/auth_list.php
+++ b/adm/auth_list.php
@@ -138,7 +138,7 @@ $colspan = 5;
//if (isset($stx))
- // echo ''.PHP_EOL;
+ // echo ''."\n";
if (strstr($sfl, 'mb_id'))
$mb_id = $stx;
diff --git a/adm/board_form.php b/adm/board_form.php
index 8ece4946c..47f72395c 100644
--- a/adm/board_form.php
+++ b/adm/board_form.php
@@ -185,7 +185,7 @@ $pg_anchor = "
카운트 조정
- =help('현재 원글수 : '.number_format($board['bo_count_write']).', 현재 댓글수 : '.number_format($board['bo_count_comment']).PHP_EOL.'게시판 목록에서 글의 번호가 맞지 않을 경우에 체크하십시오.')?>
+ =help('현재 원글수 : '.number_format($board['bo_count_write']).', 현재 댓글수 : '.number_format($board['bo_count_comment'])."\n".'게시판 목록에서 글의 번호가 맞지 않을 경우에 체크하십시오.')?>
diff --git a/adm/config_form.php b/adm/config_form.php
index 1c019aca9..f63dd2864 100644
--- a/adm/config_form.php
+++ b/adm/config_form.php
@@ -191,7 +191,7 @@ $pg_anchor = "
$arr = get_skin_dir('new');
for ($i=0; $i".$arr[$i]."".PHP_EOL;
+ echo "".$arr[$i]." \n";
}
?>
@@ -202,7 +202,7 @@ $pg_anchor = "
$arr = get_skin_dir('new', G4_MOBILE_PATH.'/'.G4_SKIN_DIR);
for ($i=0; $i".$arr[$i]."".PHP_EOL;
+ echo "".$arr[$i]." \n";
}
?>
@@ -215,7 +215,7 @@ $pg_anchor = "
$arr = get_skin_dir('search');
for ($i=0; $i".$arr[$i]."".PHP_EOL;
+ echo "".$arr[$i]." \n";
}
?>
@@ -226,7 +226,7 @@ $pg_anchor = "
$arr = get_skin_dir('search', G4_MOBILE_PATH.'/'.G4_SKIN_DIR);
for ($i=0; $i".$arr[$i]."".PHP_EOL;
+ echo "".$arr[$i]." \n";
}
?>
@@ -239,7 +239,7 @@ $pg_anchor = "
$arr = get_skin_dir('connect');
for ($i=0; $i".$arr[$i]."".PHP_EOL;
+ echo "".$arr[$i]." \n";
}
?>
@@ -250,7 +250,7 @@ $pg_anchor = "
$arr = get_skin_dir('connect', G4_MOBILE_PATH.'/'.G4_SKIN_DIR);
for ($i=0; $i".$arr[$i]."".PHP_EOL;
+ echo "".$arr[$i]." \n";
}
?>
@@ -374,7 +374,7 @@ $pg_anchor = "
$arr = get_skin_dir('member');
for ($i=0; $i'.$arr[$i].''.PHP_EOL;
+ echo ''.$arr[$i].' '."\n";
}
?>
@@ -385,7 +385,7 @@ $pg_anchor = "
$arr = get_skin_dir('member', G4_MOBILE_PATH.'/'.G4_SKIN_DIR);
for ($i=0; $i'.$arr[$i].''.PHP_EOL;
+ echo ''.$arr[$i].' '."\n";
}
?>
diff --git a/adm/member_form_update.php b/adm/member_form_update.php
index 212e7ea82..1f33070ff 100644
--- a/adm/member_form_update.php
+++ b/adm/member_form_update.php
@@ -15,12 +15,35 @@ if ($member['mb_password'] != sql_password($_POST['admin_password'])) {
$mb_id = mysql_real_escape_string(trim($_POST['mb_id']));
+// 핸드폰번호 체크
+$mb_hp = $_POST['mb_hp'];
+if($mb_hp) {
+ $mb_hp = preg_replace("/[^0-9]/", "", $mb_hp);
+ $hp_len = strlen($mb_hp);
+ if($hp_len == 10) {
+ $mb_hp = preg_replace("/([0-9]{3})([0-9]{3})([0-9]{4})/", "\\1-\\2-\\3", $mb_hp);
+ } else if($hp_len == 11) {
+ $mb_hp = preg_replace("/([0-9]{3})([0-9]{4})([0-9]{4})/", "\\1-\\2-\\3", $mb_hp);
+ } else {
+ alert('핸드폰번호를 올바르게 입력해 주십시오.');
+ }
+
+ // 중복체크
+ $sql = " select count(*) as cnt from {$g4['member_table']} where mb_hp = '$mb_hp' ";
+ if($w == 'u')
+ $sql .= " and mb_id <> '$mb_id' ";
+
+ $row = sql_fetch($sql);
+ if($row['cnt'])
+ alert('다른 회원이 사용 중인 핸드폰번호입니다.');
+}
+
$sql_common = " mb_name = '{$_POST['mb_name']}',
mb_nick = '{$_POST['mb_nick']}',
mb_email = '{$_POST['mb_email']}',
mb_homepage = '{$_POST['mb_homepage']}',
mb_tel = '{$_POST['mb_tel']}',
- mb_hp = '{$_POST['mb_hp']}',
+ mb_hp = '$mb_hp',
mb_zip1 = '{$_POST['mb_zip1']}',
mb_zip2 = '{$_POST['mb_zip2']}',
mb_addr1 = '{$_POST['mb_addr1']}',
diff --git a/adm/point_clear.php b/adm/point_clear.php
index 84523d6ed..3006816d2 100644
--- a/adm/point_clear.php
+++ b/adm/point_clear.php
@@ -16,7 +16,7 @@ echo ' ';
include_once('./admin.tail.php');
flush();
-echo ''.PHP_EOL;
+echo ''."\n";
flush();
$max_count = 50;
@@ -52,7 +52,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
insert_point($row['mb_id'], $total, '포인트 {$count}건 정리', '@clear', $row['mb_id'], G4_TIME_YMD."-".uniqid(""));
$str = $row['mb_id']."님 포인트 내역 ".number_format($count)."건 ".number_format($total)."점 정리 ";
- echo ''.PHP_EOL;
+ echo ''."\n";
flush();
}
@@ -60,5 +60,5 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$sql = " UNLOCK TABLES ";
sql_query($sql);
-echo ''.PHP_EOL;
+echo ''."\n";
?>