/home/mjc1/public_html/mac_confirm/macrowdelProcess.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?   
    session_start
(); 
    include_once(
"./common.php");

    
$sql "SELECT * FROM mac_detail WHERE mac_idx = '$macidx'";
    
$result mysql_query($sql);
    
$row mysql_fetch_array($result);
    echo 
$sql;
    
    
$msql "UPDATE macs SET app_rgsted = 0 WHERE mac_addr = '$row[mac_addr]' AND app_code = '$row[app_code]'";
    
mysql_query($msql);
    echo 
$msql;

    
$dsql "UPDATE mac_detail SET cdkey = null WHERE mac_idx = '$macidx'";
    
mysql_query($dsql);
    echo 
$dsql;

    
$date date("Y-m-d H:i:s",time());
    
$sql "insert into mac_remove_log set user_id = '{$_SESSION['userid']}', cdkey = '{$row['cdkey']}', app_code = '{$row[app_code]}', mac_addr = '$row[mac_addr]', del_date = '{$date}'  ";
    
mysql_query($sql);
?>
<SCRIPT LANGUAGE="JavaScript">
    parent.alert("»èÁ¦µÇ¾ú½À´Ï´Ù");
    parent.location.reload();
</SCRIPT>