변수형 일시를 상숭형으로 대체
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<?
|
||||
// 배너 출력
|
||||
$sql = " select * from $g4[shop_banner_table]
|
||||
where '$g4[time_ymdhis]' between bn_begin_time and bn_end_time
|
||||
where '".G4_TIME_YMDHIS."' between bn_begin_time and bn_end_time
|
||||
and bn_position = '$position'
|
||||
order by bn_order, bn_id desc ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
@ -86,7 +86,7 @@ for($i=0; $i<$count; $i++) {
|
||||
ct_stock_use = '0',
|
||||
ct_point_use = '0',
|
||||
ct_send_cost_pay = '$ct_send_cost_pay',
|
||||
ct_time = '{$g4['time_ymdhis']}',
|
||||
ct_time = '".G4_TIME_YMDHIS."',
|
||||
ct_ip = '$REMOTE_ADDR',
|
||||
ct_direct = '$sw_direct' ";
|
||||
|
||||
|
||||
@ -287,7 +287,7 @@ else // 장바구니에 담기
|
||||
ct_send_cost_pay = '$ct_send_cost_pay',
|
||||
ct_stock_use = '0',
|
||||
ct_point_use = '0',
|
||||
ct_time = '{$g4['time_ymdhis']}',
|
||||
ct_time = '".G4_TIME_YMDHIS."',
|
||||
ct_ip = '$REMOTE_ADDR',
|
||||
ct_direct = '$sw_direct' ";
|
||||
}
|
||||
|
||||
@ -57,7 +57,7 @@ if ($target['mb_jisu_rank'] <= $member['mb_jisu_rank']) {
|
||||
|
||||
/*
|
||||
// 회원가입후 몇일째인지? + 1 은 당일을 포함한다는 뜻
|
||||
$sql = " select (TO_DAYS('$g4[time_ymdhis]') - TO_DAYS('$target[mb_datetime]') + 1) as days ";
|
||||
$sql = " select (TO_DAYS('".G4_TIME_YMDHIS."') - TO_DAYS('$target[mb_datetime]') + 1) as days ";
|
||||
$row = sql_fetch($sql);
|
||||
$mb_reg_after = $row[days];
|
||||
if ($mb_reg_after >= 365) {
|
||||
@ -66,11 +66,11 @@ if ($mb_reg_after >= 365) {
|
||||
*/
|
||||
|
||||
// '싫어요'도 하나 더 드세요.
|
||||
$sql = " insert into $g4[board_good_table] ( bo_table, wr_id, mb_id, bg_flag, bg_datetime, bg_ip, tar_mb_id ) values ( '$bo_table', '$wr_id', '$member[mb_id]', 'nogood', '$g4[time_ymdhis]', '$_SERVER[REMOTE_ADDR]', '$write[mb_id]' ) ";
|
||||
$sql = " insert into $g4[board_good_table] ( bo_table, wr_id, mb_id, bg_flag, bg_datetime, bg_ip, tar_mb_id ) values ( '$bo_table', '$wr_id', '$member[mb_id]', 'nogood', '".G4_TIME_YMDHIS."', '$_SERVER[REMOTE_ADDR]', '$write[mb_id]' ) ";
|
||||
sql_query($sql);
|
||||
|
||||
// 신고 테이블에 레코드를 추가한다.
|
||||
$sql = " insert into `$g4[singo_table]` set bo_table = '$bo_table', wr_id = '$wr_id', wr_parent = '{$write['wr_parent']}', mb_id = '{$target['mb_id']}', sg_mb_id = '{$member['mb_id']}', sg_reason = '$reason', sg_datetime = '{$g4['time_ymdhis']}', sg_ip = '$_SERVER[REMOTE_ADDR]' ";
|
||||
$sql = " insert into `$g4[singo_table]` set bo_table = '$bo_table', wr_id = '$wr_id', wr_parent = '{$write['wr_parent']}', mb_id = '{$target['mb_id']}', sg_mb_id = '{$member['mb_id']}', sg_reason = '$reason', sg_datetime = '".G4_TIME_YMDHIS."', sg_ip = '$_SERVER[REMOTE_ADDR]' ";
|
||||
sql_query($sql);
|
||||
|
||||
// 신고가 되면 일정 시간이 지난후 부터 글쓰기가 가능함
|
||||
|
||||
@ -57,7 +57,7 @@ if ($target['mb_jisu_rank'] <= $member['mb_jisu_rank']) {
|
||||
|
||||
/*
|
||||
// 회원가입후 몇일째인지? + 1 은 당일을 포함한다는 뜻
|
||||
$sql = " select (TO_DAYS('$g4[time_ymdhis]') - TO_DAYS('$target[mb_datetime]') + 1) as days ";
|
||||
$sql = " select (TO_DAYS('".G4_TIME_YMDHIS."') - TO_DAYS('$target[mb_datetime]') + 1) as days ";
|
||||
$row = sql_fetch($sql);
|
||||
$mb_reg_after = $row[days];
|
||||
if ($mb_reg_after >= 365) {
|
||||
@ -66,11 +66,11 @@ if ($mb_reg_after >= 365) {
|
||||
*/
|
||||
|
||||
// '싫어요'도 하나 더 드세요.
|
||||
$sql = " insert into $g4[board_good_table] ( bo_table, wr_id, mb_id, bg_flag, bg_datetime, bg_ip, tar_mb_id ) values ( '$bo_table', '$wr_id', '$member[mb_id]', 'nogood', '$g4[time_ymdhis]', '$_SERVER[REMOTE_ADDR]', '$write[mb_id]' ) ";
|
||||
$sql = " insert into $g4[board_good_table] ( bo_table, wr_id, mb_id, bg_flag, bg_datetime, bg_ip, tar_mb_id ) values ( '$bo_table', '$wr_id', '$member[mb_id]', 'nogood', '".G4_TIME_YMDHIS."', '$_SERVER[REMOTE_ADDR]', '$write[mb_id]' ) ";
|
||||
sql_query($sql);
|
||||
|
||||
// 신고 테이블에 레코드를 추가한다.
|
||||
$sql = " insert into `$g4[singo_table]` set bo_table = '$bo_table', wr_id = '$wr_id', wr_parent = '{$write['wr_parent']}', mb_id = '{$target['mb_id']}', sg_mb_id = '{$member['mb_id']}', sg_reason = '$reason', sg_datetime = '{$g4['time_ymdhis']}', sg_ip = '$_SERVER[REMOTE_ADDR]' ";
|
||||
$sql = " insert into `$g4[singo_table]` set bo_table = '$bo_table', wr_id = '$wr_id', wr_parent = '{$write['wr_parent']}', mb_id = '{$target['mb_id']}', sg_mb_id = '{$member['mb_id']}', sg_reason = '$reason', sg_datetime = '".G4_TIME_YMDHIS."', sg_ip = '$_SERVER[REMOTE_ADDR]' ";
|
||||
sql_query($sql);
|
||||
|
||||
// 신고가 되면 일정 시간이 지난후 부터 글쓰기가 가능함
|
||||
|
||||
@ -65,7 +65,7 @@ if ($w == '')
|
||||
iq_password = '$iq_password',
|
||||
iq_subject = '$iq_subject',
|
||||
iq_question = '$iq_question',
|
||||
iq_time = '$g4[time_ymdhis]',
|
||||
iq_time = '".G4_TIME_YMDHIS."',
|
||||
iq_ip = '$REMOTE_ADDR' ";
|
||||
sql_query($sql);
|
||||
|
||||
|
||||
@ -65,7 +65,7 @@ if ($w == '')
|
||||
is_password = '$is_password',
|
||||
is_subject = '$is_subject',
|
||||
is_content = '$is_content',
|
||||
is_time = '$g4[time_ymdhis]',
|
||||
is_time = '".G4_TIME_YMDHIS."',
|
||||
is_ip = '$_SERVER[REMOTE_ADDR]' ";
|
||||
if (!$default[de_item_ps_use])
|
||||
$sql .= ", is_confirm = '1' ";
|
||||
|
||||
@ -44,7 +44,7 @@ if ($w == '')
|
||||
is_password = '$is_password',
|
||||
is_subject = '$is_subject',
|
||||
is_content = '$is_content',
|
||||
is_time = '$g4[time_ymdhis]',
|
||||
is_time = '".G4_TIME_YMDHIS."',
|
||||
is_ip = '$_SERVER[REMOTE_ADDR]' ";
|
||||
if (!$default[de_item_ps_use])
|
||||
$sql .= ", is_confirm = '1' ";
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="59" background="<?=$g4['shop_url']?>/mail/img/mail_bg2.gif" style='padding-left:20px'>
|
||||
<strong><font color="#02253A">본 메일은 <?=$g4[time_ymdhis]?> (<?=get_yoil($g4[time_ymdhis])?>)을 기준으로 작성되었습니다.</font></strong>
|
||||
<strong><font color="#02253A">본 메일은 <?=G4_TIME_YMDHIS?> (<?=get_yoil(G4_TIME_YMDHIS)?>)을 기준으로 작성되었습니다.</font></strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="59" background="<?=$g4['shop_url']?>/mail/img/mail_bg2.gif" style='padding-left:20px'>
|
||||
<strong><font color="#02253A">본 메일은 <?=$g4[time_ymdhis]?> (<?=get_yoil($g4[time_ymdhis])?>)을 기준으로 작성되었습니다.</font></strong>
|
||||
<strong><font color="#02253A">본 메일은 <?=G4_TIME_YMDHIS?> (<?=get_yoil(G4_TIME_YMDHIS)?>)을 기준으로 작성되었습니다.</font></strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="59" background="<?=$g4['shop_url']?>/mail/img/mail_bg2.gif" style='padding-left:20px'>
|
||||
<strong><font color="#02253A">본 메일은 <?=$g4[time_ymdhis]?> (<?=get_yoil($g4[time_ymdhis])?>)을 기준으로 작성되었습니다.</font></strong>
|
||||
<strong><font color="#02253A">본 메일은 <?=G4_TIME_YMDHIS?> (<?=get_yoil(G4_TIME_YMDHIS)?>)을 기준으로 작성되었습니다.</font></strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$sql = " select * from $g4[shop_new_win_table]
|
||||
where '$g4[time_ymdhis]' between nw_begin_time and nw_end_time
|
||||
where '".G4_TIME_YMDHIS."' between nw_begin_time and nw_end_time
|
||||
order by nw_id asc ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row_nw=sql_fetch_array($result); $i++)
|
||||
|
||||
@ -219,8 +219,8 @@ if($is_member) {
|
||||
from {$g4['shop_coupon_table']}
|
||||
where cp_id = '$cp_id'
|
||||
and cp_use = '1'
|
||||
and cp_start <= '{$g4['time_ymd']}'
|
||||
and cp_end >= '{$g4['time_ymd']}'
|
||||
and cp_start <= '".G4_TIME_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."'
|
||||
and cp_type = '0' ";
|
||||
$cp = sql_fetch($sql);
|
||||
if(!$cp['cp_id']) { // 쿠폰정보없음
|
||||
@ -339,8 +339,8 @@ if($is_member) {
|
||||
where cp_id = '$s_cp_id'
|
||||
and cp_type = '2'
|
||||
and cp_use = '1'
|
||||
and cp_start <= '{$g4['time_ymd']}'
|
||||
and cp_end >= '{$g4['time_ymd']}' ";
|
||||
and cp_start <= '".G4_TIME_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."' ";
|
||||
$row4 = sql_fetch($sql4);
|
||||
|
||||
if($row4['mb_id'] == '전체회원' || $row4['mb_id'] == $member['mb_id']) {
|
||||
@ -380,8 +380,8 @@ if($is_member) {
|
||||
where cp_id = '$o_cp_id'
|
||||
and cp_use = '1'
|
||||
and cp_type = '1'
|
||||
and cp_start <= '{$g4['time_ymd']}'
|
||||
and cp_end >= '{$g4['time_ymd']}' ";
|
||||
and cp_start <= '".G4_TIME_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."' ";
|
||||
$row4 = sql_fetch($sql4);
|
||||
|
||||
if($row4['mb_id'] == '전체회원' || $row4['mb_id'] == $member['mb_id']) {
|
||||
@ -584,7 +584,7 @@ $sql = " insert {$g4['shop_order_table']}
|
||||
escw_yn = '$escw_yn',
|
||||
od_coupon_amount = '$od_coupon_amount',
|
||||
od_hope_date = '$od_hope_date',
|
||||
od_time = '{$g4['time_ymdhis']}',
|
||||
od_time = '".G4_TIME_YMDHIS."',
|
||||
od_ip = '$REMOTE_ADDR',
|
||||
od_settle_case = '$od_settle_case',
|
||||
od_cash_yn = '$cash_yn',
|
||||
@ -664,7 +664,7 @@ if($is_member) {
|
||||
ct_id = '{$arr_item_coupon[$i]['ct_id']}',
|
||||
uq_id = '$od_id',
|
||||
ch_amount = '{$arr_item_coupon[$i]['ch_amount']}',
|
||||
ch_datetime = '{$g4['time_ymdhis']}' ";
|
||||
ch_datetime = '".G4_TIME_YMDHIS."' ";
|
||||
sql_query($sql);
|
||||
|
||||
// cart 테이블에 쿠폰금액기록
|
||||
@ -684,7 +684,7 @@ if($is_member) {
|
||||
ct_id = '',
|
||||
uq_id = '$od_id',
|
||||
ch_amount = '{$arr_send_coupon['ch_amount']}',
|
||||
ch_datetime = '{$g4['time_ymdhis']}' ";
|
||||
ch_datetime = '".G4_TIME_YMDHIS."' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
@ -698,7 +698,7 @@ if($is_member) {
|
||||
ct_id = '',
|
||||
uq_id = '$od_id',
|
||||
ch_amount = '{$arr_order_coupon['ch_amount']}',
|
||||
ch_datetime = '{$g4['time_ymdhis']}' ";
|
||||
ch_datetime = '".G4_TIME_YMDHIS."' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
}
|
||||
|
||||
@ -27,8 +27,7 @@ sql_query(" update $g4[shop_cart_table] set ct_status = '취소' where on_uid =
|
||||
|
||||
// 주문 취소
|
||||
$cancel_memo = addslashes($cancel_memo);
|
||||
//sql_query(" update $g4[shop_order_table] set od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - {$g4['time_ymdhis']} (취소이유 : {$cancel_memo})\") where on_uid = '$on_uid' ");
|
||||
sql_query(" update $g4[shop_order_table] set od_send_cost = '0', od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - {$g4['time_ymdhis']} (취소이유 : {$cancel_memo})\") where on_uid = '$on_uid' ");
|
||||
sql_query(" update $g4[shop_order_table] set od_send_cost = '0', od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - ".G4_TIME_YMDHIS." (취소이유 : {$cancel_memo})\") where on_uid = '$on_uid' ");
|
||||
|
||||
// 주문취소 회원의 포인트를 되돌려 줌
|
||||
if ($od[od_receipt_point] > 0) {
|
||||
|
||||
@ -62,7 +62,7 @@ include_once("./_head.php");
|
||||
// 인기검색어
|
||||
$sql = " insert into $g4[popular_table]
|
||||
set pp_word = '$search_str',
|
||||
pp_date = '$g4[time_ymd]',
|
||||
pp_date = '".G4_TIME_YMD."',
|
||||
pp_ip = '$_SERVER[REMOTE_ADDR]' ";
|
||||
sql_query($sql, FALSE);
|
||||
}
|
||||
|
||||
@ -48,7 +48,7 @@ include_once("./_head.php");
|
||||
// 인기검색어
|
||||
$sql = " insert into $g4[popular_table]
|
||||
set pp_word = '$search_str',
|
||||
pp_date = '$g4[time_ymd]',
|
||||
pp_date = '".G4_TIME_YMD"',
|
||||
pp_ip = '$_SERVER[REMOTE_ADDR]' ";
|
||||
sql_query($sql, FALSE);
|
||||
|
||||
|
||||
@ -31,7 +31,7 @@ if(!$default['de_card_test']) {
|
||||
. "POST[" . serialize($_POST) . "]"
|
||||
. "COOKIE[" . serialize($_COOKIE) . "]"
|
||||
. "SESSION[" . serialize($_SESSION) . "]";
|
||||
mailer('경고', 'waring', $super_admin['mb_email'], '올바르지 않은 접속 보고', $_SERVER['PHP_SELF'].' 에 '.$_SERVER['REMOTE_ADDR'].' 이 '.$g4['time_ymdhis'].' 에 접속을 시도하였습니다.'."\n\n" . $egpcs_str, 2);
|
||||
mailer('경고', 'waring', $super_admin['mb_email'], '올바르지 않은 접속 보고', $_SERVER['PHP_SELF'].' 에 '.$_SERVER['REMOTE_ADDR'].' 이 '.G4_TIME_YMDHIS.' 에 접속을 시도하였습니다.'."\n\n" . $egpcs_str, 2);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@ include_once("./_common.php");
|
||||
|
||||
// 로그를 남김
|
||||
$fp = fopen("$g4[path]/data/log/sms.log", "a+");
|
||||
$msg = "$g4[time_ymdhis]|$_SERVER[REMOTE_ADDR]|return_value=$return_value|success_value=$success_value|fail_value=$fail_value|";
|
||||
$msg = G4_TIME_YMDHIS."|$_SERVER[REMOTE_ADDR]|return_value=$return_value|success_value=$success_value|fail_value=$fail_value|";
|
||||
$msg .= "error_code=$error_code|error_msg=$error_msg|unique_num=$unique_num|";
|
||||
$msg .= "process_type=$process_type|usrdata1=$usrdata1|usrdata2=$usrdata2|usrdata3=$usrdata3\n";
|
||||
fwrite($fp, $msg);
|
||||
|
||||
@ -22,7 +22,7 @@ else
|
||||
{
|
||||
$sql_common = " set mb_id = '$member[mb_id]',
|
||||
it_id = '$it_id',
|
||||
wi_time = '$g4[time_ymdhis]',
|
||||
wi_time = '".G4_TIME_YMDHIS."',
|
||||
wi_ip = '$REMOTE_ADDR' ";
|
||||
|
||||
$sql = " select wi_id from $g4[shop_wish_table]
|
||||
@ -36,7 +36,7 @@ else
|
||||
$sql = " insert $g4[shop_wish_table]
|
||||
set mb_id = '$member[mb_id]',
|
||||
it_id = '$it_id',
|
||||
wi_time = '$g4[time_ymdhis]',
|
||||
wi_time = '".G4_TIME_YMDHIS."',
|
||||
wi_ip = '$REMOTE_ADDR' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user