Merge branch 'g4s'
Conflicts: css/admin.css
This commit is contained in:
@ -57,38 +57,41 @@ else if ($w == 'u')
|
||||
else
|
||||
alert('제대로 된 값이 넘어오지 않았습니다.');
|
||||
|
||||
$mailling_no_checked = '';
|
||||
$sms_no_checked = '';
|
||||
$open_no_checked = '';
|
||||
if ($mb['mb_mailling'] == 1) {
|
||||
$mailling_checked = 'checked="checked"'; //메일수신
|
||||
// 휴대폰 본인확인
|
||||
$mb_hp_certify_yes = $mb['mb_hp_certify'] ? 'checked="checked"' : '';
|
||||
$mb_hp_certify_no = !$mb['mb_hp_certify'] ? 'checked="checked"' : '';
|
||||
|
||||
// 휴대폰 성인인증
|
||||
$mb_adult_yes = $mb['mb_adult'] ? 'checked="checked"' : '';
|
||||
$mb_adult_no = !$mb['mb_adult'] ? 'checked="checked"' : '';
|
||||
|
||||
//메일수신
|
||||
$mb_mailling_yes = $mb['mb_mailling'] ? 'checked="checked"' : '';
|
||||
$mb_mailling_no = !$mb['mb_mailling'] ? 'checked="checked"' : '';
|
||||
|
||||
// SMS 수신
|
||||
$mb_sms_yes = $mb['mb_sms'] ? 'checked="checked"' : '';
|
||||
$mb_sms_no = !$mb['mb_sms'] ? 'checked="checked"' : '';
|
||||
|
||||
// 정보 공개
|
||||
$mb_open_yes = $mb['mb_open'] ? 'checked="checked"' : '';
|
||||
$mb_open_no = !$mb['mb_open'] ? 'checked="checked"' : '';
|
||||
|
||||
if (isset($mb['mb_hp_certify'])) {
|
||||
// 날짜시간형이라면 drop 시킴
|
||||
if (preg_match("/-/", $mb['mb_hp_certify'])) {
|
||||
sql_query(" ALTER TABLE `{$g4['member_table']}` DROP `mb_hp_certify` ", false);
|
||||
}
|
||||
} else {
|
||||
$mailing_checked = '';
|
||||
$mailling_no_checked = 'checked="checked"';
|
||||
sql_query(" ALTER TABLE `{$g4['member_table']}` ADD `mb_hp_certify` TINYINT NOT NULL DEFAULT '0' AFTER `mb_hp` ", false);
|
||||
}
|
||||
|
||||
if ($mb['mb_sms']) {
|
||||
$sms_checked = 'checked="checked"'; // SMS 수신
|
||||
if(isset($mb['mb_adult'])) {
|
||||
sql_query(" ALTER TABLE `{$g4['member_table']}` CHANGE `mb_adult` `mb_adult` TINYINT NOT NULL DEFAULT '0' ", false);
|
||||
} else {
|
||||
$sms_checked = '';
|
||||
$sms_no_checked = 'checked="checked"';
|
||||
sql_query(" ALTER TABLE `{$g4['member_table']}` ADD `mb_adult` TINYINT NOT NULL DEFAULT '0' AFTER `mb_hp_certify` ", false);
|
||||
}
|
||||
|
||||
if ($mb['mb_open']) {
|
||||
$open_checked = 'checked="checked"'; // 정보 공개
|
||||
} else {
|
||||
$open_checked = '';
|
||||
$open_no_checked = 'checked="checked"';
|
||||
}
|
||||
|
||||
if(!isset($mb['mb_adult'])) {
|
||||
sql_query(" ALTER TABLE `{$g4['member_table']}`
|
||||
ADD `mb_adult` ENUM('N', 'Y') NOT NULL DEFAULT 'N' AFTER `mb_birth`,
|
||||
ADD `mb_hp_certify` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `mb_lost_certify` ", false);
|
||||
}
|
||||
|
||||
sql_query(" ALTER TABLE `{$g4['member_table']}` CHANGE `mb_adult` `mb_adult` ENUM('N','Y') NOT NULL DEFAULT 'N' ", false);
|
||||
|
||||
if ($mb['mb_intercept_date']) $g4['title'] = "차단된 ";
|
||||
else $g4['title'] .= "";
|
||||
$g4['title'] .= '회원 '.$html_title;
|
||||
@ -141,10 +144,26 @@ include_once('./admin.head.php');
|
||||
<td><input type="text" name="mb_homepage" value="<?php echo $mb['mb_homepage'] ?>" id="mb_homepage" class="frm_input" maxlength="255" size="15"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_tel">전화번호</label></th>
|
||||
<td><input type="text" name="mb_tel" value="<?php echo $mb['mb_tel'] ?>" id="mb_tel" class="frm_input" size="15" maxlength="20"></td>
|
||||
<th scope="row"><label for="mb_hp">휴대폰번호</label></th>
|
||||
<td><input type="text" name="mb_hp" value="<?php echo $mb['mb_hp'] ?>" id="mb_hp" class="frm_input" size="15" maxlength="20"></td>
|
||||
<th scope="row"><label for="mb_tel">전화번호</label></th>
|
||||
<td><input type="text" name="mb_tel" value="<?php echo $mb['mb_tel'] ?>" id="mb_tel" class="frm_input" size="15" maxlength="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">휴대폰 본인확인</th>
|
||||
<td>
|
||||
<input type="radio" name="mb_hp_certify" value="1" id="mb_hp_certify_yes" <?php echo $mb_hp_certify_yes; ?>>
|
||||
<label for="mb_hp_certify_yes">예</label>
|
||||
<input type="radio" name="mb_hp_certify" value="0" id="mb_hp_certify_no" <?php echo $mb_hp_certify_no; ?>>
|
||||
<label for="mb_hp_certify_no">아니오</label>
|
||||
</td>
|
||||
<th scope="row"><label for="mb_adult">휴대폰 성인인증</label></th>
|
||||
<td>
|
||||
<input type="radio" name="mb_adult" value="1" id="mb_adult_yes" <?php echo $mb_adult_yes; ?>>
|
||||
<label for="mb_adult_yes">예</label>
|
||||
<input type="radio" name="mb_adult" value="0" id="mb_adult_no" <?php echo $mb_adult_no; ?>>
|
||||
<label for="mb_adult_no">아니오</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_zip1">주소</label></th>
|
||||
@ -181,25 +200,25 @@ include_once('./admin.head.php');
|
||||
<tr>
|
||||
<th scope="row">메일 수신</th>
|
||||
<td>
|
||||
<input type="radio" name="mb_mailling" value="1" id="mb_mailling_yes" <?php echo $mailling_checked ?>>
|
||||
<input type="radio" name="mb_mailling" value="1" id="mb_mailling_yes" <?php echo $mb_mailling_yes; ?>>
|
||||
<label for="mb_mailling_yes">예</label>
|
||||
<input type="radio" name="mb_mailling" value="0" id="mb_mailling_no" <?php echo $mailling_no_checked ?>>
|
||||
<input type="radio" name="mb_mailling" value="0" id="mb_mailling_no" <?php echo $mb_mailling_no; ?>>
|
||||
<label for="mb_mailling_no">아니오</label>
|
||||
</td>
|
||||
<th scope="row"><label for="mb_sms_yes">SMS 수신</label></th>
|
||||
<td>
|
||||
<input type="radio" name="mb_sms" value="1" id="mb_sms_yes" <?php echo $sms_checked ?>>
|
||||
<input type="radio" name="mb_sms" value="1" id="mb_sms_yes" <?php echo $mb_sms_yes; ?>>
|
||||
<label for="mb_sms_yes">예</label>
|
||||
<input type="radio" name="mb_sms" value="0" id="mb_sms_no" <?php echo $sms_no_checked ?>>
|
||||
<input type="radio" name="mb_sms" value="0" id="mb_sms_no" <?php echo $mb_sms_no; ?>>
|
||||
<label for="mb_sms_no">아니오</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_open">정보 공개</label></th>
|
||||
<td colspan="3">
|
||||
<input type="radio" name="mb_open" value="1" id="mb_open" <?php echo $open_checked ?>>
|
||||
<input type="radio" name="mb_open" value="1" id="mb_open_yes" <?php echo $mb_open_yes; ?>>
|
||||
<label for="mb_open">예</label>
|
||||
<input type="radio" name="mb_open" value="0" id="mb_open_no" <?php echo $open_no_checked ?>>
|
||||
<input type="radio" name="mb_open" value="0" id="mb_open_no" <?php echo $mb_open_no; ?>>
|
||||
<label for="mb_open_no">아니오</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -29,7 +29,9 @@ $sql_common = " mb_name = '{$_POST['mb_name']}',
|
||||
mb_email = '{$_POST['mb_email']}',
|
||||
mb_homepage = '{$_POST['mb_homepage']}',
|
||||
mb_tel = '{$_POST['mb_tel']}',
|
||||
mb_hp = '$mb_hp',
|
||||
mb_hp = '{$_POST['mb_hp']}',
|
||||
mb_hp_certify = '{$_POST['mb_hp_certify']}',
|
||||
mb_adult = '{$_POST['mb_adult']}',
|
||||
mb_zip1 = '{$_POST['mb_zip1']}',
|
||||
mb_zip2 = '{$_POST['mb_zip2']}',
|
||||
mb_addr1 = '{$_POST['mb_addr1']}',
|
||||
|
||||
@ -78,7 +78,8 @@ $colspan = 15;
|
||||
<a href="?sst=mb_intercept_date&sod=desc&sfl=<?php echo $sfl ?>&stx=<?php echo $stx ?>">차단 <?php echo number_format($intercept_count) ?></a>명,
|
||||
<a href="?sst=mb_leave_date&sod=desc&sfl=<?php echo $sfl ?>&stx=<?php echo $stx ?>">탈퇴 <?php echo number_format($leave_count) ?></a>명
|
||||
</span>
|
||||
<select name="sfl" title="검색대상">
|
||||
<label for="sfl" class="sound_only">검색대상</label>
|
||||
<select name="sfl">
|
||||
<option value="mb_id"<?php echo get_selected($_GET['sfl'], "mb_id"); ?>>회원아이디</option>
|
||||
<option value="mb_nick"<?php echo get_selected($_GET['sfl'], "mb_nick"); ?>>별명</option>
|
||||
<option value="mb_name"<?php echo get_selected($_GET['sfl'], "mb_name"); ?>>이름</option>
|
||||
@ -91,7 +92,8 @@ $colspan = 15;
|
||||
<option value="mb_ip"<?php echo get_selected($_GET['sfl'], "mb_ip"); ?>>IP</option>
|
||||
<option value="mb_recommend"<?php echo get_selected($_GET['sfl'], "mb_recommend"); ?>>추천인</option>
|
||||
</select>
|
||||
<input type="text" name="stx" value="<?php echo $stx ?>" title="검색어(필수)" required class="required frm_input">
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="stx" value="<?php echo $stx ?>" id="stx" required class="required frm_input">
|
||||
<input type="submit" class="btn_submit" value="검색">
|
||||
</fieldset>
|
||||
</form>
|
||||
@ -116,20 +118,27 @@ $colspan = 15;
|
||||
<table class="tbl_mb_list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><input type="checkbox" name="chkall" value="1" id="chkall" title="현재 페이지 회원 전체선택" onclick="check_all(this.form)"></th>
|
||||
<th scope="col" rowspan="2"><input type="checkbox" name="chkall" value="1" id="chkall" title="현재 페이지 회원 전체선택" onclick="check_all(this.form)"></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_id') ?>회원아이디</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_nick') ?>별명</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_name') ?>이름</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_level', '', 'desc') ?>권한</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_point', '', 'desc') ?> 포인트</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_name') ?>이름</a>/<?php echo subject_sort_link('mb_level', '', 'desc') ?>권한</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_today_login', '', 'desc') ?>최종접속</a></th>
|
||||
<th scope="col">휴대폰</th>
|
||||
<th scope="col" colspan="6">주소</th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_point', '', 'desc') ?> 포인트</a></th>
|
||||
<th scope="col" rowspan="2">관리</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col">상태</th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_nick') ?>별명</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_datetime', '', 'desc') ?>가입일</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_mailling', '', 'desc') ?>수신</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_open', '', 'desc') ?>공개</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_email_certify', '', 'desc') ?>인증</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_intercept_date', '', 'desc') ?>차단</a></th>
|
||||
<th scope="col">전화번호</th>
|
||||
<th scope="col">본인<br>확인</th>
|
||||
<th scope="col">성인<br>인증</th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_mailling', '', 'desc') ?>메일<br>수신</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_open', '', 'desc') ?>정보<br>공개</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_email_certify', '', 'desc') ?>메일<br>인증</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_intercept_date', '', 'desc') ?>접근<br>차단</a></th>
|
||||
<th scope="col">그룹</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -165,11 +174,11 @@ $colspan = 15;
|
||||
$intercept_title = '';
|
||||
if ($row['mb_leave_date']) {
|
||||
$mb_id = $mb_id;
|
||||
$leave_msg = '<br>탈퇴함';
|
||||
$leave_msg = '<span class="mb_leave_msg">탈퇴함</span>';
|
||||
}
|
||||
else if ($row['mb_intercept_date']) {
|
||||
$mb_id = $mb_id;
|
||||
$intercept_msg = '<br>차단됨';
|
||||
$intercept_msg = '<span class="mb_intercept_msg">차단됨</span>';
|
||||
$intercept_title = '차단해제';
|
||||
}
|
||||
if ($intercept_title == '')
|
||||
@ -177,30 +186,43 @@ $colspan = 15;
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_chk">
|
||||
<td class="td_chk td_tdiv" rowspan="2">
|
||||
<input type="hidden" name="mb_id[<?php echo $i ?>]" value="<?php echo $row['mb_id'] ?>" id="mb_id_<?php echo $i ?>">
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i ?>" title="회원선택">
|
||||
<label for="chk_<?php echo $i; ?>" class="sound_only">회원선택</label>
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i ?>">
|
||||
</td>
|
||||
<td class="td_mbid">
|
||||
<?php echo $mb_id ?>
|
||||
<span><?php echo $leave_msg ?><?php echo $intercept_msg ?></span>
|
||||
<td class="td_name"><?php echo $mb_id ?></td>
|
||||
<td class="td_mbname">
|
||||
<?php echo $row['mb_name'] ?>
|
||||
<?php echo get_member_level_select("mb_level[$i]", 1, $member['mb_level'], $row['mb_level']) ?>
|
||||
</td>
|
||||
<td class="td_name"><div><?php echo $mb_nick ?></div></td>
|
||||
<td class="td_mbname"><?php echo $row['mb_name'] ?></td>
|
||||
<td><?php echo get_member_level_select("mb_level[$i]", 1, $member['mb_level'], $row['mb_level']) ?></td>
|
||||
<td class="td_bignum"><a href="point_list.php?sfl=mb_id&stx=<?php echo $row['mb_id'] ?>"><?php echo number_format($row['mb_point']) ?></a></td>
|
||||
<td><?php echo substr($row['mb_today_login'],2,8) ?></td>
|
||||
<td><?php echo substr($row['mb_datetime'],2,8) ?></td>
|
||||
<td><?php echo $row['mb_mailling']?'<span class="txt_true">Yes</span>':'<span class="txt_false">No</span>'; ?></td>
|
||||
<td><?php echo $row['mb_open']?'<span class="txt_true">Yes</span>':'<span class="txt_false">No</span>'; ?></td>
|
||||
<td><?php echo preg_match('/[1-9]/', $row['mb_email_certify'])?'<span class="txt_true">Yes</span>':'<span class="txt_false">No</span>'; ?></td>
|
||||
<td class="td_chk">
|
||||
<td>전화번호</td>
|
||||
<td colspan="6" class="td_addr">주소</td>
|
||||
<td class="td_bignum"><a href="point_list.php?sfl=mb_id&stx=<?php echo $row['mb_id'] ?>"><?php echo number_format($row['mb_point']) ?></a></td>
|
||||
<td rowspan="2" class="td_tdiv"><?php echo $s_mod ?><br><?php echo $s_grp ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class=" td_tdiv">
|
||||
<?php
|
||||
if ($leave_msg || $intercept_msg) echo $leave_msg.' '.$intercept_msg;
|
||||
else echo "정상";
|
||||
?>
|
||||
</td>
|
||||
<td class="td_name td_tdiv"><div><?php echo $mb_nick ?></div></td>
|
||||
<td class="td_tdiv"><?php echo substr($row['mb_datetime'],2,8) ?></td>
|
||||
<td class="td_tdiv">휴대폰번호</td>
|
||||
<td class="td_chk td_tdiv">본인</td>
|
||||
<td class="td_chk td_tdiv">성인</td>
|
||||
<td class="td_chk td_tdiv"><?php echo $row['mb_mailling']?'<span class="txt_true">Yes</span>':'<span class="txt_false">No</span>'; ?></td>
|
||||
<td class="td_chk td_tdiv"><?php echo $row['mb_open']?'<span class="txt_true">Yes</span>':'<span class="txt_false">No</span>'; ?></td>
|
||||
<td class="td_chk td_tdiv"><?php echo preg_match('/[1-9]/', $row['mb_email_certify'])?'<span class="txt_true">Yes</span>':'<span class="txt_false">No</span>'; ?></td>
|
||||
<td class="td_chk td_tdiv">
|
||||
<?php if(empty($row['mb_leave_date'])){ ?>
|
||||
<input type="checkbox" name="mb_intercept_date[<?php echo $i ?>]" <?php echo $row['mb_intercept_date']?'checked':''; ?> value="<?php echo $intercept_date ?>" id="mb_intercept_date_<?php echo $i ?>" title="<?php echo $intercept_title ?>">
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="td_chk"><?php echo $group ?></td>
|
||||
<td><?php echo $s_mod ?> <?php echo $s_grp ?></td>
|
||||
<td class="td_chk td_tdiv"><?php echo $group ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
@ -59,12 +59,12 @@ if (isset($wr_id) && $wr_id) {
|
||||
alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(G4_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr));
|
||||
}
|
||||
|
||||
if ($board['bo_use_cert'] == 'cert' && hp_certify($member) != 'Y') {
|
||||
if ($board['bo_use_cert'] == 'cert' && !$member['mb_hp_certfy']) {
|
||||
alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원정보 수정에서 휴대폰 본인확인을 해주시기 바랍니다.', G4_URL);
|
||||
}
|
||||
|
||||
if ($board['bo_use_cert'] == 'adult' && $member['mb_adult'] != 'Y') {
|
||||
alert('이 게시판은 휴대폰 본인확인으로 성인 인증된 회원님만 글읽기가 가능합니다.\\n\\n성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을\\n다시 해주시기 바랍니다.', G4_URL);
|
||||
if ($board['bo_use_cert'] == 'adult' && !$member['mb_adult']) {
|
||||
alert('이 게시판은 휴대폰 본인확인으로 성인인증 된 회원님만 글읽기가 가능합니다.\\n\\n성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을\\n다시 해주시기 바랍니다.', G4_URL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -39,14 +39,14 @@ sql_query($sql);
|
||||
|
||||
$href = G4_BBS_URL.'/password_lost_certify.php?mb_no='.$mb['mb_no'].'&mb_datetime='.$mb_datetime.'&mb_lost_certify='.$mb_lost_certify;
|
||||
|
||||
$subject = "[".$config['cf_title']."] 요청하신 회원 아이디/패스워드 정보입니다.";
|
||||
$subject = "[".$config['cf_title']."] 요청하신 회원정보 찾기 안내 메일입니다.";
|
||||
|
||||
$content = "";
|
||||
|
||||
$content .= '<div style="margin:30px auto;width:600px;border:10px solid #f7f7f7">';
|
||||
$content .= '<div style="border:1px solid #dedede">';
|
||||
$content .= '<h1 style="padding:30px 30px 0;background:#f7f7f7;color:#555;font-size:1.4em">';
|
||||
$content .= '회원 패스워드가 변경되었습니다.';
|
||||
$content .= '회원정보 찾기 안내';
|
||||
$content .= '</h1>';
|
||||
$content .= '<span style="display:block;padding:10px 30px 30px;background:#f7f7f7;text-align:right">';
|
||||
$content .= '<a href="'.G4_URL.'" target="_blank">'.$config['cf_title'].'</a>';
|
||||
|
||||
@ -80,7 +80,7 @@ if ($w == "") {
|
||||
$member['mb_password_a'] = get_text($member['mb_password_a']);
|
||||
$member['mb_birth'] = get_text($member['mb_birth']);
|
||||
$member['mb_tel'] = get_text($member['mb_tel']);
|
||||
$member['mb_hp'] = get_text($member['mb_hp']);
|
||||
$member['mb_hp'] = hyphen_hp_number(get_text($member['mb_hp']));
|
||||
$member['mb_addr1'] = get_text($member['mb_addr1']);
|
||||
$member['mb_addr2'] = get_text($member['mb_addr2']);
|
||||
$member['mb_signature'] = get_text($member['mb_signature']);
|
||||
|
||||
@ -183,12 +183,12 @@ if ($config['cf_kcpcert_use'] != '' && !$is_admin) {
|
||||
alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글쓰기가 가능합니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', 'login.php?'.$qstr.'&url='.urlencode($_SERVER['PHP_SELF'].'?bo_table='.$bo_table));
|
||||
}
|
||||
|
||||
if ($board['bo_use_cert'] == 'cert' && hp_certify($member) != 'Y') {
|
||||
if ($board['bo_use_cert'] == 'cert' && !$member['mb_hp_certfy']) {
|
||||
alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글쓰기가 가능합니다.\\n\\n회원정보 수정에서 휴대폰 본인확인을 해주시기 바랍니다.', G4_URL);
|
||||
}
|
||||
|
||||
if ($board['bo_use_cert'] == 'adult' && $member['mb_adult'] != 'Y') {
|
||||
alert('이 게시판은 휴대폰 본인확인으로 성인 인증된 회원님만 글쓰기가 가능합니다.\\n\\n성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을\\n다시 해주시기 바랍니다.', G4_URL);
|
||||
if ($board['bo_use_cert'] == 'adult' && !$member['mb_adult']) {
|
||||
alert('이 게시판은 휴대폰 본인확인으로 성인인증 된 회원님만 글쓰기가 가능합니다.\\n\\n성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을\\n다시 해주시기 바랍니다.', G4_URL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
153
config.php
153
config.php
@ -1,20 +1,21 @@
|
||||
<?php
|
||||
|
||||
//==============================================================================
|
||||
// 상수 선언
|
||||
//------------------------------------------------------------------------------
|
||||
/********************
|
||||
상수 선언
|
||||
********************/
|
||||
|
||||
// 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음
|
||||
define('_GNUBOARD_', true);
|
||||
|
||||
define('G4_TIMEZONE', 'Asia/Seoul');
|
||||
|
||||
if (PHP_VERSION >= '5.3.0') {
|
||||
date_default_timezone_set(G4_TIMEZONE);
|
||||
//if (function_exists("date_default_timezone_set")) date_default_timezone_set("Asia/Seoul");
|
||||
date_default_timezone_set("Asia/Seoul");
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// 경로 상수
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/********************
|
||||
경로 상수
|
||||
********************/
|
||||
|
||||
/*
|
||||
보안서버 도메인
|
||||
@ -30,25 +31,26 @@ define('G4_HTTPS_DOMAIN', '');
|
||||
www.sir.co.kr 과 sir.co.kr 도메인은 서로 다른 도메인으로 인식합니다. 쿠키를 공유하려면 .sir.co.kr 과 같이 입력하세요.
|
||||
이곳에 입력이 없다면 www 붙은 도메인과 그렇지 않은 도메인은 쿠키를 공유하지 않으므로 로그인이 풀릴 수 있습니다.
|
||||
*/
|
||||
define('G4_COOKIE_DOMAIN', '');
|
||||
define('G4_COOKIE_DOMAIN', '.sirgle.com');
|
||||
|
||||
define('G4_DBCONFIG_FILE', 'dbconfig.php');
|
||||
define('G4_DBCONFIG_FILE', 'dbconfig.php');
|
||||
|
||||
define('G4_ADMIN_DIR', 'adm');
|
||||
define('G4_BBS_DIR', 'bbs');
|
||||
define('G4_CSS_DIR', 'css');
|
||||
define('G4_DATA_DIR', 'data');
|
||||
define('G4_EXTEND_DIR', 'extend');
|
||||
define('G4_IMG_DIR', 'img');
|
||||
define('G4_JS_DIR', 'js');
|
||||
define('G4_LIB_DIR', 'lib');
|
||||
define('G4_PLUGIN_DIR', 'plugin');
|
||||
define('G4_SKIN_DIR', 'skin');
|
||||
define('G4_GCAPTCHA_DIR', 'gcaptcha');
|
||||
define('G4_CKEDITOR_DIR', 'ckeditor');
|
||||
define('G4_MOBILE_DIR', 'mobile');
|
||||
define('G4_KCP_DIR', 'kcp');
|
||||
define('G4_SYNDI_DIR', 'syndi');
|
||||
define('G4_ADMIN_DIR', 'adm');
|
||||
define('G4_BBS_DIR', 'bbs');
|
||||
define('G4_CSS_DIR', 'css');
|
||||
define('G4_DATA_DIR', 'data');
|
||||
define('G4_EXTEND_DIR', 'extend');
|
||||
define('G4_IMG_DIR', 'img');
|
||||
define('G4_JS_DIR', 'js');
|
||||
define('G4_LIB_DIR', 'lib');
|
||||
define('G4_PLUGIN_DIR', 'plugin');
|
||||
define('G4_SKIN_DIR', 'skin');
|
||||
define('G4_GCAPTCHA_DIR', 'gcaptcha');
|
||||
define('G4_CKEDITOR_DIR', 'ckeditor');
|
||||
define('G4_MOBILE_DIR', 'mobile');
|
||||
define('G4_KCP_DIR', 'kcp');
|
||||
define('G4_SNS_DIR', 'sns');
|
||||
define('G4_SYNDI_DIR', 'syndi');
|
||||
|
||||
// URL 은 브라우저상에서의 경로 (도메인으로 부터의)
|
||||
if (G4_DOMAIN) {
|
||||
@ -66,67 +68,80 @@ if (isset($g4_path['path'])) {
|
||||
define('G4_PATH', '');
|
||||
}
|
||||
|
||||
define('G4_ADMIN_URL', G4_URL.'/'.G4_ADMIN_DIR);
|
||||
define('G4_BBS_URL', G4_URL.'/'.G4_BBS_DIR);
|
||||
define('G4_CSS_URL', G4_URL.'/'.G4_CSS_DIR);
|
||||
define('G4_DATA_URL', G4_URL.'/'.G4_DATA_DIR);
|
||||
define('G4_IMG_URL', G4_URL.'/'.G4_IMG_DIR);
|
||||
define('G4_JS_URL', G4_URL.'/'.G4_JS_DIR);
|
||||
define('G4_SKIN_URL', G4_URL.'/'.G4_SKIN_DIR);
|
||||
define('G4_PLUGIN_URL', G4_URL.'/'.G4_PLUGIN_DIR);
|
||||
define('G4_GCAPTCHA_URL', G4_PLUGIN_URL.'/'.G4_GCAPTCHA_DIR);
|
||||
define('G4_CKEDITOR_URL', G4_PLUGIN_URL.'/'.G4_CKEDITOR_DIR); // CKEDITOR 의 라이브러리 경로
|
||||
define('G4_KCP_URL', G4_PLUGIN_URL.'/'.G4_KCP_DIR);
|
||||
define('G4_SYNDI_URL', G4_PLUGIN_URL.'/'.G4_SYNDI_DIR);
|
||||
define('G4_MOBILE_URL', G4_URL.'/'.G4_MOBILE_DIR);
|
||||
define('G4_ADMIN_URL', G4_URL.'/'.G4_ADMIN_DIR);
|
||||
define('G4_BBS_URL', G4_URL.'/'.G4_BBS_DIR);
|
||||
define('G4_CSS_URL', G4_URL.'/'.G4_CSS_DIR);
|
||||
define('G4_DATA_URL', G4_URL.'/'.G4_DATA_DIR);
|
||||
define('G4_IMG_URL', G4_URL.'/'.G4_IMG_DIR);
|
||||
define('G4_JS_URL', G4_URL.'/'.G4_JS_DIR);
|
||||
define('G4_SKIN_URL', G4_URL.'/'.G4_SKIN_DIR);
|
||||
define('G4_PLUGIN_URL', G4_URL.'/'.G4_PLUGIN_DIR);
|
||||
define('G4_GCAPTCHA_URL', G4_PLUGIN_URL.'/'.G4_GCAPTCHA_DIR);
|
||||
define('G4_CKEDITOR_URL', G4_PLUGIN_URL.'/'.G4_CKEDITOR_DIR); // CKEDITOR 의 라이브러리 경로
|
||||
define('G4_KCP_URL', G4_PLUGIN_URL.'/'.G4_KCP_DIR);
|
||||
define('G4_SNS_URL', G4_PLUGIN_URL.'/'.G4_SNS_DIR);
|
||||
define('G4_SYNDI_URL', G4_PLUGIN_URL.'/'.G4_SYNDI_DIR);
|
||||
define('G4_MOBILE_URL', G4_URL.'/'.G4_MOBILE_DIR);
|
||||
|
||||
// PATH 는 서버상에서의 절대경로
|
||||
define('G4_ADMIN_PATH', G4_PATH.'/'.G4_ADMIN_DIR);
|
||||
define('G4_BBS_PATH', G4_PATH.'/'.G4_BBS_DIR);
|
||||
define('G4_DATA_PATH', G4_PATH.'/'.G4_DATA_DIR);
|
||||
define('G4_EXTEND_PATH', G4_PATH.'/'.G4_EXTEND_DIR);
|
||||
define('G4_LIB_PATH', G4_PATH.'/'.G4_LIB_DIR);
|
||||
define('G4_PLUGIN_PATH', G4_PATH.'/'.G4_PLUGIN_DIR);
|
||||
define('G4_SKIN_PATH', G4_PATH.'/'.G4_SKIN_DIR);
|
||||
define('G4_GCAPTCHA_PATH', G4_PLUGIN_PATH.'/'.G4_GCAPTCHA_DIR);
|
||||
define('G4_CKEDITOR_PATH', G4_PLUGIN_PATH.'/'.G4_CKEDITOR_DIR);
|
||||
define('G4_KCP_PATH', G4_PLUGIN_PATH.'/'.G4_KCP_DIR);
|
||||
define('G4_SYNDI_PATH', G4_PLUGIN_PATH.'/'.G4_SYNDI_DIR);
|
||||
define('G4_MOBILE_PATH', G4_PATH.'/'.G4_MOBILE_DIR);
|
||||
define('G4_ADMIN_PATH', G4_PATH.'/'.G4_ADMIN_DIR);
|
||||
define('G4_BBS_PATH', G4_PATH.'/'.G4_BBS_DIR);
|
||||
define('G4_DATA_PATH', G4_PATH.'/'.G4_DATA_DIR);
|
||||
define('G4_EXTEND_PATH', G4_PATH.'/'.G4_EXTEND_DIR);
|
||||
define('G4_LIB_PATH', G4_PATH.'/'.G4_LIB_DIR);
|
||||
define('G4_PLUGIN_PATH', G4_PATH.'/'.G4_PLUGIN_DIR);
|
||||
define('G4_SKIN_PATH', G4_PATH.'/'.G4_SKIN_DIR);
|
||||
define('G4_GCAPTCHA_PATH', G4_PLUGIN_PATH.'/'.G4_GCAPTCHA_DIR);
|
||||
define('G4_CKEDITOR_PATH', G4_PLUGIN_PATH.'/'.G4_CKEDITOR_DIR);
|
||||
define('G4_KCP_PATH', G4_PLUGIN_PATH.'/'.G4_KCP_DIR);
|
||||
define('G4_SNS_PATH', G4_PLUGIN_PATH.'/'.G4_SNS_DIR);
|
||||
define('G4_SYNDI_PATH', G4_PLUGIN_PATH.'/'.G4_SYNDI_DIR);
|
||||
define('G4_MOBILE_PATH', G4_PATH.'/'.G4_MOBILE_DIR);
|
||||
//==============================================================================
|
||||
|
||||
|
||||
define('G4_USE_CACHE', true); // 최신글등에 cache 기능 사용 여부
|
||||
define('G4_USE_CACHE', true); // 최신글등에 cache 기능 사용 여부
|
||||
|
||||
|
||||
// 시간 상수
|
||||
/********************
|
||||
시간 상수
|
||||
********************/
|
||||
// 서버의 시간과 실제 사용하는 시간이 틀린 경우 수정하세요.
|
||||
// 하루는 86400 초입니다. 1시간은 3600초
|
||||
// 6시간이 빠른 경우 time() + (3600 * 6);
|
||||
// 6시간이 느린 경우 time() - (3600 * 6);
|
||||
define('G4_SERVER_TIME', time());
|
||||
define('G4_TIME_YMDHIS', date('Y-m-d H:i:s', G4_SERVER_TIME));
|
||||
define('G4_TIME_YMD', substr(G4_TIME_YMDHIS, 0, 10));
|
||||
define('G4_TIME_HIS', substr(G4_TIME_YMDHIS, 11, 8));
|
||||
define('G4_SERVER_TIME', time());
|
||||
define('G4_TIME_YMDHIS', date('Y-m-d H:i:s', G4_SERVER_TIME));
|
||||
define('G4_TIME_YMD', substr(G4_TIME_YMDHIS, 0, 10));
|
||||
define('G4_TIME_HIS', substr(G4_TIME_YMDHIS, 11, 8));
|
||||
|
||||
// 입력값 검사 상수 (숫자를 변경하시면 안됩니다.)
|
||||
define('G4_ALPHAUPPER', 1); // 영대문자
|
||||
define('G4_ALPHALOWER', 2); // 영소문자
|
||||
define('G4_ALPHABETIC', 4); // 영대,소문자
|
||||
define('G4_NUMERIC', 8); // 숫자
|
||||
define('G4_HANGUL', 16); // 한글
|
||||
define('G4_SPACE', 32); // 공백
|
||||
define('G4_SPECIAL', 64); // 특수문자
|
||||
define('G4_ALPHAUPPER', 1); // 영대문자
|
||||
define('G4_ALPHALOWER', 2); // 영소문자
|
||||
define('G4_ALPHABETIC', 4); // 영대,소문자
|
||||
define('G4_NUMERIC', 8); // 숫자
|
||||
define('G4_HANGUL', 16); // 한글
|
||||
define('G4_SPACE', 32); // 공백
|
||||
define('G4_SPECIAL', 64); // 특수문자
|
||||
|
||||
// 모바일 인지 결정 $_SERVER['HTTP_USER_AGENT']
|
||||
define('G4_MOBILE_AGENT', 'phone|samsung|lgtel|mobile|skt|nokia|blackberry|android|sony');
|
||||
define('G4_MOBILE_AGENT', 'phone|samsung|lgtel|mobile|skt|nokia|blackberry|android|sony');
|
||||
|
||||
//
|
||||
// 기타
|
||||
//
|
||||
|
||||
/********************
|
||||
SNS 상수
|
||||
********************/
|
||||
|
||||
define('G4_FACEBOOK_APPID', '119146498278078');
|
||||
define('G4_FACEBOOK_SECRET', '311e0d6ff8ff43cfe0e75fe82d71777c');
|
||||
define('G4_FACEBOOK_CALLBACK', G4_SNS_URL.'/facebook/callback.php');
|
||||
|
||||
|
||||
/********************
|
||||
기타 상수
|
||||
********************/
|
||||
|
||||
// 게시판에서 링크의 기본갯수를 말합니다.
|
||||
// 필드를 추가하면 이 숫자를 필드수에 맞게 늘려주십시오.
|
||||
//$g4['link_count'] = 2;
|
||||
define('G4_LINK_COUNT', 2);
|
||||
?>
|
||||
@ -249,6 +249,8 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
|
||||
.td_auth_mbnick {width:200px}
|
||||
/* 회원관리 목록 */
|
||||
.tbl_mb_list td {text-align:center}
|
||||
.mb_leave_msg {color:#b6b6b6}
|
||||
.mb_intercept_msg {color:#f59fe4}
|
||||
/* 포인트관리 목록 */
|
||||
.tbl_pt_list td {text-align:center}
|
||||
.tbl_pt_list .td_pt_log {text-align:left}
|
||||
@ -292,14 +294,12 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
|
||||
.td_mbid,
|
||||
.td_name,
|
||||
.td_mbname {width:100px;text-align:left !important}
|
||||
.td_addr {text-align:left !important}
|
||||
.td_time {width:150px;text-align:center}
|
||||
.td_boolean {width:50px;text-align:center}
|
||||
.td_pt {text-align:right !important}
|
||||
.td_payby {width:100px;text-align:center}
|
||||
.td_it_img {text-align:left !important}
|
||||
.td_img_view {text-align:center}
|
||||
.td_stats {}
|
||||
.td_small_stats {width:40px;text-align:center}
|
||||
|
||||
.td_tdiv {border-bottom:1px solid #c9c9c9 !important}
|
||||
|
||||
.txt_true {color:#e8180c}
|
||||
.txt_false {color:#ccc}
|
||||
@ -514,4 +514,4 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
|
||||
|
||||
#anc_pricecompare_engine dt a {font-weight:bold}
|
||||
#anc_pricecompare_engine dd {margin:0 0 30px}
|
||||
#anc_pricecompare_engine li {margin:5px 0}
|
||||
#anc_pricecompare_engine li {margin:5px 0}
|
||||
10
head.sub.php
10
head.sub.php
@ -15,11 +15,11 @@ else {
|
||||
|
||||
// 현재 접속자
|
||||
// 게시판 제목에 ' 포함되면 오류 발생
|
||||
$lo_location = addslashes($g4['title']);
|
||||
if (!$lo_location)
|
||||
$lo_location = $_SERVER['REQUEST_URI'];
|
||||
$lo_url = $_SERVER['REQUEST_URI'];
|
||||
if (strstr($lo_url, '/'.G4_ADMIN_DIR.'/') || $is_admin == 'super') $lo_url = '';
|
||||
$g4['lo_location'] = addslashes($g4['title']);
|
||||
if (!$g4['lo_location'])
|
||||
$g4['lo_location'] = $_SERVER['REQUEST_URI'];
|
||||
$g4['lo_url'] = $_SERVER['REQUEST_URI'];
|
||||
if (strstr($g4['lo_url'], '/'.G4_ADMIN_DIR.'/') || $is_admin == 'super') $g4['lo_url'] = '';
|
||||
|
||||
/*
|
||||
// 만료된 페이지로 사용하시는 경우
|
||||
|
||||
@ -411,9 +411,10 @@ CREATE TABLE IF NOT EXISTS `g4s_member` (
|
||||
`mb_jumin` varchar(255) NOT NULL default '',
|
||||
`mb_sex` char(1) NOT NULL default '',
|
||||
`mb_birth` varchar(255) NOT NULL default '',
|
||||
`mb_adult` enum('N','Y') NOT NULL default 'N',
|
||||
`mb_tel` varchar(255) NOT NULL default '',
|
||||
`mb_hp` varchar(255) NOT NULL default '',
|
||||
`mb_hp_certify` tinyint(4) NOT NULL default '0',
|
||||
`mb_adult` tinyint(4) NOT NULL default '0',
|
||||
`mb_zip1` char(3) NOT NULL default '',
|
||||
`mb_zip2` char(3) NOT NULL default '',
|
||||
`mb_addr1` varchar(255) NOT NULL default '',
|
||||
@ -430,7 +431,6 @@ CREATE TABLE IF NOT EXISTS `g4s_member` (
|
||||
`mb_email_certify` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`mb_memo` text NOT NULL,
|
||||
`mb_lost_certify` varchar(255) NOT NULL,
|
||||
`mb_hp_certify` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`mb_mailling` tinyint(4) NOT NULL default '0',
|
||||
`mb_sms` tinyint(4) NOT NULL default '0',
|
||||
`mb_open` tinyint(4) NOT NULL default '0',
|
||||
|
||||
@ -1004,7 +1004,7 @@ function get_sideview($mb_id, $name='', $email='', $homepage='')
|
||||
if(!$bo_table)
|
||||
return $name;
|
||||
|
||||
$tmp_name = "<a href=\"".G4_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=wr_name,1&stx=".$name."\" title=\"$name 이름으로 검색\"class=\"sv_guest\" onclick=\"return false;\">$name</a>";
|
||||
$tmp_name = "<a href=\"".G4_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=wr_name,1&stx=".$name."\" title=\"$name 이름으로 검색\" class=\"sv_guest\" onclick=\"return false;\">$name</a>";
|
||||
$title_mb_id = '[비회원]';
|
||||
}
|
||||
|
||||
@ -1029,7 +1029,7 @@ function get_sideview($mb_id, $name='', $email='', $homepage='')
|
||||
if($mb_id)
|
||||
$str2 .= "<a href=\"".G4_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=mb_id,1&stx=".$mb_id."\">아이디로 검색</a>\n";
|
||||
else
|
||||
$str2 .= "<a href=\"".G4_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=wr_name,1&stx=".$name."\">이름으로 검색</a>\n";
|
||||
$str2 .= "<a href=\"".G4_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=wr_name,1&stx=".$name."\">이름으로 검색</a>\n";
|
||||
}
|
||||
if($mb_id)
|
||||
$str2 .= "<a href=\"".G4_BBS_URL."/new.php?mb_id=".$mb_id."\">전체게시물</a>\n";
|
||||
@ -1939,12 +1939,11 @@ function html_end()
|
||||
$tmp_sql = " select count(*) as cnt from {$g4['login_table']} where lo_ip = '{$_SERVER['REMOTE_ADDR']}' ";
|
||||
$tmp_row = sql_fetch($tmp_sql);
|
||||
|
||||
//sql_query(" lock table $g4['login_table'] write ", false);
|
||||
if ($tmp_row['cnt']) {
|
||||
$tmp_sql = " update {$g4['login_table']} set mb_id = '{$member['mb_id']}', lo_datetime = '".G4_TIME_YMDHIS."', lo_location = '$lo_location', lo_url = '$lo_url' where lo_ip = '{$_SERVER['REMOTE_ADDR']}' ";
|
||||
$tmp_sql = " update {$g4['login_table']} set mb_id = '{$member['mb_id']}', lo_datetime = '".G4_TIME_YMDHIS."', lo_location = '{$g4['lo_location']}', lo_url = '{$g4['lo_url']}' where lo_ip = '{$_SERVER['REMOTE_ADDR']}' ";
|
||||
sql_query($tmp_sql, FALSE);
|
||||
} else {
|
||||
$tmp_sql = " insert into {$g4['login_table']} ( lo_ip, mb_id, lo_datetime, lo_location, lo_url ) values ( '{$_SERVER['REMOTE_ADDR']}', '{$member['mb_id']}', '".G4_TIME_YMDHIS."', '$lo_location', '$lo_url' ) ";
|
||||
$tmp_sql = " insert into {$g4['login_table']} ( lo_ip, mb_id, lo_datetime, lo_location, lo_url ) values ( '{$_SERVER['REMOTE_ADDR']}', '{$member['mb_id']}', '".G4_TIME_YMDHIS."', '{$g4['lo_location']}', '{$g4['lo_url']}' ) ";
|
||||
sql_query($tmp_sql, FALSE);
|
||||
|
||||
// 시간이 지난 접속은 삭제한다
|
||||
@ -1967,7 +1966,7 @@ function html_end()
|
||||
$stylesheet .= $link;
|
||||
$buffer = preg_replace('#'.$link.'#', '', $buffer);
|
||||
}
|
||||
/*
|
||||
/*
|
||||
</title>
|
||||
<link rel="stylesheet" href="default.css">
|
||||
밑으로 스킨의 스타일시트가 위치하도록 하게 한다.
|
||||
@ -1982,11 +1981,4 @@ function hyphen_hp_number($hp)
|
||||
$hp = preg_replace("/[^0-9]/", "", $hp);
|
||||
return preg_replace("/([0-9]{3})([0-9]{3,4})([0-9]{4})$/", "\\1-\\2-\\3", $hp);
|
||||
}
|
||||
|
||||
|
||||
// 휴대폰 본인확인을 받은 회원인지를 가린다.
|
||||
function hp_certify($member)
|
||||
{
|
||||
return substr($member['mb_hp_certify'],0,1) == '0' ? 'N' : 'Y';
|
||||
}
|
||||
?>
|
||||
@ -184,7 +184,7 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h
|
||||
// Animated GIF는 썸네일 생성하지 않음
|
||||
if($size[2] == 1) {
|
||||
if(is_animated_gif($source_file))
|
||||
return;
|
||||
return basename($source_file);
|
||||
}
|
||||
|
||||
$thumb_time = @filemtime($thumb_file);
|
||||
|
||||
@ -11,17 +11,9 @@
|
||||
#bo_cate a:active {text-decoration:none}
|
||||
#bo_cate #bo_cate_on {z-index:2;border:1px solid #565e60;background:#fff;color:#565e60;font-weight:bold}
|
||||
|
||||
.bo_list table {margin-bottom:1.5em;width:100%;border-collapse:collapse;border-spacing:0}
|
||||
|
||||
.bo_list th {}
|
||||
.bo_list th a {color:#fff;text-decoration:none}
|
||||
|
||||
.bo_list td {border-bottom:1px solid #ddd}
|
||||
|
||||
.bo_list img {margin-right:4px}
|
||||
.bo_list img:nth-last-of-type(1) {margin-right:0}
|
||||
|
||||
/* 관리자일 때 */
|
||||
#bo_list_admin th label {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
|
||||
#bo_list_admin th:nth-of-type(1) {width:40px}
|
||||
#bo_list_admin th:nth-of-type(3) {width:100px}
|
||||
|
||||
|
||||
@ -115,7 +115,7 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
?>
|
||||
</nav>
|
||||
|
||||
<article id="bo_v_atc">
|
||||
<article id="bo_v_atc" class="img_resize">
|
||||
<header>
|
||||
<h1>본문</h1>
|
||||
</header>
|
||||
@ -182,8 +182,6 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
<?php if ($board['bo_download_point'] < 0) { ?>
|
||||
$(function() {
|
||||
@ -237,8 +235,8 @@ $(function() {
|
||||
|
||||
function view_image_resize()
|
||||
{
|
||||
var $img = $("#bo_v_atc img");
|
||||
var img_wrap = $("#bo_v_atc").width();
|
||||
var $img = $(".img_resize img");
|
||||
var img_wrap = $(".img_resize").width();
|
||||
|
||||
$img.each(function() {
|
||||
var img_width = $(this).width();
|
||||
|
||||
@ -30,8 +30,8 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<footer id="ft">
|
||||
<h1><?php echo $config['cf_title'] ?> 정보</h1>
|
||||
<?php echo popular('basic'); // 인기검색어 ?>
|
||||
<?php echo visit("basic"); // 방문자수 ?>
|
||||
<div id="ft_catch"><a href="<?php echo $g4['url'] ?>/"><img src="<?php echo G4_IMG_URL ?>/ft_catch.jpg" alt="Sharing All Possibilities"></a></div>
|
||||
<?php echo visit('basic'); // 방문자수 ?>
|
||||
<div id="ft_catch"><a href="<?php echo G4_URL; ?>/"><img src="<?php echo G4_IMG_URL; ?>/ft_catch.jpg" alt="Sharing All Possibilities"></a></div>
|
||||
<div id="ft_copy">
|
||||
<p>
|
||||
Copyright © <b>소유하신 도메인.</b> All rights reserved.<br>
|
||||
@ -40,7 +40,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<a href="<?php echo $_SERVER['PHP_SELF'].($_SERVER['QUERY_STRING']?'?'.$_SERVER['QUERY_STRING'].'&':'?').'device=pc'; ?>" id="device_change">PC 버전으로 보기</a>
|
||||
<a href="<?php echo $_SERVER['PHP_SELF'].($_SERVER['QUERY_STRING']?'?'.str_replace("&", "&", $_SERVER['QUERY_STRING']).'&':'?').'device=pc'; ?>" id="device_change">PC 버전으로 보기</a>
|
||||
|
||||
<?php
|
||||
include_once(G4_PATH."/tail.sub.php");
|
||||
|
||||
@ -5,7 +5,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if ($msg = valid_mb_hp($mb_hp)) alert($msg, "", true, true);
|
||||
if ($msg = exist_mb_hp($mb_hp, $mb_id)) alert($msg, "", true, true);
|
||||
|
||||
$reg_hp = preg_replace("/[^0-9]/", "", trim($_POST['mb_hp']));
|
||||
$reg_mb_hp = preg_replace("/[^0-9]/", "", trim($_POST['mb_hp']));
|
||||
|
||||
/* ======================================================================================================= */
|
||||
/* = 휴대폰인증 및 성인인증 = */
|
||||
@ -17,7 +17,7 @@ if($w == '') {
|
||||
alert('휴대폰인증이 되지 않았습니다. 휴대폰인증을 해주세요.', '', true, true);
|
||||
|
||||
// 본인인증 hash 체크
|
||||
$reg_hash = md5($reg_hp.$mb_name.$kcpcert_no);
|
||||
$reg_hash = md5($reg_mb_hp.$mb_name.$kcpcert_no);
|
||||
if(get_session('ss_kcpcert_hash') != $reg_hash)
|
||||
alert('이름 또는 휴대폰번호가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', '', true, true);
|
||||
|
||||
@ -25,14 +25,14 @@ if($w == '') {
|
||||
// 휴대폰번호 변경체크
|
||||
$old_hp = preg_replace("/[^0-9]/", "", trim($_POST['old_mb_hp']));
|
||||
|
||||
if($old_hp !== $reg_hp) {
|
||||
if($old_hp !== $reg_mb_hp) {
|
||||
// 본인인증체크
|
||||
$kcpcert_no = get_session('ss_kcpcert_no');
|
||||
if(!$kcpcert_no)
|
||||
alert('휴대폰번호가 변경됐습니다. 휴대폰인증을 해주세요.', '', true, true);
|
||||
|
||||
// 본인인증 hash 체크
|
||||
$reg_hash = md5($reg_hp.$mb_name.$kcpcert_no);
|
||||
$reg_hash = md5($reg_mb_hp.$mb_name.$kcpcert_no);
|
||||
if(get_session('ss_kcpcert_hash') != $reg_hash)
|
||||
alert('이름 또는 휴대폰인증 정보가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', '', true, true);
|
||||
}
|
||||
|
||||
@ -3,27 +3,18 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 휴대폰번호 포맷(010-0000-0000) 변경해서 기록
|
||||
// $reg_mb_hp 는 rigister_form_update.head.skin.php 파일
|
||||
$sql = " update {$g4['member_table']}
|
||||
set mb_hp = '$reg_mb_hp'
|
||||
where mb_id = '$mb_id' ";
|
||||
$sql = " update {$g4['member_table']} set mb_hp = '$reg_mb_hp' where mb_id = '$mb_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
/* =========================================================================== */
|
||||
/* = 휴대폰인증 및 성인인증 = */
|
||||
/* =========================================================================== */
|
||||
if(get_session('ss_kcpcert_no')) {
|
||||
$mb_adult = 'N';
|
||||
if(get_session('ss_adult_check') == 'Y')
|
||||
$mb_adult = 'Y';
|
||||
|
||||
$mb_hp_certify = get_session('ss_kcpcert_time');
|
||||
$sql = " update {$g4['member_table']}
|
||||
set mb_hp_certify = '$mb_hp_certify',
|
||||
mb_adult = '$mb_adult'
|
||||
set mb_hp_certify = '".get_session('ss_hp_certify')."',
|
||||
mb_adult = '".get_session('ss_adult')."'
|
||||
where mb_id = '$mb_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
/* =========================================================================== */
|
||||
|
||||
//set_session('ss_adult_check', '');
|
||||
?>
|
||||
@ -48,7 +48,4 @@ function f_get_parm_int( $val )
|
||||
return $ret_val;
|
||||
}
|
||||
/* ============================================================================== */
|
||||
|
||||
// ss_adult_check clear
|
||||
//if(get_session('ss_adult_check')) set_session('ss_adult_check', '');
|
||||
?>
|
||||
@ -2,9 +2,9 @@
|
||||
include_once('./kcpcert_config.php');
|
||||
|
||||
set_session('ss_kcpcert_no', '');
|
||||
set_session('ss_kcpcert_time', '');
|
||||
set_session('ss_kcpcert_hash', '');
|
||||
set_session('ss_adult_check', '');
|
||||
set_session('ss_hp_certify', '');
|
||||
set_session('ss_adult', '');
|
||||
|
||||
$site_cd = "";
|
||||
$ordr_idxx = "";
|
||||
@ -139,13 +139,13 @@ if( $cert_enc_use == "Y" )
|
||||
$md5_cert_no = md5($cert_no);
|
||||
$hash_data = md5($phone_no.$user_name.$md5_cert_no);
|
||||
set_session("ss_kcpcert_no", $md5_cert_no);
|
||||
set_session("ss_kcpcert_time", G4_TIME_YMDHIS);
|
||||
set_session("ss_kcpcert_hash", $hash_data);
|
||||
set_session("ss_hp_certify", "1");
|
||||
|
||||
// 성인인증결과
|
||||
$adult_day = date("Ymd", strtotime("-19 years", G4_SERVER_TIME));
|
||||
if((int)$birth_day <= (int)$adult_day)
|
||||
set_session("ss_adult_check", "Y");
|
||||
set_session("ss_adult", "1");
|
||||
}
|
||||
else if( $res_cd != "0000" )
|
||||
{
|
||||
|
||||
@ -174,7 +174,7 @@ if ($is_nogood) $colspan++;
|
||||
<option value="wr_name,0"<?php echo get_selected($sfl, 'wr_name,0'); ?>>글쓴이(코)</option>
|
||||
</select>
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required class="frm_input required" size="15" maxlength="15">
|
||||
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" id="stx" required class="frm_input required" size="15" maxlength="15">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</form>
|
||||
</fieldset>
|
||||
|
||||
@ -217,6 +217,35 @@ $(window).load(function() {
|
||||
view_image_resize();
|
||||
});
|
||||
|
||||
var now = new Date();
|
||||
var timeout = false;
|
||||
var millisec = 200;
|
||||
var tid;
|
||||
|
||||
$(window).resize(function() {
|
||||
now = new Date();
|
||||
if (timeout === false) {
|
||||
timeout = true;
|
||||
|
||||
if(tid != null)
|
||||
clearTimeout(tid);
|
||||
|
||||
tid = setTimeout(resize_check, millisec);
|
||||
}
|
||||
});
|
||||
|
||||
function resize_check() {
|
||||
if (new Date() - now < millisec) {
|
||||
if(tid != null)
|
||||
clearTimeout(tid);
|
||||
|
||||
tid = setTimeout(resize_check, millisec);
|
||||
} else {
|
||||
timeout = false;
|
||||
view_image_resize();
|
||||
}
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$("a.view_image").click(function() {
|
||||
window.open(this.href, "large_image", "location=yes,links=no,toolbar=no,top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no");
|
||||
@ -240,14 +269,27 @@ function view_image_resize()
|
||||
{
|
||||
var $img = $("#bo_v_atc img");
|
||||
var img_wrap = $("#bo_v_atc").width();
|
||||
var win_width = $(window).width() - 35;
|
||||
var res_width = 0;
|
||||
|
||||
if(img_wrap < win_width)
|
||||
res_width = img_wrap;
|
||||
else
|
||||
res_width = win_width;
|
||||
|
||||
$img.each(function() {
|
||||
var img_width = $(this).width();
|
||||
$(this).data("width", img_width); // 원래 이미지 사이즈
|
||||
if (img_width > img_wrap) {
|
||||
$(this).addClass("img_fix");
|
||||
} else if (img_width <= img_wrap && img_width >= $(this).data("width")) {
|
||||
$(this).removeClass("img_fix");
|
||||
var this_width = $(this).data("width");
|
||||
|
||||
if(this_width == undefined) {
|
||||
$(this).data("width", img_width); // 원래 이미지 사이즈
|
||||
this_width = img_width;
|
||||
}
|
||||
|
||||
if(this_width > res_width) {
|
||||
$(this).width(res_width);
|
||||
} else {
|
||||
$(this).width(this_width);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -171,7 +171,7 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
<option value="wr_name,0"<?php echo get_selected($sfl, "wr_name,0"); ?>>글쓴이(코)</option>
|
||||
</select>
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required class="frm_input required" size="15" maxlength="15">
|
||||
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" id="stx" required class="frm_input required" size="15" maxlength="15">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</form>
|
||||
</fieldset>
|
||||
|
||||
@ -215,6 +215,35 @@ $(window).load(function() {
|
||||
view_image_resize();
|
||||
});
|
||||
|
||||
var now = new Date();
|
||||
var timeout = false;
|
||||
var millisec = 200;
|
||||
var tid;
|
||||
|
||||
$(window).resize(function() {
|
||||
now = new Date();
|
||||
if (timeout === false) {
|
||||
timeout = true;
|
||||
|
||||
if(tid != null)
|
||||
clearTimeout(tid);
|
||||
|
||||
tid = setTimeout(resize_check, millisec);
|
||||
}
|
||||
});
|
||||
|
||||
function resize_check() {
|
||||
if (new Date() - now < millisec) {
|
||||
if(tid != null)
|
||||
clearTimeout(tid);
|
||||
|
||||
tid = setTimeout(resize_check, millisec);
|
||||
} else {
|
||||
timeout = false;
|
||||
view_image_resize();
|
||||
}
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$("a.view_image").click(function() {
|
||||
window.open(this.href, "large_image", "location=yes,links=no,toolbar=no,top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no");
|
||||
@ -238,14 +267,27 @@ function view_image_resize()
|
||||
{
|
||||
var $img = $("#bo_v_atc img");
|
||||
var img_wrap = $("#bo_v_atc").width();
|
||||
var win_width = $(window).width() - 35;
|
||||
var res_width = 0;
|
||||
|
||||
if(img_wrap < win_width)
|
||||
res_width = img_wrap;
|
||||
else
|
||||
res_width = win_width;
|
||||
|
||||
$img.each(function() {
|
||||
var img_width = $(this).width();
|
||||
$(this).data("width", img_width); // 원래 이미지 사이즈
|
||||
if (img_width > img_wrap) {
|
||||
$(this).addClass("img_fix");
|
||||
} else if (img_width <= img_wrap && img_width >= $(this).data("width")) {
|
||||
$(this).removeClass("img_fix");
|
||||
var this_width = $(this).data("width");
|
||||
|
||||
if(this_width == undefined) {
|
||||
$(this).data("width", img_width); // 원래 이미지 사이즈
|
||||
this_width = img_width;
|
||||
}
|
||||
|
||||
if(this_width > res_width) {
|
||||
$(this).width(res_width);
|
||||
} else {
|
||||
$(this).width(this_width);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
8
tail.php
8
tail.php
@ -22,8 +22,8 @@ if ($config['cf_include_tail']) {
|
||||
<footer id="ft">
|
||||
<h1><?php echo $config['cf_title'] ?> 정보</h1>
|
||||
<?php echo popular('basic'); // 인기검색어 ?>
|
||||
<?php echo visit("basic"); // 방문자수 ?>
|
||||
<div id="ft_catch"><a href="<?php echo $g4['url'] ?>/"><img src="<?php echo G4_IMG_URL ?>/ft_catch.jpg" alt="Sharing All Possibilities"></a></div>
|
||||
<?php echo visit('basic'); // 방문자수 ?>
|
||||
<div id="ft_catch"><a href="<?php echo G4_URL; ?>/"><img src="<?php echo G4_IMG_URL; ?>/ft_catch.jpg" alt="Sharing All Possibilities"></a></div>
|
||||
<div id="ft_copy">
|
||||
<p>
|
||||
Copyright © <b>소유하신 도메인.</b> All rights reserved.<br>
|
||||
@ -32,8 +32,8 @@ if ($config['cf_include_tail']) {
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<?php if(!G4_IS_MOBILE){ ?>
|
||||
<a href="<?php echo $_SERVER['PHP_SELF'].($_SERVER['QUERY_STRING']?'?'.$_SERVER['QUERY_STRING'].'&':'?').'device=mobile'; ?>" id="device_change">모바일 버전으로 보기</a>
|
||||
<?php if(!G4_IS_MOBILE) { ?>
|
||||
<a href="<?php echo $_SERVER['PHP_SELF'].($_SERVER['QUERY_STRING']?'?'.str_replace("&", "&", $_SERVER['QUERY_STRING']).'&':'?').'device=mobile'; ?>" id="device_change">모바일 버전으로 보기</a>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user