Exemplo n.º 1
0
<?php

$sub_menu = "200100";
include_once "./_common.php";
include_once G5_LIB_PATH . "/register.lib.php";
if ($w == 'u') {
    check_demo();
}
auth_check($auth[$sub_menu], 'w');
check_admin_token();
$mb_id = trim($_POST['mb_id']);
// 휴대폰번호 체크
$mb_hp = hyphen_hp_number($_POST['mb_hp']);
if ($mb_hp) {
    $result = exist_mb_hp($mb_hp, $mb_id);
    if ($result) {
        alert($result);
    }
}
// 인증정보처리
if ($_POST['mb_certify_case'] && $_POST['mb_certify']) {
    $mb_certify = $_POST['mb_certify_case'];
    $mb_adult = $_POST['mb_adult'];
} else {
    $mb_certify = '';
    $mb_adult = 0;
}
$mb_zip1 = substr($_POST['mb_zip'], 0, 3);
$mb_zip2 = substr($_POST['mb_zip'], 3);
$sql_common = "  mb_name = '{$_POST['mb_name']}',\n                 mb_nick = '{$_POST['mb_nick']}',\n                 mb_email = '{$_POST['mb_email']}',\n                 mb_homepage = '{$_POST['mb_homepage']}',\n                 mb_tel = '{$_POST['mb_tel']}',\n                 mb_hp = '{$mb_hp}',\n                 mb_certify = '{$mb_certify}',\n                 mb_adult = '{$mb_adult}',\n                 mb_zip1 = '{$mb_zip1}',\n                 mb_zip2 = '{$mb_zip2}',\n                 mb_addr1 = '{$_POST['mb_addr1']}',\n                 mb_addr2 = '{$_POST['mb_addr2']}',\n                 mb_addr3 = '{$_POST['mb_addr3']}',\n                 mb_addr_jibeon = '{$_POST['mb_addr_jibeon']}',\n                 mb_signature = '{$_POST['mb_signature']}',\n                 mb_leave_date = '{$_POST['mb_leave_date']}',\n                 mb_intercept_date='{$_POST['mb_intercept_date']}',\n                 mb_memo = '{$_POST['mb_memo']}',\n                 mb_mailling = '{$_POST['mb_mailling']}',\n                 mb_sms = '{$_POST['mb_sms']}',\n                 mb_open = '{$_POST['mb_open']}',\n                 mb_profile = '{$_POST['mb_profile']}',\n                 mb_level = '{$_POST['mb_level']}',\n                 mb_1 = '{$_POST['mb_1']}',\n                 mb_2 = '{$_POST['mb_2']}',\n                 mb_3 = '{$_POST['mb_3']}',\n                 mb_4 = '{$_POST['mb_4']}',\n                 mb_5 = '{$_POST['mb_5']}',\n                 mb_6 = '{$_POST['mb_6']}',\n                 mb_7 = '{$_POST['mb_7']}',\n                 mb_8 = '{$_POST['mb_8']}',\n                 mb_9 = '{$_POST['mb_9']}',\n                 mb_10 = '{$_POST['mb_10']}' ";
if ($w == '') {
Exemplo n.º 2
0
        <th scope="row">이메일</th>
        <td><?php 
    echo get_text($iq['iq_email']);
    ?>
</td>
    </tr>
    <?php 
}
?>
    <?php 
if ($iq['iq_hp']) {
    ?>
    <tr>
        <th scope="row">휴대폰</th>
        <td><?php 
    echo hyphen_hp_number($iq['iq_hp']);
    ?>
</td>
    </tr>
    <?php 
}
?>
    <tr>
        <th scope="row"><label for="iq_subject">제목</label></th>
        <td><input type="text" name="iq_subject" value="<?php 
echo conv_subject($iq['iq_subject'], 120);
?>
" id="iq_subject" required class="frm_input required" size="95"></td>
    </tr>
    <tr>
        <th scope="row"><label for="iq_question">질문</label></th>
Exemplo n.º 3
0
 // CI
 $di = $ct_cert->mf_get_key_value("di");
 // DI 중복가입 확인값
 $ci_url = urldecode($ct_cert->mf_get_key_value("ci"));
 // CI
 $di_url = urldecode($ct_cert->mf_get_key_value("di"));
 // DI 중복가입 확인값
 $dec_res_cd = $ct_cert->mf_get_key_value("res_cd");
 // 암호화된 결과코드
 $dec_mes_msg = $ct_cert->mf_get_key_value("res_msg");
 // 암호화된 결과메시지
 // 정상인증인지 체크
 if (!$phone_no) {
     alert_close("정상적인 인증이 아닙니다. 올바른 방법으로 이용해 주세요.");
 }
 $phone_no = hyphen_hp_number($phone_no);
 $sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_hp = '{$phone_no}' ";
 $row = sql_fetch($sql);
 if ($row['mb_id']) {
     alert_close("이미 가입되어 있는 휴대폰번호 입니다.\\n회원아이디 : " . $row['mb_id']);
 }
 // hash 데이터
 $cert_type = 'hp';
 $md5_cert_no = md5($cert_no);
 $hash_data = md5($user_name . $cert_type . $birth_day . $md5_cert_no);
 // 성인인증결과
 $adult_day = date("Ymd", strtotime("-19 years", G5_SERVER_TIME));
 $adult = (int) $birth_day <= (int) $adult_day ? 1 : 0;
 set_session("ss_cert_type", $cert_type);
 set_session("ss_cert_no", $md5_cert_no);
 set_session("ss_cert_hash", $hash_data);
Exemplo n.º 4
0
function exist_mb_hp($reg_mb_hp, $reg_mb_id)
{
    global $g5;
    if (!trim($reg_mb_hp)) {
        return "";
    }
    $reg_mb_hp = hyphen_hp_number($reg_mb_hp);
    $sql = "select count(*) as cnt from {$g5['member_table']} where mb_hp = '{$reg_mb_hp}' and mb_id <> '{$reg_mb_id}' ";
    $row = sql_fetch($sql);
    if ($row['cnt']) {
        return " 이미 사용 중인 휴대폰번호입니다. " . $reg_mb_hp;
    } else {
        return "";
    }
}
Exemplo n.º 5
0
$mb_name = clean_xss_tags($mb_name);
$mb_email = get_email_address($mb_email);
$mb_homepage = clean_xss_tags($mb_homepage);
$mb_tel = clean_xss_tags($mb_tel);
$mb_zip1 = preg_replace('/[^0-9]/', '', $mb_zip1);
$mb_zip2 = preg_replace('/[^0-9]/', '', $mb_zip2);
$mb_addr1 = clean_xss_tags($mb_addr1);
$mb_addr2 = clean_xss_tags($mb_addr2);
$mb_addr3 = clean_xss_tags($mb_addr3);
$mb_addr_jibeon = preg_match("/^(N|R)\$/", $mb_addr_jibeon) ? $mb_addr_jibeon : '';
// 사용자 코드 실행
@(include_once $member_skin_path . '/register_form_update.head.skin.php');
//===============================================================
//  본인확인
//---------------------------------------------------------------
$mb_hp = hyphen_hp_number($mb_hp);
if ($config['cf_cert_use'] && $_SESSION['ss_cert_type'] && $_SESSION['ss_cert_dupinfo']) {
    // 중복체크
    $sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$_SESSION['ss_cert_dupinfo']}' ";
    $row = sql_fetch($sql);
    if ($row['mb_id']) {
        alert("입력하신 본인확인 정보로 가입된 내역이 존재합니다.\\n회원아이디 : " . $row['mb_id']);
    }
}
$sql_certify = '';
$md5_cert_no = $_SESSION['ss_cert_no'];
$cert_type = $_SESSION['ss_cert_type'];
if ($config['cf_cert_use'] && $cert_type && $md5_cert_no) {
    // 해시값이 같은 경우에만 본인확인 값을 저장한다.
    if ($_SESSION['ss_cert_hash'] == md5($mb_name . $cert_type . $_SESSION['ss_cert_birth'] . $md5_cert_no)) {
        $sql_certify .= " , mb_hp = '{$mb_hp}' ";
Exemplo n.º 6
0
echo "DI                :$field[4]  <br/>";
echo "CI                :$field[5]  <br/>";
echo "성명              :$field[7]  <br/>";
echo "생년월일          :$field[8]  <br/>";
echo "성별              :$field[9]  <br/>";
echo "내외국인구분      :$field[10] <br/>";
echo "통신사코드        :$field[11] <br/>";
echo "휴대폰번호        :$field[12] <br/>";
echo "리턴메시지        :$field[16] <br/>";
*/
// 인증결과처리
$mb_name = $field[7];
$req_num = $field[12];
$mb_birth = $field[8];
// 휴대폰번호 중복체크
$phone_no = hyphen_hp_number($req_num);
$sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_hp = '{$phone_no}' ";
$row = sql_fetch($sql);
if ($row['mb_id']) {
    alert_close("이미 가입되어 있는 휴대폰번호 입니다.\\n회원아이디 : " . $row['mb_id']);
}
// hash 데이터
$cert_type = 'hp';
$md5_cert_no = md5($req_num);
$hash_data = md5($mb_name . $cert_type . $mb_birth . $md5_cert_no);
// 성인인증결과
$adult_day = date("Ymd", strtotime("-19 years", G5_SERVER_TIME));
$adult = (int) $mb_birth <= (int) $adult_day ? 1 : 0;
set_session('ss_cert_type', $cert_type);
set_session('ss_cert_no', $md5_cert_no);
set_session('ss_cert_hash', $hash_data);
Exemplo n.º 7
0
<?php

include_once './_common.php';
// 상품정보
$sql = " select it_id, it_name, it_soldout, it_stock_sms\n            from {$g5['g5_shop_item_table']}\n            where it_id = '{$it_id}' ";
$it = sql_fetch($sql);
if (!$it['it_id']) {
    alert_close('자료가 존재하지 않습니다.');
}
if (!$it['it_soldout'] || !$it['it_stock_sms']) {
    alert_close('재입고SMS 알림을 신청할 수 없는 자료입니다.');
}
$ss_hp = hyphen_hp_number($ss_hp);
if (!$ss_hp) {
    alert('휴대폰번호를 입력해 주십시오.');
}
if (!$agree) {
    alert('개인정보처리방침안내에 동의해 주십시오.');
}
// 중복등록 체크
$sql = " select count(*) as cnt\n            from {$g5['g5_shop_item_stocksms_table']}\n            where it_id = '{$it_id}'\n              and ss_hp = '{$ss_hp}'\n              and ss_send = '0' ";
$row = sql_fetch($sql);
if ($row['cnt']) {
    alert_close('해당 자료에 대하여 이전에 알림 요청을 등록한 내역이 있습니다.');
}
// 정보입력
$sql = " insert into {$g5['g5_shop_item_stocksms_table']}\n            set it_id       = '{$it_id}',\n                ss_hp       = '{$ss_hp}',\n                ss_ip       = '{$_SERVER['REMOTE_ADDR']}',\n                ss_datetime = '" . G5_TIME_YMDHIS . "' ";
sql_query($sql);
alert_close('재입고SMS 알림 요청 등록이 완료됐습니다.');
Exemplo n.º 8
0
				<?php 
if ($qa['iq_email']) {
    ?>
					&nbsp; &nbsp;
					<i class="fa fa-envelope"></i> <?php 
    echo get_text($qa['iq_email']);
    ?>
				<?php 
}
?>
				<?php 
if ($qa['iq_hp']) {
    ?>
					&nbsp; &nbsp;
					<i class="fa fa-phone"></i> <?php 
    echo hyphen_hp_number($qa['iq_hp']);
    ?>
				<?php 
}
?>
			</p>
			<div class="qa-view">
				<?php 
echo get_view_thumbnail($qa['iq_question'], $default['pt_img_width']);
?>
			</div>
		</div>
	</div>

	<div class="form-group">
		<?php