Changeset 6090

Show
Ignore:
Timestamp:
05/29/08 22:36:26 (7 months ago)
Author:
creorix
Message:

#957

  • skin 목록을 가져올 때 정말 스킨이 포함된 폴더인지 검사해서 목록에 추가하도록 변경
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/owner/control/server/index.php

    r6089 r6090  
    3333if (is_dir(ROOT.'/skin/') && $handler = opendir(ROOT.'/skin/')) { 
    3434    while (($file = readdir($handler)) !== false) { 
    35         if (!is_dir(ROOT.'/skin/') || substr($file, 0, 1) == '.' || $file == 'customize') { 
     35        if (!is_dir(ROOT.'/skin/') || in_array($file, array('.', '..', 'customize'))) { 
     36            continue; 
     37        } 
     38        if (!file_exists(ROOT.'/skin/'.$file.'/index.xml') || !file_exists(ROOT.'/skin/'.$file.'/skin.html')) { 
    3639            continue; 
    3740        }