변수형 일시를 상숭형으로 대체

This commit is contained in:
gnuboard
2013-02-12 14:10:22 +09:00
parent c0de3ea2b4
commit af60432e14
50 changed files with 103 additions and 108 deletions

View File

@ -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);
}
}

View File

@ -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);

View File

@ -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);

View File

@ -59,7 +59,7 @@ if ($w == '')
if ($mb['mb_email'] == $mb_email)
alert('이미 존재하는 E-mail 입니다.'.PHP_EOL.' : '.$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 = "";

View File

@ -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)."점 정리<br>";
echo '<script>document.getElementById(\'ct\').innerHTML += \''.$str.'\';</script>'.PHP_EOL;

View File

@ -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();

View File

@ -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}";

View File

@ -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') {

View File

@ -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];

View File

@ -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',

View File

@ -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)

View File

@ -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.'&amp;to_date='.$to_date;
?>

View File

@ -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);
}

View File

@ -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 = '추천';

View File

@ -97,7 +97,7 @@ if ($sca || $stx) {
$result = sql_query($sql);
// 년도 2자리
$today2 = $g4['time_ymd'];
$today2 = G4_TIME_YMD;
$list = array();
$i = 0;

View File

@ -60,7 +60,7 @@ for ($i=0; $i<count($member_list['id']); $i++) {
$recv_mb_nick = get_text($member_list['nick'][$i]);
// 쪽지 INSERT
$sql = " insert into {$g4['memo_table']} ( me_id, me_recv_mb_id, me_send_mb_id, me_send_datetime, me_memo ) values ( '$me_id', '$recv_mb_id', '{$member['mb_id']}', '{$g4['time_ymdhis']}', '{$_POST['me_memo']}' ) ";
$sql = " insert into {$g4['memo_table']} ( me_id, me_recv_mb_id, me_send_mb_id, me_send_datetime, me_memo ) values ( '$me_id', '$recv_mb_id', '{$member['mb_id']}', '".G4_TIME_YMDHIS."', '{$_POST['me_memo']}' ) ";
sql_query($sql);
// 실시간 쪽지 알림 기능

View File

@ -10,7 +10,7 @@ if ($kind == 'recv')
$unkind = 'send';
$sql = " update {$g4['memo_table']}
set me_read_datetime = '{$g4['time_ymdhis']}'
set me_read_datetime = '".G4_TIME_YMDHIS."'
where me_id = '$me_id'
and me_recv_mb_id = '{$member['mb_id']}'
and me_read_datetime = '0000-00-00 00:00:00' ";

View File

@ -46,7 +46,7 @@ while ($row = sql_fetch_array($result))
{
$nick = cut_str($member['mb_nick'], $config['cf_cut_name']);
if (!$row2['wr_is_comment'] && $config['cf_use_copy_log'])
$row2['wr_content'] .= "\n".'[이 게시물은 '.$nick.'님에 의해 '.$g4['time_ymdhis'].' '.$board['bo_subject'].'에서 '.($sw == 'copy' ? '복사' : '이동').' 됨]';
$row2['wr_content'] .= "\n".'[이 게시물은 '.$nick.'님에 의해 '.G4_TIME_YMDHIS.' '.$board['bo_subject'].'에서 '.($sw == 'copy' ? '복사' : '이동').' 됨]';
$sql = " insert into $move_write_table
set wr_num = '$next_wr_num',

View File

@ -59,7 +59,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);
@ -82,7 +82,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);

View File

@ -59,7 +59,7 @@ $content .= '<li>변경 패스워드 : <span style="color:#ff3300; font:13px Ver
$content .= '<li>이름 : '.addslashes($mb['mb_name']).'</li>';
$content .= '<li>별명 : '.addslashes($mb['mb_nick']).'</li>';
$content .= '<li>이메일주소 : '.addslashes($mb['mb_email']).'</li>';
$content .= '<li>요청일시 : '.$g4['time_ymdhis'].'</li>';
$content .= '<li>요청일시 : '.G4_TIME_YMDHIS.'</li>';
$content .= '<li>홈페이지 : '.G4_URL.'</li>';
$content .= '</ul>';
$content .= '<hr>';

View File

@ -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);

View File

@ -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'];

View File

@ -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.'&amp;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))

View File

@ -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 <<<HEREDOC

View File

@ -14,17 +14,17 @@ if (get_cookie('ck_visit_ip') != $_SERVER['REMOTE_ADDR']) {
if (isset($_SERVER['HTTP_REFERER']))
$referer = mysql_real_escape_string($_SERVER['HTTP_REFERER']);
$user_agent = mysql_real_escape_string($_SERVER['HTTP_USER_AGENT']);
$sql = " insert {$g4['visit_table']} ( vi_id, vi_ip, vi_date, vi_time, vi_referer, vi_agent ) values ( '{$vi_id}', '{$remote_addr}', '{$g4['time_ymd']}', '{$g4['time_his']}', '{$referer}', '{$user_agent}' ) ";
$sql = " insert {$g4['visit_table']} ( vi_id, vi_ip, vi_date, vi_time, vi_referer, vi_agent ) values ( '{$vi_id}', '{$remote_addr}', '".G4_TIME_YMD."', '{$g4['time_his']}', '{$referer}', '{$user_agent}' ) ";
$result = sql_query($sql, FALSE);
// 정상으로 INSERT 되었다면 방문자 합계에 반영
if ($result) {
$sql = " insert {$g4['visit_sum_table']} ( vs_count, vs_date) values ( 1, '{$g4['time_ymd']}' ) ";
$sql = " insert {$g4['visit_sum_table']} ( vs_count, vs_date) values ( 1, '".G4_TIME_YMD."' ) ";
$result = sql_query($sql, FALSE);
// DUPLICATE 오류가 발생한다면 이미 날짜별 행이 생성되었으므로 UPDATE 실행
if (!$result) {
$sql = " update {$g4['visit_sum_table']} set vs_count = vs_count + 1 where vs_date = '{$g4['time_ymd']}' ";
$sql = " update {$g4['visit_sum_table']} set vs_count = vs_count + 1 where vs_date = '".G4_TIME_YMD."' ";
$result = sql_query($sql);
}
@ -32,12 +32,12 @@ if (get_cookie('ck_visit_ip') != $_SERVER['REMOTE_ADDR']) {
// 방문객 접속시마다 따로 쿼리를 하지 않기 위함 (엄청난 쿼리를 줄임 ^^)
// 오늘
$sql = " select vs_count as cnt from {$g4['visit_sum_table']} where vs_date = '{$g4['time_ymd']}' ";
$sql = " select vs_count as cnt from {$g4['visit_sum_table']} where vs_date = '".G4_TIME_YMD."' ";
$row = sql_fetch($sql);
$vi_today = $row['cnt'];
// 어제
$sql = " select vs_count as cnt from {$g4['visit_sum_table']} where vs_date = DATE_SUB('{$g4['time_ymd']}', INTERVAL 1 DAY) ";
$sql = " select vs_count as cnt from {$g4['visit_sum_table']} where vs_date = DATE_SUB('".G4_TIME_YMD."', INTERVAL 1 DAY) ";
$row = sql_fetch($sql);
$vi_yesterday = $row['cnt'];

View File

@ -147,7 +147,7 @@ if ($w == 'c') // 코멘트 입력
wr_name = '$wr_name',
wr_email = '$wr_email',
wr_homepage = '$wr_homepage',
wr_datetime = '$g4[time_ymdhis]',
wr_datetime = '".G4_TIME_YMDHIS."',
wr_last = '',
wr_ip = '{$_SERVER['REMOTE_ADDR']}',
wr_1 = '$wr_1',
@ -165,11 +165,10 @@ if ($w == 'c') // 코멘트 입력
$comment_id = mysql_insert_id();
// 원글에 코멘트수 증가 & 마지막 시간 반영
sql_query(" update $write_table set wr_comment = wr_comment + 1, wr_last = '{$g4['time_ymdhis']}' where wr_id = '$wr_id' ");
sql_query(" update $write_table set wr_comment = wr_comment + 1, wr_last = '".G4_TIME_YMDHIS."' 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' ");

View File

@ -319,8 +319,8 @@ if ($w == '' || $w == 'r') {
wr_name = '$wr_name',
wr_email = '$wr_email',
wr_homepage = '$wr_homepage',
wr_datetime = '{$g4['time_ymdhis']}',
wr_last = '{$g4['time_ymdhis']}',
wr_datetime = '".G4_TIME_YMDHIS."',
wr_last = '".G4_TIME_YMDHIS."',
wr_ip = '{$_SERVER['REMOTE_ADDR']}',
wr_1 = '$wr_1',
wr_2 = '$wr_2',
@ -340,8 +340,7 @@ if ($w == '' || $w == 'r') {
sql_query(" update $write_table set wr_parent = '$wr_id' 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', '$wr_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}', '{$wr_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}', '{$wr_id}', '{$wr_id}', '".G4_TIME_YMDHIS."', '{$member['mb_id']}' ) ");
// 게시글 1 증가
sql_query("update {$g4['board_table']} set bo_count_write = bo_count_write + 1 where bo_table = '{$bo_table}'");
@ -484,7 +483,7 @@ for ($i=0; $i<count($upload); $i++)
bf_width = '{$upload[$i]['image']['0']}',
bf_height = '{$upload[$i]['image']['1']}',
bf_type = '{$upload[$i]['image']['2']}',
bf_datetime = '{$g4['time_ymdhis']}'
bf_datetime = '".G4_TIME_YMDHIS."'
where bo_table = '{$bo_table}'
and wr_id = '{$wr_id}'
and bf_no = '{$i}' ";
@ -514,7 +513,7 @@ for ($i=0; $i<count($upload); $i++)
bf_width = '{$upload[$i]['image']['0']}',
bf_height = '{$upload[$i]['image']['1']}',
bf_type = '{$upload[$i]['image']['2']}',
bf_datetime = '{$g4['time_ymdhis']}' ";
bf_datetime = '".G4_TIME_YMDHIS."' ";
sql_query($sql);
}
}

View File

@ -289,13 +289,13 @@ if ($_SESSION['ss_mb_id']) { // 로그인중이라면
$member = get_member($_SESSION['ss_mb_id']);
// 오늘 처음 로그인 이라면
if (substr($member['mb_today_login'], 0, 10) != $g4['time_ymd']) {
if (substr($member['mb_today_login'], 0, 10) != G4_TIME_YMD) {
// 첫 로그인 포인트 지급
insert_point($member['mb_id'], $config['cf_login_point'], "{$g4['time_ymd']} 첫로그인", "@login", $member['mb_id'], $g4['time_ymd']);
insert_point($member['mb_id'], $config['cf_login_point'], G4_TIME_YMD.' 첫로그인', '@login', $member['mb_id'], G4_TIME_YMD);
// 오늘의 로그인이 될 수도 있으며 마지막 로그인일 수도 있음
// 해당 회원의 접근일시와 IP 를 저장
$sql = " update {$g4['member_table']} set mb_today_login = '{$g4['time_ymdhis']}', mb_login_ip = '{$_SERVER['REMOTE_ADDR']}' where mb_id = '{$member['mb_id']}' ";
$sql = " update {$g4['member_table']} set mb_today_login = '".G4_TIME_YMDHIS."', mb_login_ip = '{$_SERVER['REMOTE_ADDR']}' where mb_id = '{$member['mb_id']}' ";
sql_query($sql);
}

View File

@ -245,8 +245,8 @@ $sql = " insert into {$g4['member_table']}
mb_level = '10',
mb_mailling = '1',
mb_open = '1',
mb_email_certify = '{$g4['time_ymdhis']}',
mb_datetime = '{$g4['time_ymdhis']}',
mb_email_certify = '".G4_TIME_YMDHIS."',
mb_datetime = '".G4_TIME_YMDHIS."',
mb_ip = '$_SERVER[REMOTE_ADDR]'
";
@mysql_query($sql);

View File

@ -362,14 +362,14 @@ function get_list($write_row, $board, $skin_url, $subject_len=40)
// 당일인 경우 시간으로 표시함
$list['datetime'] = substr($list['wr_datetime'],0,10);
$list['datetime2'] = $list['wr_datetime'];
if ($list['datetime'] == $g4['time_ymd'])
if ($list['datetime'] == G4_TIME_YMD)
$list['datetime2'] = substr($list['datetime2'],11,5);
else
$list['datetime2'] = substr($list['datetime2'],5,5);
// 4.1
$list['last'] = substr($list['wr_last'],0,10);
$list['last2'] = $list['wr_last'];
if ($list['last'] == $g4['time_ymd'])
if ($list['last'] == G4_TIME_YMD)
$list['last2'] = substr($list['last2'],11,5);
else
$list['last2'] = substr($list['last2'],5,5);
@ -627,7 +627,7 @@ function get_sql_search($search_ca_name, $search_field, $search_text, $search_op
if ($search_str == "") continue;
// 인기검색어
$sql = " insert into {$g4['popular_table']} set pp_word = '$search_str', pp_date = '{$g4['time_ymd']}', pp_ip = '{$_SERVER['REMOTE_ADDR']}' ";
$sql = " insert into {$g4['popular_table']} set pp_word = '$search_str', pp_date = '".G4_TIME_YMD."', pp_ip = '{$_SERVER['REMOTE_ADDR']}' ";
sql_query($sql, FALSE);
$str .= $op1;
@ -904,7 +904,7 @@ function insert_point($mb_id, $point, $content='', $rel_table='', $rel_id='', $r
// 포인트 건별 생성
$sql = " insert into {$g4['point_table']}
set mb_id = '$mb_id',
po_datetime = '{$g4['time_ymdhis']}',
po_datetime = '".G4_TIME_YMDHIS."',
po_content = '".addslashes($content)."',
po_point = '$point',
po_rel_table = '$rel_table',
@ -1358,7 +1358,7 @@ function date_select($date, $name='')
$s = '';
if (substr($date, 0, 4) == "0000") {
$date = $g4['time_ymdhis'];
$date = G4_TIME_YMDHIS;
}
preg_match("/([0-9]{4})-([0-9]{2})-([0-9]{2})/", $date, $m);

View File

@ -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);

View File

@ -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' ";

View File

@ -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' ";
}

View File

@ -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);
// 신고가 되면 일정 시간이 지난후 부터 글쓰기가 가능함

View File

@ -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);
// 신고가 되면 일정 시간이 지난후 부터 글쓰기가 가능함

View File

@ -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);

View File

@ -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' ";

View File

@ -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' ";

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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++)

View File

@ -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);
}
}

View File

@ -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) {

View File

@ -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);
}

View File

@ -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);

View File

@ -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;
}
}

View File

@ -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);

View File

@ -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);
}

View File

@ -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);
// 시간이 지난 접속은 삭제한다