/home/mjc1/public_html/manage/eventBoardProcess.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?
    
include("./_common.php");
   include(
"category/common.php");

   if( 
$mode == "insert"){

     
$devel_date $devel_year."-".$devel_mon."-".$devel_day;

     
$reg_date  =  date('Y-m-d'  Time() );
     
$_content     addslashes($content);  
     
//$reg_date     =  Time();

    
$st_log "\n".date("Y-m-d H:i:s",time())." ÀÛ¼º / {$_SESSION['ADMINID']} ";
    

     
$insertQry     =  " insert into mBoard_event set
                                name = '
$name', hp = '$hp', content = '$content', 
                                Mid = '
$Mid', app_id = '$app_id', status = '$status', admin_name = '$admin_name', state_log = '$st_log', 
                                reg_date = '"
.date("Y-m-d H:i:s",time())."' 
     "
;
     
     
mysql_query($insertQry);

        
auth_access_log("WRITE");
 
     
$sel      =  "select uid from mBoard_event order by uid desc limit 1";
     
$result   =   mysql_query($sel);
     
$row      =   mysql_fetch_array($result);
?>
<script>
     parent.location.href = 'eventBoard.php?menu=<?=$menu?>&sub=<?=$sub?>&uid=<?=$row[0];?>';
</script>
<?
    
}
    
 
  if(
$mode == "edit" && $uid !== ""){

     
$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;
    }
    
    
$_content      =     addslashes($content);
    
$devel_date $devel_year."-".$devel_mon."-".$devel_day;
    
$reg_date  =  date('Y-m-d'  Time() );

    
$sql "select * from mBoard_event 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()).{$app_id} / {$status} / {$admin_name} º¯°æ / {$_SESSION['ADMINID']} ";

      
$updateQry  =  " update mBoard_event SET 
                        name = '
$name', hp = '$hp', content = '$content', 
                                Mid = '
$Mid', app_id = '$app_id', status = '$status', admin_name = '$admin_name', state_log = '$st_log'
                         WHERE uid = '
$uid'
                       "
;
                       
      
mysql_query($updateQry);  

      
auth_access_log("EDIT");
     
?>
<script>
 //parent.location.href = 'develBoardMody.php?menu=<?=$menu?>&sub=<?=$sub?>&uid=<?=$uid;?>';
 alert("¼öÁ¤ µÇ¾ú½À´Ï´Ù.");
 parent.document.location.reload();
</script>
<?
    

    
     if(
$exCode == "alldel"){ 

         
$admin_info admin_member_info();
        if(
$admin_info['psn_auth']=='0' || substr($admin_info['psn_rwed'],3,1)=='0'){
            echo 
"<script>alert('ÇØ´ç »èÁ¦±ÇÇÑÀÌ ¾ø½À´Ï´Ù.');window.history.go(-1);</script>"; exit;
        }
       
      for (
$i 0$i count$develForm ); $i++) { 

      
$alldel   =  " delete from  mBoard_event where uid = '$develForm[$i]' ";  
                      
MYSQL_QUERY($alldel);
              
      }

      
auth_access_log("DEL");
?>
<script>
 parent.location.href = 'eventBoard.php?menu=<?=$menu?>&sub=<?=$sub?>';
</script>
<?      
               
  

?>