리뉴얼과 합침

This commit is contained in:
thisgun committed 2017-08-11 15:35:18 +09:00
1 parent 121d369ab8
commit 0954b3ce74
359 files changed
+24621 -4963

No files matched your search

+2 -2
View File
@@ -136,7 +136,7 @@ if (isset($wr_id) && $wr_id) {
set_session($ss_name, TRUE);
}
$g5['title'] = strip_tags(conv_subject($write['wr_subject'], 255))." > ".((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']);
$g5['title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']);
} else {
if ($member['mb_level'] < $board['bo_list_level']) {
if ($member['mb_id'])
@@ -171,7 +171,7 @@ if (isset($wr_id) && $wr_id) {
if (!isset($page) || (isset($page) && $page == 0)) $page = 1;
$g5['title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']).' '.$page.' 페이지';
$g5['title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']) ;
}
include_once(G5_PATH.'/head.sub.php');
+4
View File
@@ -1,6 +1,10 @@
<?php
include_once('./_common.php');
if( function_exists('social_check_login_before') ){
$social_login_html = social_check_login_before();
}
$g5['title'] = '로그인';
include_once('./_head.sub.php');
+33 -3
View File
@@ -11,10 +11,25 @@ if (!$mb_id || !$mb_password)
$mb = get_member($mb_id);
//소셜 로그인추가 체크
$is_social_login = false;
$is_social_password_check = false;
// 소셜 로그인이 맞는지 체크하고 해당 값이 맞는지 체크합니다.
if(function_exists('social_is_login_check')){
$is_social_login = social_is_login_check();
//패스워드를 체크할건지 결정합니다.
//소셜로그인일때는 체크하지 않고, 계정을 연결할때는 체크합니다.
$is_social_password_check = social_is_login_password_check($mb_id);
}
//소셜 로그인이 맞다면 패스워드를 체크하지 않습니다.
// 가입된 회원이 아니다. 비밀번호가 틀리다. 라는 메세지를 따로 보여주지 않는 이유는
// 회원아이디를 입력해 보고 맞으면 또 비밀번호를 입력해보는 경우를 방지하기 위해서입니다.
// 불법사용자의 경우 회원아이디가 틀린지, 비밀번호가 틀린지를 알기까지는 많은 시간이 소요되기 때문입니다.
if (!$mb['mb_id'] || !check_password($mb_password, $mb['mb_password'])) {
if (!$is_social_password_check && (!$mb['mb_id'] || !check_password($mb_password, $mb['mb_password'])) ) {
alert('가입된 회원아이디가 아니거나 비밀번호가 틀립니다.\\n비밀번호는 대소문자를 구분합니다.');
}
@@ -30,7 +45,8 @@ if ($mb['mb_leave_date'] && $mb['mb_leave_date'] <= date("Ymd", G5_SERVER_TIME))
alert('탈퇴한 아이디이므로 접근하실 수 없습니다.\n탈퇴일 : '.$date);
}
if ($config['cf_use_email_certify'] && !preg_match("/[1-9]/", $mb['mb_email_certify'])) {
//쇼설 로그인이 아니고 메일인증 설정이 되어 있다면
if (!$is_social_login && $config['cf_use_email_certify'] && !preg_match("/[1-9]/", $mb['mb_email_certify'])) {
$ckey = md5($mb['mb_ip'].$mb['mb_datetime']);
confirm("{$mb['mb_email']} 메일로 메일인증을 받으셔야 로그인 가능합니다. 다른 메일주소로 변경하여 인증하시려면 취소를 클릭하시기 바랍니다.", G5_URL, G5_BBS_URL.'/register_email.php?mb_id='.$mb_id.'&ckey='.$ckey);
}
@@ -77,15 +93,29 @@ if ($url) {
$split= "?";
// $_POST 배열변수에서 아래의 이름을 가지지 않은 것만 넘김
$post_check_keys = array('mb_id', 'mb_password', 'x', 'y', 'url');
//소셜 로그인 추가
if($is_social_login){
$post_check_keys[] = 'provider';
}
foreach($_POST as $key=>$value) {
if ($key != 'mb_id' && $key != 'mb_password' && $key != 'x' && $key != 'y' && $key != 'url') {
if ($key && !in_array($key, $post_check_keys)) {
$link .= "$split$key=$value";
$split = "&amp;";
}
}
} else {
$link = G5_URL;
}
//소셜 로그인 추가
if(function_exists('social_login_success_after')){
// 로그인 성공시 소셜 데이터를 기존의 데이터와 비교하여 바뀐 부분이 있으면 업데이트 합니다.
$link = social_login_success_after($mb, $link);
}
goto_url($link);
?>
+4
View File
@@ -1,6 +1,10 @@
<?php
include_once('./_common.php');
if(function_exists('social_provider_logout')){
social_provider_logout();
}
// 이호경님 제안 코드
session_unset(); // 모든 세션변수를 언레지스터 시켜줌
session_destroy(); // 세션해제함
+4
View File
@@ -11,6 +11,10 @@ else
$urlencode = urlencode($_SERVER[REQUEST_URI]);
*/
if( function_exists('is_social_member_type') && 'is_social' == is_social_member_type($member) ){
goto_url( G5_PLUGIN_URL.'/oauth/register_member.php' );
}
$g5['title'] = '회원 비밀번호 확인';
include_once('./_head.sub.php');
+5
View File
@@ -21,5 +21,10 @@ unset($_SESSION['ss_mb_id']);
if (!$url)
$url = G5_URL;
//소셜로그인 해제
if(function_exists('social_member_link_delete')){
social_member_link_delete($member['mb_id']);
}
alert(''.$member['mb_nick'].'님께서는 '. date("Y년 m월 d일") .'에 회원에서 탈퇴 하셨습니다.', $url);
?>
+37 -44
View File
@@ -57,50 +57,43 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
<input type="hidden" name="act" value="<?php echo $act ?>">
<input type="hidden" name="url" value="<?php echo get_text(clean_xss_tags($_SERVER['HTTP_REFERER'])); ?>">
<div class="tbl_head01 tbl_wrap">
<table>
<caption><?php echo $act ?>할 게시판을 한개 이상 선택하여 주십시오.</caption>
<thead>
<tr>
<th scope="col">
<label for="chkall" class="sound_only">현재 페이지 게시판 전체</label>
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
</th>
<th scope="col">게시판</th>
</tr>
</thead>
<tbody>
<?php for ($i=0; $i<count($list); $i++) {
$atc_mark = '';
$atc_bg = '';
if ($list[$i]['bo_table'] == $bo_table) { // 게시물이 현재 속해 있는 게시판이라면
$atc_mark = '<span class="copymove_current">현재<span class="sound_only">게시판</span></span>';
$atc_bg = 'copymove_currentbg';
}
?>
<tr class="<?php echo $atc_bg; ?>">
<td class="td_chk">
<label for="chk<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['bo_table'] ?></label>
<input type="checkbox" value="<?php echo $list[$i]['bo_table'] ?>" id="chk<?php echo $i ?>" name="chk_bo_table[]">
</td>
<td>
<label for="chk<?php echo $i ?>">
<?php
echo $list[$i]['gr_subject'] . ' &gt; ';
$save_gr_subject = $list[$i]['gr_subject'];
?>
<?php echo $list[$i]['bo_subject'] ?> (<?php echo $list[$i]['bo_table'] ?>)
<?php echo $atc_mark; ?>
</label>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<div class="list_01 new_win_con">
<span class="win_desc"><?php echo $act ?>할 게시판을 한개 이상 선택하여 주십시오.</span>
<div>
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
<label for="chkall"><span class="sound_only">현재 페이지 게시판</span> 전체선택</label>
</div>
<ul>
<?php for ($i=0; $i<count($list); $i++) {
$atc_mark = '';
$atc_bg = '';
if ($list[$i]['bo_table'] == $bo_table) { // 게시물이 현재 속해 있는 게시판이라면
$atc_mark = '<span class="copymove_current">현재<span class="sound_only">게시판</span></span>';
$atc_bg = 'copymove_currentbg';
}
?>
<li class="<?php echo $atc_bg; ?>">
<td class="td_chk">
<label for="chk<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['bo_table'] ?></label>
<input type="checkbox" value="<?php echo $list[$i]['bo_table'] ?>" id="chk<?php echo $i ?>" name="chk_bo_table[]">
</td>
<td>
<label for="chk<?php echo $i ?>">
<?php
echo $list[$i]['gr_subject'] . ' &gt; ';
$save_gr_subject = $list[$i]['gr_subject'];
?>
<?php echo $list[$i]['bo_subject'] ?> (<?php echo $list[$i]['bo_table'] ?>)
<?php echo $atc_mark; ?>
</label>
</td>
</li>
<?php } ?>
</ul>
<div class="win_btn">
<input type="submit" value="<?php echo $act ?>" id="btn_submit" class="btn_submit">
<div class="win_btn">
<input type="submit" value="<?php echo $act ?>" id="btn_submit" class="btn_submit">
</div>
</div>
</form>
@@ -108,7 +101,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
<script>
$(function() {
$(".win_btn").append("<button type=\"button\" class=\"btn_cancel\">창닫기</button>");
$(".win_btn").append("<button type=\"button\" class=\"btn_cancel btn_close\">창닫기</button>");
$(".win_btn button").click(function() {
window.close();
+7
View File
@@ -10,6 +10,13 @@ set_session("ss_cert_no", "");
set_session("ss_cert_hash", "");
set_session("ss_cert_type", "");
if( $provider && function_exists('social_nonce_is_valid') ){ //모바일로 소셜 연결을 했다면
if( social_nonce_is_valid(get_session("social_link_token"), $provider) ){ //토큰값이 유효한지 체크
$w = 'u'; //회원 수정으로 처리
$_POST['mb_id'] = $member['mb_id'];
}
}
if ($w == "") {
// 회원 로그인을 한 경우 회원가입 할 수 없다
+1 -1
View File
@@ -8,7 +8,7 @@ if (isset($_SESSION['ss_mb_reg']))
if (!$mb['mb_id'])
goto_url(G5_URL);
$g5['title'] = '회원가입이 완료되었습니다.';
$g5['title'] = '회원가입 완료';
include_once('./_head.php');
include_once($member_skin_path.'/register_result.skin.php');
include_once('./_tail.php');