From af60432e14f837f09f26d2443a29f2ca6054f25d Mon Sep 17 00:00:00 2001 From: gnuboard Date: Tue, 12 Feb 2013 14:10:22 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B3=80=EC=88=98=ED=98=95=20=EC=9D=BC?= =?UTF-8?q?=EC=8B=9C=EB=A5=BC=20=EC=83=81=EC=88=AD=ED=98=95=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=8C=80=EC=B2=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/boardgroupmember_update.php | 2 +- adm/index.php | 4 ++-- adm/mail_update.php | 4 ++-- adm/member_form_update.php | 4 ++-- adm/point_clear.php | 2 +- adm/poll_form_update.php | 2 +- adm/popular_rank.php | 4 ++-- adm/shop_admin/couponformupdate.php | 14 +++++++------- adm/shop_admin/deliverylist.php | 2 +- adm/shop_admin/itemformupdate.php | 2 +- adm/shop_admin/ordermail.inc.php | 2 +- adm/visit.sub.php | 4 ++-- bbs/email_certify.php | 2 +- bbs/good.php | 2 +- bbs/list.php | 2 +- bbs/memo_form_update.php | 2 +- bbs/memo_view.php | 2 +- bbs/move_update.php | 2 +- bbs/new.php | 4 ++-- bbs/password_lost2.php | 2 +- bbs/poll_etc_update.php | 2 +- bbs/profile.php | 2 +- bbs/register_form_update.php | 16 ++++++++-------- bbs/scrap_popin_update.php | 8 +++----- bbs/visit_insert.inc.php | 10 +++++----- bbs/write_comment_update.php | 7 +++---- bbs/write_update.php | 11 +++++------ common.php | 6 +++--- install/install_db.php | 4 ++-- lib/common.lib.php | 10 +++++----- shop/boxbanner.inc.php | 2 +- shop/cartoptionupdate.php | 2 +- shop/cartupdate.php | 2 +- shop/cat1.ajax.php | 6 +++--- shop/category.ajax.php | 6 +++--- shop/itemqaupdate.php | 2 +- shop/itemuseupdate.php | 2 +- shop/itemusewinupdate.php | 2 +- shop/mail/orderupdate1.mail.php | 2 +- shop/mail/orderupdate2.mail.php | 2 +- shop/mail/orderupdate3.mail.php | 2 +- shop/newwin.inc.php | 2 +- shop/orderformupdate.php | 20 ++++++++++---------- shop/orderinquirycancel.php | 3 +-- shop/search.php | 2 +- shop/search3.php | 2 +- shop/settle_kcp_common.php | 2 +- shop/smsresult.php | 2 +- shop/wishupdate.php | 4 ++-- tail.sub.php | 4 ++-- 50 files changed, 103 insertions(+), 108 deletions(-) diff --git a/adm/boardgroupmember_update.php b/adm/boardgroupmember_update.php index ba3fa7651..8847d3d6b 100644 --- a/adm/boardgroupmember_update.php +++ b/adm/boardgroupmember_update.php @@ -33,7 +33,7 @@ if ($w == '') $sql = " insert into {$g4['group_member_table']} set gr_id = '{$_POST['gr_id']}', mb_id = '{$_POST['mb_id']}', - gm_datetime = '{$g4['time_ymdhis']}' "; + gm_datetime = '".G4_TIME_YMDHIS."' "; sql_query($sql); } } diff --git a/adm/index.php b/adm/index.php index 38996314d..66e4d9b02 100644 --- a/adm/index.php +++ b/adm/index.php @@ -171,7 +171,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) // 당일인 경우 시간으로 표시함 $datetime = substr($row2['wr_datetime'],0,10); $datetime2 = $row2['wr_datetime']; - if ($datetime == $g4['time_ymd']) + if ($datetime == G4_TIME_YMD) $datetime2 = substr($datetime2,11,5); else $datetime2 = substr($datetime2,5,5); @@ -188,7 +188,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) // 당일인 경우 시간으로 표시함 $datetime = substr($row3['wr_datetime'],0,10); $datetime2 = $row3['wr_datetime']; - if ($datetime == $g4['time_ymd']) + if ($datetime == G4_TIME_YMD) $datetime2 = substr($datetime2,11,5); else $datetime2 = substr($datetime2,5,5); diff --git a/adm/mail_update.php b/adm/mail_update.php index 99689ca7e..f7af623e9 100644 --- a/adm/mail_update.php +++ b/adm/mail_update.php @@ -15,7 +15,7 @@ if ($w == '') set ma_id = '{$_POST['ma_id']}', ma_subject = '{$_POST['ma_subject']}', ma_content = '{$_POST['ma_content']}', - ma_time = '{$g4['time_ymdhis']}', + ma_time = '".G4_TIME_YMDHIS."', ma_ip = '{$_SERVER['REMOTE_ADDR']}' "; sql_query($sql); } @@ -24,7 +24,7 @@ else if ($w == 'u') $sql = " update {$g4['mail_table']} set ma_subject = '{$_POST['ma_subject']}', ma_content = '{$_POST['ma_content']}', - ma_time = '{$g4['time_ymdhis']}', + ma_time = '".G4_TIME_YMDHIS."', ma_ip = '{$_SERVER['REMOTE_ADDR']}' where ma_id = '{$_POST['ma_id']}' "; sql_query($sql); diff --git a/adm/member_form_update.php b/adm/member_form_update.php index cb041d042..3e4c3caf7 100644 --- a/adm/member_form_update.php +++ b/adm/member_form_update.php @@ -59,7 +59,7 @@ if ($w == '') if ($mb['mb_email'] == $mb_email) alert('이미 존재하는 E-mail 입니다.'.PHP_EOL.'ID : '.$mb['mb_id'].PHP_EOL.'이름 : '.$mb['mb_name'].PHP_EOL.'별명 : '.$mb['mb_nick'].PHP_EOL.'메일 : '.$mb['mb_email']); - sql_query(" insert into {$g4['member_table']} set mb_id = '{$mb_id}', mb_password = '".sql_password($mb_password)."', mb_datetime = '{$g4['time_ymdhis']}', mb_ip = '{$_SERVER['REMOTE_ADDR']}', mb_email_certify = '{$g4['time_ymdhis']}', {$sql_common} "); + sql_query(" insert into {$g4['member_table']} set mb_id = '{$mb_id}', mb_password = '".sql_password($mb_password)."', mb_datetime = '".G4_TIME_YMDHIS."', mb_ip = '{$_SERVER['REMOTE_ADDR']}', mb_email_certify = '".G4_TIME_YMDHIS."', {$sql_common} "); } else if ($w == 'u') { @@ -110,7 +110,7 @@ else if ($w == 'u') $sql_password = ""; if ($passive_certify) - $sql_certify = " , mb_email_certify = '{$g4['time_ymdhis']}' "; + $sql_certify = " , mb_email_certify = '".G4_TIME_YMDHIS."' "; else $sql_certify = ""; diff --git a/adm/point_clear.php b/adm/point_clear.php index c21e2c9f2..84523d6ed 100644 --- a/adm/point_clear.php +++ b/adm/point_clear.php @@ -49,7 +49,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) sql_query(" delete from {$g4['point_table']} where po_id = '{$row2['po_id']}' "); } - insert_point($row['mb_id'], $total, '포인트 {$count}건 정리', '@clear', $row['mb_id'], $g4['time_ymd']."-".uniqid("")); + insert_point($row['mb_id'], $total, '포인트 {$count}건 정리', '@clear', $row['mb_id'], G4_TIME_YMD."-".uniqid("")); $str = $row['mb_id']."님 포인트 내역 ".number_format($count)."건 ".number_format($total)."점 정리
"; echo ''.PHP_EOL; diff --git a/adm/poll_form_update.php b/adm/poll_form_update.php index 386977ed8..22f1b54e9 100644 --- a/adm/poll_form_update.php +++ b/adm/poll_form_update.php @@ -14,7 +14,7 @@ if ($w == '') { $sql = " insert {$g4['poll_table']} ( po_subject, po_poll1, po_poll2, po_poll3, po_poll4, po_poll5, po_poll6, po_poll7, po_poll8, po_poll9, po_cnt1, po_cnt2, po_cnt3, po_cnt4, po_cnt5, po_cnt6, po_cnt7, po_cnt8, po_cnt9, po_etc, po_level, po_point, po_date ) - values ( '{$_POST['po_subject']}', '{$_POST['po_poll1']}', '{$_POST['po_poll2']}', '{$_POST['po_poll3']}', '{$_POST['po_poll4']}', '{$_POST['po_poll5']}', '{$_POST['po_poll6']}', '{$_POST['po_poll7']}', '{$_POST['po_poll8']}', '{$_POST['po_poll9']}', '{$_POST['po_cnt1']}', '{$_POST['po_cnt2']}', '{$_POST['po_cnt3']}', '{$_POST['po_cnt4']}', '{$_POST['po_cnt5']}', '{$_POST['po_cnt6']}', '{$_POST['po_cnt7']}', '{$_POST['po_cnt8']}', '{$_POST['po_cnt9']}', '{$_POST['po_etc']}', '{$_POST['po_level']}', '{$_POST['po_point']}', '{$g4['time_ymdhis']}' ) "; + values ( '{$_POST['po_subject']}', '{$_POST['po_poll1']}', '{$_POST['po_poll2']}', '{$_POST['po_poll3']}', '{$_POST['po_poll4']}', '{$_POST['po_poll5']}', '{$_POST['po_poll6']}', '{$_POST['po_poll7']}', '{$_POST['po_poll8']}', '{$_POST['po_poll9']}', '{$_POST['po_cnt1']}', '{$_POST['po_cnt2']}', '{$_POST['po_cnt3']}', '{$_POST['po_cnt4']}', '{$_POST['po_cnt5']}', '{$_POST['po_cnt6']}', '{$_POST['po_cnt7']}', '{$_POST['po_cnt8']}', '{$_POST['po_cnt9']}', '{$_POST['po_etc']}', '{$_POST['po_level']}', '{$_POST['po_point']}', '".G4_TIME_YMDHIS."' ) "; sql_query($sql); $po_id = mysql_insert_id(); diff --git a/adm/popular_rank.php b/adm/popular_rank.php index 6313666d2..97319ae15 100644 --- a/adm/popular_rank.php +++ b/adm/popular_rank.php @@ -4,8 +4,8 @@ include_once('./_common.php'); auth_check($auth[$sub_menu], 'r'); -if (empty($fr_date)) $fr_date = $g4['time_ymd']; -if (empty($to_date)) $to_date = $g4['time_ymd']; +if (empty($fr_date)) $fr_date = G4_TIME_YMD; +if (empty($to_date)) $to_date = G4_TIME_YMD; $qstr = "fr_date={$fr_date}{&to_date}={$to_date}"; diff --git a/adm/shop_admin/couponformupdate.php b/adm/shop_admin/couponformupdate.php index 568a66c7e..b2d00c56d 100644 --- a/adm/shop_admin/couponformupdate.php +++ b/adm/shop_admin/couponformupdate.php @@ -105,8 +105,8 @@ if($w != 'd') { alert('사용시작일은 종료일 이후 일 수 없습니다.'); } - if($cp_end < $g4['time_ymd']) { - alert('사용종료일은 오늘('.$g4['time_ymd'].') 이전일 수 없습니다.'); + if($cp_end < G4_TIME_YMD) { + alert('사용종료일은 오늘('.G4_TIME_YMD.') 이전일 수 없습니다.'); } if($cp_type == 0) { // 상품할인 일때 @@ -176,7 +176,7 @@ if($w == '') { cp_minimum = '$cp_minimum', cp_maximum = '$cp_maximum', cp_use = '$cp_use', - cp_datetime = '{$g4['time_ymdhis']}' "; + cp_datetime = '".G4_TIME_YMDHIS."' "; $result = sql_query($sql, false); if($result) { @@ -224,7 +224,7 @@ if($w == '') { cp_minimum = '$cp_minimum', cp_maximum = '$cp_maximum', cp_use = '$cp_use', - cp_datetime = '{$g4['time_ymdhis']}' "; + cp_datetime = '".G4_TIME_YMDHIS."' "; $result = sql_query($sql, false); if($result) { @@ -284,7 +284,7 @@ if($w == '') { cp_minimum = '$cp_minimum', cp_maximum = '$cp_maximum', cp_use = '$cp_use', - cp_datetime = '{$g4['time_ymdhis']}' "; + cp_datetime = '".G4_TIME_YMDHIS."' "; $result = sql_query($sql, false); if($result) { @@ -345,7 +345,7 @@ if($w == '') { cp_minimum = '$cp_minimum', cp_maximum = '$cp_maximum', cp_use = '$cp_use', - cp_datetime = '{$g4['time_ymdhis']}' "; + cp_datetime = '".G4_TIME_YMDHIS."' "; $result = sql_query($sql, false); if($result) { @@ -431,7 +431,7 @@ if($w == '') { cp_minimum = '$cp_minimum', cp_maximum = '$cp_maximum', cp_use = '$cp_use', - cp_datetime = '{$g4['time_ymdhis']}' + cp_datetime = '".G4_TIME_YMDHIS."' where cp_no = '$cp_no' "; sql_query($sql); } else if($w == 'd') { diff --git a/adm/shop_admin/deliverylist.php b/adm/shop_admin/deliverylist.php index 208023ea2..e2c913584 100644 --- a/adm/shop_admin/deliverylist.php +++ b/adm/shop_admin/deliverylist.php @@ -138,7 +138,7 @@ $sql .= " order by $sort1 $sort2/* 김선용 심각한 트래픽으로 미사 $result = sql_query($sql); for ($i=0; $row=mysql_fetch_array($result); $i++) { - $invoice_time = $g4[time_ymdhis]; + $invoice_time = G4_TIME_YMDHIS; if (!is_null_time($row[od_invoice_time])) $invoice_time = $row[od_invoice_time]; diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php index 50d6b6b4f..711c2b8f3 100644 --- a/adm/shop_admin/itemformupdate.php +++ b/adm/shop_admin/itemformupdate.php @@ -336,7 +336,7 @@ $sql_common = " ca_id = '$ca_id', it_sc_condition = '$condition', it_head_html = '$it_head_html', it_tail_html = '$it_tail_html', - it_time = '{$g4['time_ymdhis']}', + it_time = '".G4_TIME_YMDHIS."', it_ip = '{$_SERVER['REMOTE_ADDR']}', it_order = '$it_order', it_tel_inq = '$it_tel_inq', diff --git a/adm/shop_admin/ordermail.inc.php b/adm/shop_admin/ordermail.inc.php index 3def368f1..370227c72 100644 --- a/adm/shop_admin/ordermail.inc.php +++ b/adm/shop_admin/ordermail.inc.php @@ -124,7 +124,7 @@ if ($od_send_mail) $email = $od[od_email]; // 메일 보낸 내역 상점메모에 update - $od_shop_memo = "$g4[time_ymdhis] - 결제/배송내역 메일발송\n" . $od[od_shop_memo];; + $od_shop_memo = G4_TIME_YMDHIS.' - 결제/배송내역 메일발송'.PHP_EOL.$od[od_shop_memo]; /* 1.00.06 ** 주석처리 - 처리하지 않음 if ($receipt_check) diff --git a/adm/visit.sub.php b/adm/visit.sub.php index bce9ae966..5f5c699de 100644 --- a/adm/visit.sub.php +++ b/adm/visit.sub.php @@ -3,8 +3,8 @@ if (!defined('_GNUBOARD_')) exit; include_once(G4_LIB_PATH.'/visit.lib.php'); -if (empty($fr_date)) $fr_date = $g4['time_ymd']; -if (empty($to_date)) $to_date = $g4['time_ymd']; +if (empty($fr_date)) $fr_date = G4_TIME_YMD; +if (empty($to_date)) $to_date = G4_TIME_YMD; $qstr = 'fr_date='.$fr_date.'&to_date='.$to_date; ?> diff --git a/bbs/email_certify.php b/bbs/email_certify.php index bcf1b08e6..f689866a1 100644 --- a/bbs/email_certify.php +++ b/bbs/email_certify.php @@ -11,7 +11,7 @@ if ($mb_md5) $tmp_md5 = md5($row[mb_id].$row[mb_email].$row[mb_datetime]); if ($mb_md5 == $tmp_md5) { - sql_query(" update {$g4[member_table]} set mb_email_certify = '{$g4[time_ymdhis]}' where mb_id = '{$mb_id}' "); + sql_query(" update {$g4[member_table]} set mb_email_certify = '".G4_TIME_YMDHIS."' where mb_id = '{$mb_id}' "); alert('E-mail 인증 처리를 완료 하였습니다.', G4_PATH); } diff --git a/bbs/good.php b/bbs/good.php index 13e0b6ddf..ba3ab55f1 100644 --- a/bbs/good.php +++ b/bbs/good.php @@ -55,7 +55,7 @@ if ($good == 'good' || $good == 'nogood') // 추천(찬성), 비추천(반대) 카운트 증가 sql_query(" update {$g4[write_prefix]}{$bo_table} set wr_{$good} = wr_{$good} + 1 where wr_id = '{$wr_id}' "); // 내역 생성 - sql_query(" insert {$g4[board_good_table]} set bo_table = '{$bo_table}', wr_id = '{$wr_id}', mb_id = '{$member[mb_id]}', bg_flag = '{$good}', bg_datetime = '{$g4[time_ymdhis]}' "); + sql_query(" insert {$g4[board_good_table]} set bo_table = '{$bo_table}', wr_id = '{$wr_id}', mb_id = '{$member[mb_id]}', bg_flag = '{$good}', bg_datetime = '".G4_TIME_YMDHIS."' "); if ($good == 'good') $status = '추천'; diff --git a/bbs/list.php b/bbs/list.php index f60c94f1b..d2f4b02bf 100644 --- a/bbs/list.php +++ b/bbs/list.php @@ -97,7 +97,7 @@ if ($sca || $stx) { $result = sql_query($sql); // 년도 2자리 -$today2 = $g4['time_ymd']; +$today2 = G4_TIME_YMD; $list = array(); $i = 0; diff --git a/bbs/memo_form_update.php b/bbs/memo_form_update.php index 6ac52890c..92e8cdbfe 100644 --- a/bbs/memo_form_update.php +++ b/bbs/memo_form_update.php @@ -60,7 +60,7 @@ for ($i=0; $i'; $content .= '
  • 별명 : '.addslashes($mb['mb_nick']).'
  • '; $content .= '
  • 이메일주소 : '.addslashes($mb['mb_email']).'
  • '; -$content .= '
  • 요청일시 : '.$g4['time_ymdhis'].'
  • '; +$content .= '
  • 요청일시 : '.G4_TIME_YMDHIS.'
  • '; $content .= '
  • 홈페이지 : '.G4_URL.'
  • '; $content .= ''; $content .= '
    '; diff --git a/bbs/poll_etc_update.php b/bbs/poll_etc_update.php index 999bf2693..b6f508aed 100644 --- a/bbs/poll_etc_update.php +++ b/bbs/poll_etc_update.php @@ -13,7 +13,7 @@ if ($w == "") $sql = " insert into {$g4[poll_etc_table]} ( pc_id, po_id, mb_id, pc_name, pc_idea, pc_datetime ) - values ( '{$pc_id}', '{$po_id}', '{$member[mb_id]}', '{$pc_name}', '{$pc_idea}', '{$g4[time_ymdhis]}' ) "; + values ( '{$pc_id}', '{$po_id}', '{$member[mb_id]}', '{$pc_name}', '{$pc_idea}', '".G4_TIME_YMDHIS."' ) "; sql_query($sql); $pc_idea = stripslashes($pc_idea); diff --git a/bbs/profile.php b/bbs/profile.php index 32dfddaea..ee9edff98 100644 --- a/bbs/profile.php +++ b/bbs/profile.php @@ -20,7 +20,7 @@ include_once(G4_PATH.'/head.sub.php'); $mb_nick = get_sideview($mb['mb_id'], $mb['mb_nick'], $mb['mb_email'], $mb['mb_homepage'], $mb['mb_open']); // 회원가입후 몇일째인지? + 1 은 당일을 포함한다는 뜻 -$sql = " select (TO_DAYS('{$g4['time_ymdhis']}') - TO_DAYS('{$mb['mb_datetime']}') + 1) as days "; +$sql = " select (TO_DAYS('".G4_TIME_YMDHIS."') - TO_DAYS('{$mb['mb_datetime']}') + 1) as days "; $row = sql_fetch($sql); $mb_reg_after = $row['days']; diff --git a/bbs/register_form_update.php b/bbs/register_form_update.php index 86c416deb..bb1f0b9a9 100644 --- a/bbs/register_form_update.php +++ b/bbs/register_form_update.php @@ -145,7 +145,7 @@ if ($w == '') { mb_sex = '{$mb_sex}', mb_birth = '{$mb_birth}', mb_nick = '{$mb_nick}', - mb_nick_date = '{$g4['time_ymd']}', + mb_nick_date = '".G4_TIME_YMD."', mb_email = '{$mb_email}', mb_homepage = '{$mb_homepage}', mb_tel = '{$mb_tel}', @@ -156,8 +156,8 @@ if ($w == '') { mb_addr2 = '{$mb_addr2}', mb_signature = '{$mb_signature}', mb_profile = '{$mb_profile}', - mb_today_login = '{$g4['time_ymdhis']}', - mb_datetime = '{$g4['time_ymdhis']}', + mb_today_login = '".G4_TIME_YMDHIS."', + mb_datetime = '".G4_TIME_YMDHIS."', mb_ip = '{$_SERVER['REMOTE_ADDR']}', mb_level = '{$config['cf_register_level']}', mb_recommend = '{$mb_recommend}', @@ -165,7 +165,7 @@ if ($w == '') { mb_mailling = '{$mb_mailling}', mb_sms = '{$mb_sms}', mb_open = '{$mb_open}', - mb_open_date = '{$g4['time_ymd']}', + mb_open_date = '".G4_TIME_YMD."', mb_1 = '{$mb_1}', mb_2 = '{$mb_2}', mb_3 = '{$mb_3}', @@ -178,7 +178,7 @@ if ($w == '') { mb_10 = '{$mb_10}' "; // 이메일 인증을 사용하지 않는다면 이메일 인증시간을 바로 넣는다 if (!$config['cf_use_email_certify']) - $sql .= " , mb_email_certify = '{$g4[time_ymdhis]}' "; + $sql .= " , mb_email_certify = '".G4_TIME_YMDHIS."' "; sql_query($sql); // 회원가입 포인트 부여 @@ -192,7 +192,7 @@ if ($w == '') { if ($config['cf_email_mb_member']) { $subject = '회원가입을 축하드립니다.'; - $mb_md5 = md5($mb_id.$mb_email.$g4['time_ymdhis']); + $mb_md5 = md5($mb_id.$mb_email.G4_TIME_YMDHIS); $certify_href = G4_BBS_URL.'/email_certify.php?mb_id='.$mb_id.'&mb_md5='.$mb_md5; ob_start(); @@ -239,11 +239,11 @@ if ($w == '') { $sql_nick_date = ""; if ($mb_nick_default != $mb_nick) - $sql_nick_date = " , mb_nick_date = '{$g4[time_ymd]}' "; + $sql_nick_date = " , mb_nick_date = '".G4_TIME_YMD."' "; $sql_open_date = ""; if ($mb_open_default != $mb_open) - $sql_open_date = " , mb_open_date = '{$g4[time_ymd]}' "; + $sql_open_date = " , mb_open_date = '".G4_TIME_YMD."' "; $sql_sex = ""; if (isset($mb_sex)) diff --git a/bbs/scrap_popin_update.php b/bbs/scrap_popin_update.php index 1cc47dc05..10f9ba6a0 100644 --- a/bbs/scrap_popin_update.php +++ b/bbs/scrap_popin_update.php @@ -64,7 +64,7 @@ if ($wr_content && ($member['mb_level'] >= $board['bo_comment_level'])) wr_name = '$wr_name', wr_email = '$wr_email', wr_homepage = '$wr_homepage', - wr_datetime = '{$g4['time_ymdhis']}', + wr_datetime = '".G4_TIME_YMDHIS."', wr_ip = '{$_SERVER['REMOTE_ADDR']}' "; sql_query($sql); @@ -74,8 +74,7 @@ if ($wr_content && ($member['mb_level'] >= $board['bo_comment_level'])) sql_query(" update $write_table set wr_comment = wr_comment + 1 where wr_id = '$wr_id' "); // 새글 INSERT - //sql_query(" insert into $g4[board_new_table] ( bo_table, wr_id, wr_parent, bn_datetime ) values ( '$bo_table', '$comment_id', '$wr_id', '$g4[time_ymdhis]' ) "); - sql_query(" insert into {$g4['board_new_table']} ( bo_table, wr_id, wr_parent, bn_datetime, mb_id ) values ( '$bo_table', '$comment_id', '$wr_id', '{$g4['time_ymdhis']}', '{$member['mb_id']}' ) "); + sql_query(" insert into {$g4['board_new_table']} ( bo_table, wr_id, wr_parent, bn_datetime, mb_id ) values ( '$bo_table', '$comment_id', '$wr_id', '".G4_TIME_YMDHIS."', '{$member['mb_id']}' ) "); // 코멘트 1 증가 sql_query(" update {$g4['board_table']} set bo_count_comment = bo_count_comment + 1 where bo_table = '$bo_table' "); @@ -85,8 +84,7 @@ if ($wr_content && ($member['mb_level'] >= $board['bo_comment_level'])) } } -$sql = " insert into {$g4['scrap_table']} ( mb_id, bo_table, wr_id, ms_datetime ) - values ( '{$member['mb_id']}', '$bo_table', '$wr_id', '{$g4['time_ymdhis']}' ) "; +$sql = " insert into {$g4['scrap_table']} ( mb_id, bo_table, wr_id, ms_datetime ) values ( '{$member['mb_id']}', '$bo_table', '$wr_id', '".G4_TIME_YMDHIS."' ) "; sql_query($sql); echo <<= 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); // 신고가 되면 일정 시간이 지난후 부터 글쓰기가 가능함 diff --git a/shop/category.ajax.php b/shop/category.ajax.php index 92cfe2e55..311f2fccd 100644 --- a/shop/category.ajax.php +++ b/shop/category.ajax.php @@ -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); // 신고가 되면 일정 시간이 지난후 부터 글쓰기가 가능함 diff --git a/shop/itemqaupdate.php b/shop/itemqaupdate.php index f46a16acd..b4e74465a 100644 --- a/shop/itemqaupdate.php +++ b/shop/itemqaupdate.php @@ -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); diff --git a/shop/itemuseupdate.php b/shop/itemuseupdate.php index 06bb1cbbc..09364a1b9 100644 --- a/shop/itemuseupdate.php +++ b/shop/itemuseupdate.php @@ -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' "; diff --git a/shop/itemusewinupdate.php b/shop/itemusewinupdate.php index 0dd555db0..1d6a192fc 100644 --- a/shop/itemusewinupdate.php +++ b/shop/itemusewinupdate.php @@ -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' "; diff --git a/shop/mail/orderupdate1.mail.php b/shop/mail/orderupdate1.mail.php index d7099bc41..eeab3e18f 100644 --- a/shop/mail/orderupdate1.mail.php +++ b/shop/mail/orderupdate1.mail.php @@ -12,7 +12,7 @@
    - 본 메일은 ()을 기준으로 작성되었습니다. + 본 메일은 ()을 기준으로 작성되었습니다.
    diff --git a/shop/mail/orderupdate2.mail.php b/shop/mail/orderupdate2.mail.php index c6e65414b..4cc118c68 100644 --- a/shop/mail/orderupdate2.mail.php +++ b/shop/mail/orderupdate2.mail.php @@ -12,7 +12,7 @@
    - 본 메일은 ()을 기준으로 작성되었습니다. + 본 메일은 ()을 기준으로 작성되었습니다.
    diff --git a/shop/mail/orderupdate3.mail.php b/shop/mail/orderupdate3.mail.php index 0ecb0b838..9f0da3adf 100644 --- a/shop/mail/orderupdate3.mail.php +++ b/shop/mail/orderupdate3.mail.php @@ -13,7 +13,7 @@
    - 본 메일은 ()을 기준으로 작성되었습니다. + 본 메일은 ()을 기준으로 작성되었습니다.
    diff --git a/shop/newwin.inc.php b/shop/newwin.inc.php index 85c710e55..4762e0de9 100644 --- a/shop/newwin.inc.php +++ b/shop/newwin.inc.php @@ -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++) diff --git a/shop/orderformupdate.php b/shop/orderformupdate.php index f1862ee7d..29b97cd32 100644 --- a/shop/orderformupdate.php +++ b/shop/orderformupdate.php @@ -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); } } diff --git a/shop/orderinquirycancel.php b/shop/orderinquirycancel.php index b237d9379..ac491df81 100644 --- a/shop/orderinquirycancel.php +++ b/shop/orderinquirycancel.php @@ -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) { diff --git a/shop/search.php b/shop/search.php index d6f65b37b..6780c5d88 100644 --- a/shop/search.php +++ b/shop/search.php @@ -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); } diff --git a/shop/search3.php b/shop/search3.php index 969652c11..8641276cc 100644 --- a/shop/search3.php +++ b/shop/search3.php @@ -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); diff --git a/shop/settle_kcp_common.php b/shop/settle_kcp_common.php index fe8b99de6..ceb2ef1e0 100644 --- a/shop/settle_kcp_common.php +++ b/shop/settle_kcp_common.php @@ -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; } } diff --git a/shop/smsresult.php b/shop/smsresult.php index 9434157b5..1696243e9 100644 --- a/shop/smsresult.php +++ b/shop/smsresult.php @@ -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); diff --git a/shop/wishupdate.php b/shop/wishupdate.php index eb58a0ec2..5472a7dce 100644 --- a/shop/wishupdate.php +++ b/shop/wishupdate.php @@ -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); } diff --git a/tail.sub.php b/tail.sub.php index 0a7adde76..5b60480a3 100644 --- a/tail.sub.php +++ b/tail.sub.php @@ -28,10 +28,10 @@ $tmp_row = sql_fetch($tmp_sql); //sql_query(" lock table $g4['login_table'] write ", false); if ($tmp_row['cnt']) { - $tmp_sql = " update {$g4['login_table']} set mb_id = '{$member['mb_id']}', lo_datetime = '{$g4['time_ymdhis']}', lo_location = '$lo_location', lo_url = '$lo_url' where lo_ip = '{$_SERVER['REMOTE_ADDR']}' "; + $tmp_sql = " update {$g4['login_table']} set mb_id = '{$member['mb_id']}', lo_datetime = '".G4_TIME_YMDHIS."', lo_location = '$lo_location', lo_url = '$lo_url' where lo_ip = '{$_SERVER['REMOTE_ADDR']}' "; sql_query($tmp_sql, FALSE); } else { - $tmp_sql = " insert into {$g4['login_table']} ( lo_ip, mb_id, lo_datetime, lo_location, lo_url ) values ( '{$_SERVER['REMOTE_ADDR']}', '{$member['mb_id']}', '{$g4['time_ymdhis']}', '$lo_location', '$lo_url' ) "; + $tmp_sql = " insert into {$g4['login_table']} ( lo_ip, mb_id, lo_datetime, lo_location, lo_url ) values ( '{$_SERVER['REMOTE_ADDR']}', '{$member['mb_id']}', '".G4_TIME_YMDHIS."', '$lo_location', '$lo_url' ) "; sql_query($tmp_sql, FALSE); // 시간이 지난 접속은 삭제한다