Changeset 5916

Show
Ignore:
Timestamp:
05/10/08 03:01:16 (22 months ago)
Author:
inureyes
Message:

#782

  • 링크 카테고리의 garbage correction 추가
Location:
trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/owner/communication/link/index.php

    r5908 r5916  
    114114?> 
    115115                                    <tr id="link_<?php echo $link['id'];?>" class="<?php echo $className;?> inactive-class" onmouseover="rolloverClass(this, 'over')" onmouseout="rolloverClass(this, 'out')"> 
    116                                         <td class="category"><a href="<?php echo $blogURL;?>/owner/communication/link/categoryEdit/<?php echo $link['category'];?>" title="<?php echo _t('이 카테고리 정보를 수정합니다.');?>"><?php echo (isset($link['categoryName']) ? htmlspecialchars($link['categoryName']) : _t('분류 없음'));?></a></td> 
     116                                        <td class="category"><a href="<?php echo $blogURL;?>/owner/communication/link/categoryEdit/<?php echo $link['category'];?>" title="<?php echo _t('이 카테고리 정보를 수정합니다.');?>"<?php echo (isset($link['categoryName']) ? '' : ' class="uncategorized"');?>><?php echo (isset($link['categoryName']) ? htmlspecialchars($link['categoryName']) : _t('분류 없음'));?></a></td> 
    117117                                        <td class="homepage"><a href="<?php echo $blogURL;?>/owner/communication/link/edit/<?php echo $link['id'];?>" title="<?php echo _t('이 링크 정보를 수정합니다.');?>"><?php echo htmlspecialchars($link['name']);?></a></td> 
    118118                                        <td class="address"><a href="<?php echo htmlspecialchars($link['url']);?>" onclick="window.open(this.href); return false;" title="<?php echo _t('이 링크에 연결합니다.');?>"><?php echo htmlspecialchars($link['url']);?></a></td> 
  • trunk/lib/model/blog.link.php

    r5908 r5916  
    9999 
    100100    $rss = isset($link['rss']) ? POD::escapeString(UTF8::lessenAsEncoding(trim($link['rss']), 255)) : ''; 
    101     return POD::execute("UPDATE {$database['prefix']}Links 
     101    $result = POD::execute("UPDATE {$database['prefix']}Links 
    102102                SET 
    103103                    category = $category, 
     
    108108                WHERE 
    109109                    blogid = $blogid and id = {$link['id']}"); 
     110    // Garbage correction 
     111    $existCategories = POD::queryColumn("SELECT DISTINCT category FROM {$database['prefix']}Links 
     112            WHERE blogid = $blogid"); 
     113    @POD::execute("DELETE FROM {$database['prefix']}LinkCategories 
     114            WHERE blogid = $blogid AND id NOT IN (".implode(",",$existCategories).")"); 
     115    return $result; 
    110116} 
    111117 
  • trunk/setup.php

    r5908 r5916  
    654654            else { 
    655655                $error = 8; 
    656                echo '<li style="color:red">', _t('웹 설정 파일'), ': ', _f('"%1"에 접근할 수 없습니다. 퍼미션을 %2(으)로 수정해 주십시오.', $filename, '0666'), '</li>'; 
     656               echo '<li style="color:red">', _t('웹 설정 파일'), ': ', _f('"%1"에 접근할 수 없습니다. 퍼미션을 %2(으)로 수정해 주십시오.', $filename, '0666'), _f('FTP 프로그램으로 권한을 수정하시거나 다음의 명령을 터미널에 붙여 넣으시면 됩니다 : %1','chmod 0666 '.$filename), '</li>'; 
    657657            } 
    658658        } 
     
    661661        else { 
    662662            $error = 9; 
    663            echo '<li style="color:red">', _t('웹 설정 파일'), ': ', _f('"%1"에 %2 파일을 생성할 수 없습니다. "%1"의 퍼미션을 %3(으)로 수정해 주십시오.', $root, '.htaccess', '0777'), '</li>'; 
     663           echo '<li style="color:red">', _t('웹 설정 파일'), ': ', _f('"%1"에 %2 파일을 생성할 수 없습니다. "%1"의 퍼미션을 %3(으)로 수정해 주십시오.', $root, '.htaccess', '0777'), _f('FTP 프로그램으로 권한을 수정하시거나 다음의 명령을 터미널에 붙여 넣으시면 됩니다 : %1','chmod 0777 '.$root), '</li>'; 
    664664        } 
    665665         
     
    716716        } 
    717717 
    718         $filename = $root . '/remote'; 
     718/*        $filename = $root . '/remote'; 
    719719        if (is_dir($filename)) { 
    720720            if (is_writable($filename)) 
     
    730730            $error = 13; 
    731731           echo '<li style="color:red">', _t('원격 설치 디렉토리'), ': ', _f('"%1"에 %2 디렉토리를 생성할 수 없습니다. "%1"의 퍼미션을 %3(으)로 수정해 주십시오.', $root, 'cache', '0777'), '</li>'; 
    732         } 
     732        }*/ 
    733733 
    734734        $filename = $root . '/skin/customize'; 
  • trunk/style/admin/whitedream/communication.css

    r5915 r5916  
    412412} 
    413413 
     414#part-link-list table.data-inbox tbody tr td a.uncategorized 
     415{ 
     416    color                            : #BCBCBC; 
     417} 
     418 
    414419#part-link-list table.data-inbox thead.xfn tr th.xfn-homepage 
    415420{