$legacy_key) { $$legacy_key = (int) in_array($easy_key, $easy_selected, true); } $de_inicis_pro_use = !empty($de_inicis_pro_use) ? 1 : 0; $de_inicis_hash_key = preg_replace('/[^A-Za-z0-9+\/=_-]/', '', $de_inicis_hash_key); $de_inicis_pro_alert_use = !empty($de_inicis_pro_alert_use) ? 1 : 0; $de_inicis_pro_reconcile_use = !empty($de_inicis_pro_reconcile_use) ? 1 : 0; $de_inicis_pro_log_days = (int) $de_inicis_pro_log_days; if ($de_inicis_pro_log_days !== 0 && ($de_inicis_pro_log_days < 30 || $de_inicis_pro_log_days > 3650)) alert('INIpay PRO 상세 이력 보존기간은 0 또는 30~3650일로 설정해 주십시오.'); $de_inicis_pro_summary_days = (int) $de_inicis_pro_summary_days; if ($de_inicis_pro_summary_days !== 0 && ($de_inicis_pro_summary_days < 365 || $de_inicis_pro_summary_days > 3650)) alert('INIpay PRO 결제 요약 보존기간은 0 또는 365~3650일로 설정해 주십시오.'); if ($de_pg_service === 'inicis' && $de_inicis_pro_use) { if (empty($de_card_test) && $de_inicis_hash_key === '') alert('INIpay PRO를 사용하려면 HashKey를 입력해 주십시오.'); if (!function_exists('curl_init')) alert('INIpay PRO를 사용하려면 PHP cURL 모듈이 필요합니다.'); if (!function_exists('hash') || !in_array('sha512', hash_algos())) alert('INIpay PRO를 사용하려면 SHA-512 해시 지원이 필요합니다.'); if ($de_inicis_pro_reconcile_use && empty($de_card_test) && trim($de_inicis_iniapi_key) === '') alert('INIpay PRO 자동 거래대사를 사용하려면 INIAPI KEY를 입력해 주십시오.'); } $warning_msg = ''; // kcp 전자결제를 사용할 때 site key 입력체크 if($de_pg_service == 'kcp' && ! $de_card_test && ($de_iche_use || $de_vbank_use || $de_hp_use || $de_card_use)) { if(! trim($de_kcp_site_key)) alert('NHN KCP SITE KEY를 입력해 주십시오.'); } // // 영카트 default // $sql = " update {$g5['g5_shop_default_table']} set de_admin_company_owner = '{$de_admin_company_owner}', de_admin_company_name = '{$de_admin_company_name}', de_admin_company_saupja_no = '{$de_admin_company_saupja_no}', de_admin_company_tel = '{$de_admin_company_tel}', de_admin_company_fax = '{$de_admin_company_fax}', de_admin_tongsin_no = '{$de_admin_tongsin_no}', de_admin_company_zip = '{$de_admin_company_zip}', de_admin_company_addr = '{$de_admin_company_addr}', de_admin_info_name = '{$de_admin_info_name}', de_admin_info_email = '{$de_admin_info_email}', de_shop_skin = '{$de_shop_skin}', de_shop_mobile_skin = '{$de_shop_mobile_skin}', de_type1_list_use = '{$_POST['de_type1_list_use']}', de_type1_list_skin = '{$_POST['de_type1_list_skin']}', de_type1_list_mod = '{$de_type1_list_mod}', de_type1_list_row = '{$de_type1_list_row}', de_type1_img_width = '{$de_type1_img_width}', de_type1_img_height = '{$de_type1_img_height}', de_type2_list_use = '{$de_type2_list_use}', de_type2_list_skin = '{$de_type2_list_skin}', de_type2_list_mod = '{$de_type2_list_mod}', de_type2_list_row = '{$de_type2_list_row}', de_type2_img_width = '{$de_type2_img_width}', de_type2_img_height = '{$de_type2_img_height}', de_type3_list_use = '{$de_type3_list_use}', de_type3_list_skin = '{$de_type3_list_skin}', de_type3_list_mod = '{$de_type3_list_mod}', de_type3_list_row = '{$de_type3_list_row}', de_type3_img_width = '{$de_type3_img_width}', de_type3_img_height = '{$de_type3_img_height}', de_type4_list_use = '{$de_type4_list_use}', de_type4_list_skin = '{$de_type4_list_skin}', de_type4_list_mod = '{$de_type4_list_mod}', de_type4_list_row = '{$de_type4_list_row}', de_type4_img_width = '{$de_type4_img_width}', de_type4_img_height = '{$de_type4_img_height}', de_type5_list_use = '{$de_type5_list_use}', de_type5_list_skin = '{$de_type5_list_skin}', de_type5_list_mod = '{$de_type5_list_mod}', de_type5_list_row = '{$de_type5_list_row}', de_type5_img_width = '{$de_type5_img_width}', de_type5_img_height = '{$de_type5_img_height}', de_mobile_type1_list_use = '{$de_mobile_type1_list_use}', de_mobile_type1_list_skin = '{$de_mobile_type1_list_skin}', de_mobile_type1_list_mod = '{$de_mobile_type1_list_mod}', de_mobile_type1_list_row = '{$de_mobile_type1_list_row}', de_mobile_type1_img_width = '{$de_mobile_type1_img_width}', de_mobile_type1_img_height = '{$de_mobile_type1_img_height}', de_mobile_type2_list_use = '{$de_mobile_type2_list_use}', de_mobile_type2_list_skin = '{$de_mobile_type2_list_skin}', de_mobile_type2_list_mod = '{$de_mobile_type2_list_mod}', de_mobile_type2_list_row = '{$de_mobile_type2_list_row}', de_mobile_type2_img_width = '{$de_mobile_type2_img_width}', de_mobile_type2_img_height = '{$de_mobile_type2_img_height}', de_mobile_type3_list_use = '{$de_mobile_type3_list_use}', de_mobile_type3_list_skin = '{$de_mobile_type3_list_skin}', de_mobile_type3_list_mod = '{$de_mobile_type3_list_mod}', de_mobile_type3_list_row = '{$de_mobile_type3_list_row}', de_mobile_type3_img_width = '{$de_mobile_type3_img_width}', de_mobile_type3_img_height = '{$de_mobile_type3_img_height}', de_mobile_type4_list_use = '{$de_mobile_type4_list_use}', de_mobile_type4_list_skin = '{$de_mobile_type4_list_skin}', de_mobile_type4_list_mod = '{$de_mobile_type4_list_mod}', de_mobile_type4_list_row = '{$de_mobile_type4_list_row}', de_mobile_type4_img_width = '{$de_mobile_type4_img_width}', de_mobile_type4_img_height = '{$de_mobile_type4_img_height}', de_mobile_type5_list_use = '{$de_mobile_type5_list_use}', de_mobile_type5_list_skin = '{$de_mobile_type5_list_skin}', de_mobile_type5_list_mod = '{$de_mobile_type5_list_mod}', de_mobile_type5_list_row = '{$de_mobile_type5_list_row}', de_mobile_type5_img_width = '{$de_mobile_type5_img_width}', de_mobile_type5_img_height = '{$de_mobile_type5_img_height}', de_rel_list_use = '{$de_rel_list_use}', de_rel_list_skin = '{$_POST['de_rel_list_skin']}', de_rel_list_mod = '{$de_rel_list_mod}', de_rel_img_width = '{$de_rel_img_width}', de_rel_img_height = '{$de_rel_img_height}', de_mobile_rel_list_use = '{$de_mobile_rel_list_use}', de_mobile_rel_list_skin = '{$_POST['de_mobile_rel_list_skin']}', de_mobile_rel_list_mod = '{$de_mobile_rel_list_mod}', de_mobile_rel_img_width = '{$de_mobile_rel_img_width}', de_mobile_rel_img_height = '{$de_mobile_rel_img_height}', de_search_list_skin = '{$_POST['de_search_list_skin']}', de_search_list_mod = '{$de_search_list_mod}', de_search_list_row = '{$de_search_list_row}', de_search_img_width = '{$de_search_img_width}', de_search_img_height = '{$de_search_img_height}', de_mobile_search_list_skin = '{$_POST['de_mobile_search_list_skin']}', de_mobile_search_list_mod = '{$de_mobile_search_list_mod}', de_mobile_search_list_row = '{$de_mobile_search_list_row}', de_mobile_search_img_width = '{$de_mobile_search_img_width}', de_mobile_search_img_height = '{$de_mobile_search_img_height}', de_listtype_list_skin = '{$_POST['de_listtype_list_skin']}', de_listtype_list_mod = '{$de_listtype_list_mod}', de_listtype_list_row = '{$de_listtype_list_row}', de_listtype_img_width = '{$de_listtype_img_width}', de_listtype_img_height = '{$_POST['de_listtype_img_height']}', de_mobile_listtype_list_skin = '{$_POST['de_mobile_listtype_list_skin']}', de_mobile_listtype_list_mod = '{$de_mobile_listtype_list_mod}', de_mobile_listtype_list_row = '{$de_mobile_listtype_list_row}', de_mobile_listtype_img_width = '{$de_mobile_listtype_img_width}', de_mobile_listtype_img_height = '{$de_mobile_listtype_img_height}', de_bank_use = '{$de_bank_use}', de_bank_account = '{$de_bank_account}', de_card_test = '{$de_card_test}', de_card_use = '{$de_card_use}', de_easy_pay_use = '{$de_easy_pay_use}', de_easy_pay_services = '{$de_easy_pay_services}', de_samsung_pay_use = '{$de_samsung_pay_use}', de_inicis_lpay_use = '{$de_inicis_lpay_use}', de_inicis_kakaopay_use = '{$de_inicis_kakaopay_use}', de_inicis_cartpoint_use = '{$de_inicis_cartpoint_use}', de_nicepay_mid = '{$de_nicepay_mid}', de_nicepay_key = '{$de_nicepay_key}', de_card_noint_use = '{$de_card_noint_use}', de_card_point = '{$de_card_point}', de_settle_min_point = '{$de_settle_min_point}', de_settle_max_point = '{$de_settle_max_point}', de_settle_point_unit = '{$de_settle_point_unit}', de_level_sell = '{$de_level_sell}', de_delivery_company = '{$de_delivery_company}', de_send_cost_case = '{$de_send_cost_case}', de_send_cost_limit = '{$de_send_cost_limit}', de_send_cost_list = '{$de_send_cost_list}', de_hope_date_use = '{$de_hope_date_use}', de_hope_date_after = '{$de_hope_date_after}', de_baesong_content = '{$_POST['de_baesong_content']}', de_change_content = '{$_POST['de_change_content']}', de_point_days = '{$de_point_days}', de_simg_width = '{$de_simg_width}', de_simg_height = '{$de_simg_height}', de_mimg_width = '{$de_mimg_width}', de_mimg_height = '{$de_mimg_height}', de_pg_service = '{$de_pg_service}', de_kcp_mid = '{$de_kcp_mid}', de_kcp_site_key = '{$de_kcp_site_key}', de_inicis_mid = '{$de_inicis_mid}', de_inicis_iniapi_key = '{$de_inicis_iniapi_key}', de_inicis_iniapi_iv = '{$de_inicis_iniapi_iv}', de_inicis_sign_key = '{$de_inicis_sign_key}', de_inicis_pro_use = '{$de_inicis_pro_use}', de_inicis_hash_key = '{$de_inicis_hash_key}', de_inicis_pro_alert_use = '{$de_inicis_pro_alert_use}', de_inicis_pro_reconcile_use = '{$de_inicis_pro_reconcile_use}', de_inicis_pro_log_days = '{$de_inicis_pro_log_days}', de_inicis_pro_summary_days = '{$de_inicis_pro_summary_days}', de_iche_use = '{$de_iche_use}', de_sms_cont1 = '{$_POST['de_sms_cont1']}', de_sms_cont2 = '{$_POST['de_sms_cont2']}', de_sms_cont3 = '{$_POST['de_sms_cont3']}', de_sms_cont4 = '{$_POST['de_sms_cont4']}', de_sms_cont5 = '{$_POST['de_sms_cont5']}', de_sms_use1 = '{$de_sms_use1}', de_sms_use2 = '{$de_sms_use2}', de_sms_use3 = '{$de_sms_use3}', de_sms_use4 = '{$de_sms_use4}', de_sms_use5 = '{$de_sms_use5}', de_sms_hp = '{$de_sms_hp}', de_item_use_use = '{$de_item_use_use}', de_item_use_write = '{$de_item_use_write}', de_code_dup_use = '{$de_code_dup_use}', de_cart_keep_term = '{$de_cart_keep_term}', de_guest_cart_use = '{$de_guest_cart_use}', de_admin_buga_no = '{$de_admin_buga_no}', de_vbank_use = '{$de_vbank_use}', de_taxsave_use = '{$de_taxsave_use}', de_taxsave_types = '{$de_taxsave_types}', de_guest_privacy = '{$_POST['de_guest_privacy']}', de_hp_use = '{$de_hp_use}', de_escrow_use = '{$de_escrow_use}', de_tax_flag_use = '{$de_tax_flag_use}', de_member_reg_coupon_use = '{$de_member_reg_coupon_use}', de_member_reg_coupon_term = '{$de_member_reg_coupon_term}', de_member_reg_coupon_price = '{$de_member_reg_coupon_price}', de_member_reg_coupon_minimum = '{$de_member_reg_coupon_minimum}' "; if (defined('G5_SHOP_DIRECT_NAVERPAY') && G5_SHOP_DIRECT_NAVERPAY) { $sql .= " ,de_naverpay_mid = '{$de_naverpay_mid}', de_naverpay_cert_key = '{$de_naverpay_cert_key}', de_naverpay_button_key = '{$de_naverpay_button_key}', de_naverpay_test = '{$de_naverpay_test}', de_naverpay_mb_id = '{$de_naverpay_mb_id}', de_naverpay_sendcost = '{$de_naverpay_sendcost}' "; } sql_query($sql); // 환경설정 > 포인트 사용 sql_query(" update {$g5['config_table']} set cf_use_point = '{$cf_use_point}' "); // LG, 아이코드 설정 $sql = " update {$g5['config_table']} set cf_sms_use = '{$cf_sms_use}', cf_sms_type = '{$cf_sms_type}', cf_icode_id = '{$cf_icode_id}', cf_icode_pw = '{$cf_icode_pw}', cf_icode_server_ip = '{$_POST['cf_icode_server_ip']}', cf_icode_server_port = '{$_POST['cf_icode_server_port']}', cf_icode_token_key = '{$cf_icode_token_key}', cf_lg_mid = '{$cf_lg_mid}', cf_lg_mert_key = '{$cf_lg_mert_key}', cf_toss_client_key = '{$cf_toss_client_key}', cf_toss_secret_key = '{$cf_toss_secret_key}' "; sql_query($sql); run_event('shop_admin_configformupdate'); if( $warning_msg ){ alert($warning_msg, "./configform.php"); } else { goto_url("./configform.php"); }