마크업:메일테스트, 회원삭제

This commit is contained in:
whitedot
2012-11-14 16:58:31 +09:00
parent cf85f7c24b
commit 9d88639ec1
3 changed files with 14 additions and 14 deletions

View File

@ -12,26 +12,26 @@ check_token();
if ($w == '')
{
$sql = " insert {$g4['mail_table']}
set ma_id = '{$_POST['ma_id']}',
ma_subject = '{$_POST['ma_subject']}',
ma_content = '{$_POST['ma_content']}',
ma_time = '{$g4['time_ymdhis']}',
ma_ip = '{$_SERVER['REMOTE_ADDR']}' ";
set ma_id = '{$_POST[ma_id]}',
ma_subject = '{$_POST['ma_subject']}',
ma_content = '{$_POST['ma_content']}',
ma_time = '{$g4['time_ymdhis']}',
ma_ip = '{$_SERVER['REMOTE_ADDR']}' ";
sql_query($sql);
}
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_ip = '{$_SERVER['REMOTE_ADDR']}'
where ma_id = '{$_POST['ma_id']}' ";
ma_content = '{$_POST['ma_content']}',
ma_time = '{$g4['time_ymdhis']}',
ma_ip = '{$_SERVER['REMOTE_ADDR']}'
where ma_id = '{$_POST[ma_id]}' ";
sql_query($sql);
}
else if ($w == 'd')
{
$sql = " delete from {$g4['mail_table']} where ma_id = '{$_POST['ma_id']}' ";
$sql = " delete from {$g4['mail_table']} where ma_id = '{$_POST[ma_id]}' ";
sql_query($sql);
}