","-","=",";","\"","\'","'"); //sql인젝션 공격단어
$gift_state_array = array("주문접수","결제완료"); //기프트카드
// 게시판 초기 입력 값 관련 항목들
$g_board_header_text = "";
$g_board_tailer_text = "
";
$g_filter_text = "개새끼,씨발,호로새끼,씹새,씨발놈,븅신,정품,시알리스,비아그라,환각제,씨알,오죠,미국,조루,성기능,발기부전,필리핀,최음제,발기부전,치료제,레비트라,바다이야기,흥분제,후불제,복용법,신천지,조루,성기능,시알리스,엑스트라,황금성,성인오락,온라인삼국지,슬롯,파라다이스,비아그라,무료머니";
$g_board_comment_text = "글은 마음의창이라고 합니다. 마음을 나누워 주세요. 세상이 행복해 지도록!";
if($ps_mango == "ok") echo $ps_mango." ===== ".$cct;
//--------------------------------------------------------------------------------
// 가가몰에 맞는 포멧 .. 영어가 아닌경우 소수점 삭제 표시
//--------------------------------------------------------------------------------
function morning_int_format($num) {
global $cf_language_method;
if($cf_language_method == "english") {
$new_num = $num;
} else {
$new_num = intval($num);
}
return $new_num;
}
//--------------------------------------------------------------------------------
// 갯수가 구매가능 한지 알아 보기 위해 구입가능 하면 1
//--------------------------------------------------------------------------------
function goods_stock_check($ps_goid, $goods_num) {
global $connect,$morning_goods_table;
$list = @hd_fetch(hd_query("select * from $morning_goods_table where uid = '$ps_goid'"));
if($list[goods_stock] >= $goods_num) { return 1; } else { return 0; }
}
//--------------------------------------------------------------------------------
// 가격 자리수 찾아서 보여주기
//--------------------------------------------------------------------------------
function make_price_format($str,$check_format="1"){
global $cf_language_method;
if(!$str) $str = 0;
if($cf_language_method == "english") {
if($check_format == "1") {
$str = @number_format($str,2);
} else {
$str = sprintf("%.2f",$str);
}
} else {
if($check_format == "1") {
$str = round($str);
$str = @number_format($str);
} else {
$str = intval($str);
}
}
return $str;
}
//--------------------------------------------------------------------------------
// 관리자모드 카테고리 셀렉트
//--------------------------------------------------------------------------------
function category_admin_list($ps_ctid,$type="",$url="admin_goods.php") {
global $morning_category_table;
$cate_arr = get_cate_arr();
$cateId_arr = get_cateid();
$list = get_display($cate_arr,$cateId_arr);
foreach($list as $key => $value){
$display_level = "";
if($value[1] == 0) {
$display_level = "";
} else {
for ($j=0; $j<$value[1]; $j++) {
$display_level .= "____";
}
}
if($value[3] == $ps_ctid) $select_check = "selected"; else $select_check = "";
if($type == "move"){
$display_category .= "\n";
}else{
$display_category .= "\n";
}
}
return $display_category;
}
//--------------------------------------------------------------------------------
// 카테고리 수정
//--------------------------------------------------------------------------------
function category_admin_list2($ps_ctid) {
global $morning_category_table;
// 카테고리 불러다가 .. 선택 박스 만들기
$query = "select * from $morning_category_table where category_id > 1 order by category_id";
$result = hd_query($query);
while($list = hd_fetch($result)) {
$display_level = "";
if($list[category_depth] == 0) {
$display_level = "";
} else {
for ($j=0; $j<$list[category_depth]; $j++) {
$display_level .= "____";
}
}
if($list[category_id] == $ps_ctid) $select_check = "selected"; else $select_check = "";
$display_category .= "\n";
}
return $display_category;
}
//--------------------------------------------------------------------------------
// 쿠폰번호자동생성
//--------------------------------------------------------------------------------
function coupon_code_make(){
global $connect,$g_now_time,$morning_coupon_table,$coupon_make,$coupon_auto;
//유효한 이전 쿠폰번호 가져오기
$serch_sql = " where uend_date > $g_now_time and coupon_code_use = '1'";
$query = "select * from $morning_coupon_table $serch_sql";
$result = hd_query($query);
while($list = hd_fetch($result)){
$old_coupon .= trim($list[coupon_code]);
}
$chk_row2 = explode("/",$old_coupon); //이미등록된 쿠폰꺼..
//쿠폰번호 자동생성
if($coupon_make > 0 && $coupon_auto){
for($i=0;$coupon_make > $i;$i++){
$alpa = chr(rand(65,90));
$alpa .= chr(rand(65,90));
$alpa .= chr(rand(65,90));
$alpa .= chr(rand(65,90));
$num_rand1 =rand(0,9);
$num_rand1 .=rand(0,9);
$num_rand1 .=rand(0,9);
$num_rand1 .=rand(0,9);
$num_rand2 =rand(0,9);
$num_rand2 .=rand(0,9);
$num_rand2 .=rand(0,9);
$num_rand2 .=rand(0,9);
$num_rand3 =rand(0,9);
$num_rand3 .=rand(0,9);
$num_rand3 .=rand(0,9);
$num_rand3 .=rand(0,9);
$coupon_code_chk = $alpa."-".$num_rand1."-".$num_rand2."-".$num_rand3;
$chk_row = explode("/",$coupon_code);
if(in_array($coupon_code_chk,$chk_row)){$coupon_code_chk.=rand(0,9);}//같은쿠폰이 있을때 번호늘이기
if(in_array($coupon_code_chk,$chk_row2)){$coupon_code_chk.=rand(0,9);}//이미등록된것도 비교하기
$coupon_code .= $coupon_code_chk."/";
}
}
return $coupon_code;
}
//--------------------------------------------------------------------------------
// 게시판 무한첨부 2010-11-05
//--------------------------------------------------------------------------------
function bbs_addfile($g_board_data_dir){
global $cf_board,$g_file_okext,$bbsaddfile_del,$bbsaddfile_text,$_FILES;
for($i=0;$i 0 && $bbsaddfile_text[$i])) {
file_unlink("$bbsaddfile_text[$i]");
$_bbsaddfile_text = "";
}
if($_bbsaddfile){
if($bbsaddfile_text[$i]) {
file_unlink("$bbsaddfile_text[$i]");
}
$_bbsaddfile_text = upload_file($_bbsaddfile, $_bbsaddfile_name, $_bbsaddfile_size, $g_board_data_dir, $g_file_okext, $cf_board[file_size]);
}else{
if($bbsaddfile_del[$i]) {
file_unlink("$bbsaddfile_text[$i]");
$_bbsaddfile_text = "";
}else{
$_bbsaddfile_text = $bbsaddfile_text[$i];
}
}
$board_addfile .= $_bbsaddfile_text."†";
}
return $board_addfile;
}
function bbs_addfile_del($str){
$arr = explode("†",$str);
for($i=0;$i","?>",$str);
$str = str_replace("
/* = -------------------------------------------------------------------------- = */
/* = Javascript source Include END = */
/* ============================================================================== */
?>
if(!$cf_card_day){$cf_card_day="12";}
if($pament=="1"){$pay_method = "100000000000";}
else if($pament=="3"){$pay_method = "010000000000";}
else if($pament=="4"){$pay_method = "000010000000";}
else if($pament=="5"){$pay_method = "001000000000";}
else{$pay_method = "100000000000";}
?>
/* ============================================================================== */
/* = 1-1. 결제 수단 정보 설정 = */
/* = -------------------------------------------------------------------------- = */
/* = 결제에 필요한 결제 수단 정보를 설정합니다. = */
/* = = */
/* = 신용카드 : 100000000000, 계좌이체 : 010000000000, 가상계좌 : 001000000000 = */
/* = 포인트 : 000100000000, 휴대폰 : 000010000000, 상품권 : 000000001000 = */
/* = ARS : 000000000010 = */
/* = = */
/* = 위와 같이 설정한 경우 PayPlus Plugin에서 설정한 결제수단이 표시됩니다. = */
/* = Payplug Plugin에서 여러 결제수단을 표시하고 싶으신 경우 설정하시려는 결제 = */
/* = 수단에 해당하는 위치에 해당하는 값을 1로 변경하여 주십시오. = */
/* = = */
/* = 예) 신용카드, 계좌이체, 가상계좌를 동시에 표시하고자 하는 경우 = */
/* = pay_method = "111000000000" = */
/* = 신용카드(100000000000), 계좌이체(010000000000), 가상계좌(001000000000)에 = */
/* = 해당하는 값을 모두 더해주면 됩니다. = */
/* = = */
/* = ※ 필수 = */
/* = KCP에 신청된 결제수단으로만 결제가 가능합니다. = */
/* = -------------------------------------------------------------------------- = */
?>
| 지불 방법 |
|
| 주문 번호 |
|
| 상품명 |
|