g4를 g5로 변경

This commit is contained in:
chicpro
2013-09-13 14:32:06 +09:00
parent 9a18a049d5
commit 0f78b67eb7
563 changed files with 4097 additions and 4097 deletions

View File

@ -1,19 +1,19 @@
<?php
include_once('./_common.php');
include_once(G4_LIB_PATH.'/mailer.lib.php');
include_once(G5_LIB_PATH.'/mailer.lib.php');
if ($w == '')
{
$po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '{$po_id}' ");
$po = sql_fetch(" select * from {$g5['poll_table']} where po_id = '{$po_id}' ");
if (!$po[po_id])
alert('po_id 값이 제대로 넘어오지 않았습니다.');
$tmp_row = sql_fetch(" select max(pc_id) as max_pc_id from {$g4[poll_etc_table]} ");
$tmp_row = sql_fetch(" select max(pc_id) as max_pc_id from {$g5[poll_etc_table]} ");
$pc_id = $tmp_row[max_pc_id] + 1;
$sql = " insert into {$g4[poll_etc_table]}
$sql = " insert into {$g5[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}', '".G5_TIME_YMDHIS."' ) ";
sql_query($sql);
$pc_idea = stripslashes($pc_idea);
@ -44,7 +44,7 @@ else if ($w == 'd')
{
if ($member[mb_id] || $is_admin == 'super')
{
$sql = " delete from {$g4[poll_etc_table]} where pc_id = '{$pc_id}' ";
$sql = " delete from {$g5[poll_etc_table]} where pc_id = '{$pc_id}' ";
if (!$is_admin)
$sql .= " and mb_id = '{$member['mb_id']}' ";
sql_query($sql);