Exemplo n.º 1
0
             $wr_email = addslashes($wr['wr_email']);
         }
         if (isset($_POST['wr_homepage']) && $_POST['wr_homepage']) {
             $wr_homepage = addslashes(clean_xss_tags($_POST['wr_homepage']));
         } else {
             $wr_homepage = addslashes(clean_xss_tags($wr['wr_homepage']));
         }
     }
 } else {
     $mb_id = "";
     // 비회원의 경우 이름이 누락되는 경우가 있음
     if (!trim($wr_name)) {
         alert("이름은 필히 입력하셔야 합니다.");
     }
     $wr_name = clean_xss_tags(trim($_POST['wr_name']));
     $wr_email = get_email_address(trim($_POST['wr_email']));
 }
 $sql_password = $wr_password ? " , wr_password = '******' " : "";
 $sql_ip = '';
 if (!$is_admin) {
     $sql_ip = " , wr_ip = '{$_SERVER['REMOTE_ADDR']}' ";
 }
 $sql = " update {$write_table}\n                set ca_name = '{$ca_name}',\n                     wr_option = '{$html},{$secret},{$mail}',\n                     wr_subject = '{$wr_subject}',\n                     wr_content = '{$wr_content}',\n                     wr_link1 = '{$wr_link1}',\n                     wr_link2 = '{$wr_link2}',\n                     mb_id = '{$mb_id}',\n                     wr_name = '{$wr_name}',\n                     wr_email = '{$wr_email}',\n                     wr_homepage = '{$wr_homepage}',\n                     wr_1 = '{$wr_1}',\n                     wr_2 = '{$wr_2}',\n                     wr_3 = '{$wr_3}',\n                     wr_4 = '{$wr_4}',\n                     wr_5 = '{$wr_5}',\n                     wr_6 = '{$wr_6}',\n                     wr_7 = '{$wr_7}',\n                     wr_8 = '{$wr_8}',\n                     wr_9 = '{$wr_9}',\n                     wr_10= '{$wr_10}'\n                     {$sql_ip}\n                     {$sql_password}\n              where wr_id = '{$wr['wr_id']}' ";
 sql_query($sql);
 // 분류가 수정되는 경우 해당되는 코멘트의 분류명도 모두 수정함
 // 코멘트의 분류를 수정하지 않으면 검색이 제대로 되지 않음
 $sql = " update {$write_table} set ca_name = '{$ca_name}' where wr_parent = '{$wr['wr_id']}' ";
 sql_query($sql);
 /*
 if ($notice) {
     //if (!preg_match("/[^0-9]{0,1}{$wr_id}[\r]{0,1}/",$board['bo_notice']))
Exemplo n.º 2
0
$html_value = "";
$secret_checked = "";
if ($w == '') {
    $password_required = 'required';
} else {
    if ($w == 'u') {
        $password_required = '';
        if (!$is_admin) {
            if (!($is_member && $member['mb_id'] == $write['mb_id'])) {
                if (!check_password($wr_password, $write['wr_password'])) {
                    alert('비밀번호가 틀립니다.');
                }
            }
        }
        $name = get_text(cut_str(stripslashes($write['wr_name']), 20));
        $email = get_email_address($write['wr_email']);
        $homepage = get_text(stripslashes($write['wr_homepage']));
        for ($i = 1; $i <= G5_LINK_COUNT; $i++) {
            $write['wr_link' . $i] = get_text($write['wr_link' . $i]);
            $link[$i] = $write['wr_link' . $i];
        }
        if (strstr($write['wr_option'], 'html1')) {
            $html_checked = 'checked';
            $html_value = 'html1';
        } else {
            if (strstr($write['wr_option'], 'html2')) {
                $html_checked = 'checked';
                $html_value = 'html2';
            }
        }
        if (strstr($write['wr_option'], 'secret')) {
Exemplo n.º 3
0
// 주문번호를 얻는다.
$od_id = get_session('ss_order_id');
$od_escrow = 0;
if ($escw_yn == 'Y') {
    $od_escrow = 1;
}
// 복합과세 금액
$od_tax_mny = round($i_price / 1.1);
$od_vat_mny = $i_price - $od_tax_mny;
$od_free_mny = 0;
if ($default['de_tax_flag_use']) {
    $od_tax_mny = (int) $_POST['comm_tax_mny'];
    $od_vat_mny = (int) $_POST['comm_vat_mny'];
    $od_free_mny = (int) $_POST['comm_free_mny'];
}
$od_email = get_email_address($od_email);
$od_name = clean_xss_tags($od_name);
$od_tel = clean_xss_tags($od_tel);
$od_hp = clean_xss_tags($od_hp);
$od_zip = preg_replace('/[^0-9]/', '', $od_zip);
$od_zip1 = substr($od_zip, 0, 3);
$od_zip2 = substr($od_zip, 3);
$od_addr1 = clean_xss_tags($od_addr1);
$od_addr2 = clean_xss_tags($od_addr2);
$od_addr3 = clean_xss_tags($od_addr3);
$od_addr_jibeon = preg_match("/^(N|R)\$/", $od_addr_jibeon) ? $od_addr_jibeon : '';
$od_b_name = clean_xss_tags($od_b_name);
$od_b_tel = clean_xss_tags($od_b_tel);
$od_b_hp = clean_xss_tags($od_b_hp);
$od_b_addr1 = clean_xss_tags($od_b_addr1);
$od_b_addr2 = clean_xss_tags($od_b_addr2);
Exemplo n.º 4
0
include_once './_common.php';
/*==========================
$w == a : 답변
$w == r : 추가질문
$w == u : 수정
==========================*/
if ($is_guest) {
    alert('회원이시라면 로그인 후 이용해 보십시오.', './login.php?url=' . urlencode(G5_BBS_URL . '/qalist.php'));
}
$msg = array();
// 1:1문의 설정값
$qaconfig = get_qa_config();
// e-mail 체크
if (isset($_POST['qa_email']) && $qa_email) {
    $qa_email = get_email_address(trim($_POST['qa_email']));
    if ($qaconfig['qa_req_email'] && !$qa_email) {
        $msg[] = '이메일을 입력하세요.';
    }
    if (!preg_match("/([0-9a-zA-Z_-]+)@([0-9a-zA-Z_-]+)\\.([0-9a-zA-Z_-]+)/", $qa_email)) {
        $msg[] = '이메일 주소가 형식에 맞지 않습니다.';
    }
}
$qa_subject = '';
if (isset($_POST['qa_subject'])) {
    $qa_subject = substr(trim($_POST['qa_subject']), 0, 255);
    $qa_subject = preg_replace("#[\\\\]+\$#", "", $qa_subject);
}
if ($qa_subject == '') {
    $msg[] = '<strong>제목</strong>을 입력하세요.';
}
Exemplo n.º 5
0
        // 닉네임수정일이 지나지 않았다면
        if ($member['mb_nick_date'] > date("Y-m-d", G5_SERVER_TIME - $config['cf_nick_modify'] * 86400)) {
            $mb_nick = $member['mb_nick'];
        }
        // 회원정보의 메일을 이전 메일로 옮기고 아래에서 비교함
        $old_email = $member['mb_email'];
    }
    if ($msg = exist_mb_nick($mb_nick, $mb_id)) {
        alert($msg, "", true, true);
    }
    if ($msg = exist_mb_email($mb_email, $mb_id)) {
        alert($msg, "", true, true);
    }
}
$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']) {
Exemplo n.º 6
0
if ($_POST['pt_type'] != "1" && $_POST['pt_type'] != "2" || !$is_company && $_POST['pt_type'] == "1" || !$is_personal && $_POST['pt_type'] == "2") {
    alert('잘못된 유형을 선택하셨습니다.');
}
if (!isset($_POST['agree']) || !$_POST['agree']) {
    alert('가입약관의 내용에 동의하셔야 가입하실 수 있습니다.');
}
if (!$pt_name) {
    alert('이름을 입력하세요.');
}
if (!$pt_hp) {
    alert('연락처를 입력하세요.');
}
$pt_partner = $pt_partner ? 1 : 0;
$pt_marketer = $pt_marketer ? 1 : 0;
$pt_hp = preg_replace('/[^0-9\\-]/', '', strip_tags($pt_hp));
$pt_email = get_email_address($pt_email);
if (!$pt_email) {
    alert('이메일을 입력하세요.');
}
if (!preg_match("/([0-9a-zA-Z_-]+)@([0-9a-zA-Z_-]+)\\.([0-9a-zA-Z_-]+)/", $pt_email)) {
    alert('이메일 주소가 형식에 맞지 않습니다.');
}
if (empty($_POST)) {
    alert("파일 또는 글내용의 크기가 서버에서 설정한 값을 넘어 오류가 발생하였습니다.\\npost_max_size=" . ini_get('post_max_size') . " , upload_max_filesize=" . ini_get('upload_max_filesize') . "\\n게시판관리자 또는 서버관리자에게 문의 바랍니다.");
}
//파일등록
$file_upload_msg = apms_upload_file('partner', $member['mb_id']);
if ($file_upload_msg) {
    alert($file_upload_msg, G5_URL);
} else {
    //자동등록
<?php

include_once './_common.php';
include_once G5_CAPTCHA_PATH . '/captcha.lib.php';
include_once G5_LIB_PATH . '/mailer.lib.php';
$mb_id = substr(clean_xss_tags($_POST['mb_id']), 0, 20);
$mb_email = get_email_address(trim($_POST['mb_email']));
if (!$mb_id || !$mb_email) {
    alert('올바른 방법으로 이용해 주십시오.', G5_URL);
}
$sql = " select mb_name, mb_password, mb_email, mb_datetime from {$g5['member_table']} where mb_id = '{$mb_id}' and substring(mb_email_certify, 1, 1) = '0' ";
$mb = sql_fetch($sql);
if (!$mb) {
    alert("이미 메일인증 하신 회원입니다.", G5_URL);
}
if (!chk_captcha()) {
    alert('자동등록방지 숫자가 틀렸습니다.');
}
$sql = " select count(*) as cnt from {$g5['member_table']} where mb_id <> '{$mb_id}' and mb_email = '{$mb_email}' ";
$row = sql_fetch($sql);
if ($row['cnt']) {
    alert("{$mb_email} 메일은 이미 존재하는 메일주소 입니다.\\n\\n다른 메일주소를 입력해 주십시오.");
}
// 인증메일 발송
$subject = '[' . $config['cf_title'] . '] 인증확인 메일입니다.';
$mb_name = $mb['mb_name'];
$mb_datetime = $mb['mb_datetime'] ? $mb['mb_datetime'] : G5_TIME_YMDHIS;
$mb_md5 = md5($mb_id . $mb_email . $mb_datetime);
$certify_href = G5_BBS_URL . '/email_certify.php?mb_id=' . $mb_id . '&amp;mb_md5=' . $mb_md5;
ob_start();
include_once './register_form_update_mail3.php';
Exemplo n.º 8
0
$skin_file = $qa_skin_path . '/view.skin.php';
if (is_file($skin_file)) {
    $sql = " select * from {$g5['qa_content_table']} where qa_id = '{$qa_id}' ";
    if (!$is_admin) {
        $sql .= " and mb_id = '{$member['mb_id']}' ";
    }
    $view = sql_fetch($sql);
    if (!$view['qa_id']) {
        alert('게시글이 존재하지 않습니다.\\n삭제되었거나 자신의 글이 아닌 경우입니다.', G5_BBS_URL . '/qalist.php');
    }
    $subject_len = G5_IS_MOBILE ? $qaconfig['qa_mobile_subject_len'] : $qaconfig['qa_subject_len'];
    $view['category'] = get_text($view['qa_category']);
    $view['subject'] = conv_subject($view['qa_subject'], $subject_len, '…');
    $view['content'] = conv_content($view['qa_content'], $view['qa_html']);
    $view['datetime'] = $view['qa_datetime'];
    $view['email'] = get_text(get_email_address($view['qa_email']));
    $view['hp'] = $view['qa_hp'];
    $view['name'] = apms_sideview($view['mb_id'], get_text($view['qa_name']), $view['email'], '', 'no');
    if (trim($stx)) {
        $view['subject'] = search_font($stx, $view['subject']);
    }
    if (trim($stx)) {
        $view['content'] = search_font($stx, $view['content']);
    }
    // 이전글, 다음글
    $sql = " select qa_id, qa_subject\n                from {$g5['qa_content_table']}\n                where qa_type = '0' ";
    if (!$is_admin) {
        $sql .= " and mb_id = '{$member['mb_id']}' ";
    }
    // 이전글
    $prev_search = " and qa_num < '{$view['qa_num']}' order by qa_num desc limit 1 ";
Exemplo n.º 9
0
if ($mb_id) {
    $mb = get_member($mb_id);
    if (!$mb['mb_id']) {
        alert_close('회원정보가 존재하지 않습니다.\\n\\n탈퇴한 회원일 수 있습니다.');
    }
    if (!$mb['mb_open'] && $is_admin != "super") {
        alert_close('정보공개를 하지 않았습니다.');
    }
}
$sendmail_count = (int) get_session('ss_sendmail_count') + 1;
if ($sendmail_count > 3) {
    alert_close('한번 접속후 일정수의 메일만 발송할 수 있습니다.\\n\\n계속해서 메일을 보내시려면 다시 로그인 또는 접속하여 주십시오.');
}
$g5['title'] = '메일 쓰기';
include_once G5_PATH . '/head.sub.php';
$email = get_email_address(base64_decode($email));
if (!$email) {
    alert_close('이메일이 올바르지 않습니다.');
}
$email = base64_encode($email);
if (!$name) {
    $name = base64_decode($email);
} else {
    $name = get_text(stripslashes($name), true);
}
if (!isset($type)) {
    $type = 0;
}
$type_checked[0] = $type_checked[1] = $type_checked[2] = "";
$type_checked[$type] = 'checked';
include_once $member_skin_path . '/formmail.skin.php';