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

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;
?>