관리자 따옴표 메일까지 작업

This commit is contained in:
chicpro
2012-11-02 17:53:37 +09:00
parent eae06035b0
commit 41b1e2d8db
9 changed files with 137 additions and 137 deletions

View File

@ -1,39 +1,39 @@
<?
$sub_menu = "200300";
include_once("./_common.php");
include_once('./_common.php');
if ($w == 'u' || $w == 'd')
check_demo();
auth_check($auth[$sub_menu], "w");
auth_check($auth[$sub_menu], 'w');
check_token();
if ($w == "")
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]' ";
$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']}' ";
sql_query($sql);
}
else if ($w == "u")
}
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]' ";
$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']}' ";
sql_query($sql);
}
else if ($w == "d")
}
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);
}
goto_url("./mail_list.php");
goto_url('./mail_list.php');
?>