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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
<? include("./_common.php"); include("category/opcommon.php");
// ÀÌ ÆäÀÌÁö´Â ¾²±â/»èÁ¦/¼öÁ¤Àº ´ÙÀ½»ç¶÷¸¸ Çã¿ë $admin_do = "NO"; $admin_list = array('osm', 'mijin', 'gyu', 'hjw', 'psw'); // ¿ÀÆÀ,»çÀå´Ô,È«´ë¸®,±ÇÆÀ,¹Ú´ë¸® foreach($admin_list as $k => $v){ if($v == $_SESSION['ADMINID']){ $admin_do = "OK"; } } if($admin_do=='NO'){ ?> <script> alert("»ç¿ëÇÏ½Ç ±ÇÇÑÀÌ ¾ø½À´Ï´Ù."); </script> <? exit; }
/* jyh µð¹ö±ë ÇÔ¼ö */ function prt($data=null, $size=0) { //if (!isdev()) return; ob_start(); print_r($data); $content_text = ob_get_contents(); ob_end_clean(); $content_list = explode("\n", $content_text); $rows = count($content_list); $cols = 0; foreach ($content_list as $line) { if (($col = mb_strlen($line)) > $cols) { $cols = $col; if ($cols > 128) $rows++; } } $rows += 2; $cols += 2; if (!headers_sent()) { header('Content-type: text/html; charset=euc-kr'); } echo '<textarea cols="' . $cols . '" rows="' . $rows . '"'; echo ' style="display:block; margin:0; padding:5px; border:1px solid #999;'; if ($size) echo ' width:' . $size . 'px;'; echo ' font-family:Hwsr_9pt, Gulimche; font-size:9pt;">'; echo $content_text; echo '</textarea>'; }
if($mode == "insert"){ $_content = addslashes($content); //$reg_date = time(); $reg_date = date("Y-m-d H:i:s", time()); $insertQry = " INSERT INTO bug_list ( app_code, ver, bug_desc, disuse, write_time, writer ) values ( '{$sitetype}','{$subject}','{$content}','{$disuse}','{$reg_date}','{$name}')"; mysql_query($insertQry);
auth_access_log("WRITE"); $sel = "SELECT idx FROM bug_list ORDER BY idx DESC LIMIT 1"; $result = mysql_query($sel); $row = mysql_fetch_array($result); ?> <script> parent.location.href = 'bugVersionMody.php?uid=<?=$row[0];?>&menu=<?=$menu?>&sub=<?=$sub?>'; </script> <? exit; } if($mode == "edit" && $uid !== ""){
$_content = addslashes($content); $updateQry = " update bug_list SET bug_desc = '{$_content}', disuse = '{$disuse}', app_code = '{$sitetype}', writer = '{$writer}', ver = '{$subject}' WHERE idx = '{$uid}'"; mysql_query($updateQry);
auth_access_log("EDIT"); ?> <script> alert("¼öÁ¤ µÇ¾ú½À´Ï´Ù."); //parent.location.href = 'noticeBoardMody.php?uid=<?=$uid;?>&menu=<?=$menu?>&sub=<?=$sub?>'; </script> <? exit; } if($exCode == "alldel"){ for ($i = 0; $i < count( $noticeForm ); $i++) {
$alldel = " delete from bug_list where idx = '$noticeForm[$i]' "; //MYSQL_QUERY($alldel); mysql_query($alldel); auth_access_log("DEL"); } ?> <script> parent.location.href = 'bugVersionList.php'; </script> <? } if($exCode == "selectedDel"){ $alldel = " delete from bug_list where idx = '{$selecetIdx}' "; mysql_query($alldel); auth_access_log("DEL");?> <script> parent.location.href = 'bugVersionList.php'; </script> <? }
if($exCode == "selectedCopy"){ $sql = "select * from bug_list where idx = '{$selecetIdx}' "; $res = mysql_query($sql); $info = mysql_fetch_array($res);
$reg_date = date("Y-m-d H:i:s", time());
$insertQry = " INSERT INTO bug_list ( app_code, ver, bug_desc, disuse, write_time, writer ) values ( '{$info['app_code']}','{$info['ver']}','{$info['bug_desc']}','{$info['disuse']}','{$reg_date}','{$_SESSION['ADMINID']}')"; mysql_query($insertQry); auth_access_log("WRITE");?> <script> parent.location.href = 'bugVersionList.php'; </script> <? } ?>
|