glob 를 이용한 코드 ... 테스트

This commit is contained in:
gnuboard
2013-04-16 15:00:49 +09:00
parent 7fd3fb58da
commit 6805fc12dc

View File

@ -1827,6 +1827,21 @@ function get_skin_stylesheet($skin_path, $dir='')
}
return $str;
/*
// glob 를 이용한 코드
if (!$skin_path) return '';
$skin_path .= $dir ? '/'.$dir : '';
$str = '';
$skin_url = G4_URL.str_replace('\\', '/', str_replace(G4_PATH, '', $skin_path));
foreach (glob($skin_path.'/*.css') as $filepath) {
$file = str_replace($skin_path, '', $filepath);
$str .= '<link rel="stylesheet" href="'.$skin_url.'/'.$file.'?='.date('md').'">'."\n";
}
return $str;
*/
}
// 스킨 javascript 파일 얻기