Changeset 3299 for sandbox/blog/comment/delete/item.php
- Timestamp:
- 05/21/07 01:56:13 (20 months ago)
- Files:
-
- 1 modified
-
sandbox/blog/comment/delete/item.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sandbox/blog/comment/delete/item.php
r3294 r3299 16 16 ); 17 17 require ROOT . '/lib/includeForBlog.php'; 18 list($replier)=getCommentAttributes($owner,$suri['id'],'replier'); 19 $ch_res = mysql_fetch_array(mysql_query("SELECT Posting FROM `{$database['prefix']}Teamblog` WHERE teams='$owner' and userid='$_SESSION[admin]'")); 20 if(empty($ch_res['Posting']) && $owner != $_SESSION['admin']){ 21 if(!empty($replier)){ 22 if($owner != $_SESSION['admin']){ 23 if($replier != $_SESSION['admin']){ 24 echo _t('<script> alert("권한이 없습니다."); window.close(); </script>'); 25 exit; 26 } 27 } 28 } 29 else{ 30 if($owner != $_SESSION['admin'] && !empty($_SESSION['admin'])){ 31 echo _t('<script> alert("권한이 없습니다."); window.close(); </script>'); 32 exit; 33 } 34 } 35 } 18 36 if (false) { 19 37 fetchConfigVal(); … … 52 70 try { 53 71 obj = opener.document.getElementById("commentCount<?php echo $entryId;?>"); 54 if (obj != null) obj.innerHTML = "<?php echo str_ replace('"', '\"',$commentView);?>";72 if (obj != null) obj.innerHTML = "<?php echo str_innerHTML($commentView);?>"; 55 73 } catch(e) { } 56 74 try { 57 75 obj = opener.document.getElementById("commentCountOnRecentEntries<?php echo $entryId;?>"); 58 if (obj != null) obj.innerHTML = "<?php echo ($commentCount > 0) ? '(' . $commentCount . ')' : '';?>";76 if (obj != null) obj.innerHTML = "<?php echo str_innerHTML(($commentCount > 0) ? '(' . $commentCount . ')' : '');?>"; 59 77 } catch(e) { } 60 78 window.close();
