Show
Ignore:
Timestamp:
05/21/07 01:56:13 (20 months ago)
Author:
inureyes
Message:

#408

  • 팀블로그 소스 이식
  • 차칸아이님 소스 기반으로 태터툴즈 코드 일관성 유지를 위하여 전체적으로 수정하였음.
    • 아직 멀었다.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • sandbox/blog/comment/delete/item.php

    r3294 r3299  
    1616); 
    1717require ROOT . '/lib/includeForBlog.php'; 
     18list($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]'")); 
     20if(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} 
    1836if (false) { 
    1937    fetchConfigVal(); 
     
    5270        try { 
    5371            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);?>"; 
    5573        } catch(e) { }       
    5674        try { 
    5775            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 . ')' : '');?>"; 
    5977        } catch(e) { }       
    6078        window.close();