/home/mjc1/public_html/manage/install_reqBoardEnd.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?   
header
("Content-type:text/html;charset=euc-kr"); 
    include(
"./_common.php");
 include(
"category/common.php");

$install_code[0] = "¹ÌÈ®ÀÎ";
$install_code[1] = "ó¸®Áß";
$install_code[2] = "¼³Ä¡¿Ï·á";
$install_code[3] = "󸮺Ұ¡";
$install_code[4] = "¼³Ä¡&±³À°";
$install_code[5] = "ºÎÀçÁß";
$install_code[6] = "°í°´Ãë¼Ò";
$install_code[7] = "ó¸®À̰ü";

$admin_info admin_member_info();
if(
$admin_info['psn_auth']=='0' || substr($admin_info['psn_rwed'],2,1)=='0'){
    echo 
"<script>alert('ÇØ´ç ¼öÁ¤±ÇÇÑÀÌ ¾ø½À´Ï´Ù.');window.history.go(-1);</script>"; exit;
}

if (
$exCode == "end_change"){ // ¿Ï·á¼öÁ¤
    
$sql "select * from mBoard_install_req where uid = $uid";
    
$res mysql_query($sql);
    
$info mysql_fetch_array($res);
    
$st_log $info['state_log'];
    
$st_log $st_log."\n".date("Y-m-d H:i:s",time()).{$install_code[$codevalue]} º¯°æ / {$_SESSION['ADMINID']} ";

    
$WhereQry   =  "UPDATE mBoard_install_req SET proResult = $codevalue, state_log = '$st_log' WHERE uid = $uid";
    
mysql_query($WhereQry);
} else if(
$mode=='update'){
    
$WhereQry   =  "UPDATE mBoard_install_req SET smdetail = '{$content}', dodetail = '{$content2}', smoption='{$smoption}', smemail='{$smemail}' WHERE uid = $uid";
    
mysql_query($WhereQry);
} else if(
$exCode=='contract_change'){
    
//_pr($_GET);
    
$sql "select * from mBoard_install_req where uid = $uid";
    
$res mysql_query($sql);
    
$info mysql_fetch_array($res);
    
$st_log $info['state_log'];
    
$st_log $st_log."\n".date("Y-m-d H:i:s",time()).{$codevalue} º¯°æ / {$_SESSION['ADMINID']} ";

    
$WhereQry   =  "UPDATE mBoard_install_req SET contract = '$codevalue', state_log = '$st_log' WHERE uid = $uid";
    
//echo $WhereQry; exit;
    
mysql_query($WhereQry); 

} else if(
$mode == "ch_chk") { // »çÀå´Ô È®ÀΠüũ
    
$WhereQry   =  "UPDATE mBoard_install_req SET ceo_chk = '$chk_flg' WHERE uid = $uid";
    
mysql_query($WhereQry);

    echo 
"ok";

    exit;
}
//print_r($_REQUEST); exit;
auth_access_log("EDIT");
?>

<script>
 //parent.Msg("¼öÁ¤ ¿Ï·á µÇ¾ú½À´Ï´Ù.");
 alert("¼öÁ¤ ¿Ï·á µÇ¾ú½À´Ï´Ù.");
 document.location.href='install_reqBoardEdit.php?re=n&uid=<?php echo $uid?>';
</script>  

<?

  
?>