diff --git a/head.sub.php b/head.sub.php index 9092df604..32afa2d89 100644 --- a/head.sub.php +++ b/head.sub.php @@ -40,6 +40,20 @@ header("Pragma: no-cache"); // HTTP/1.0 "> + diff --git a/lib/common.lib.php b/lib/common.lib.php index 7e3ff5dbf..46d23aad1 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1785,4 +1785,36 @@ function delete_editor_thumbnail($contents) } } } + +// 스킨 style sheet 파일 얻기 +function get_skin_stylesheet($skin_path) +{ + if(!$skin_path) + return ""; + + $str = ""; + + $p = parse_url(G4_URL); + $skin_url = $p['scheme'].'://'.$p['host']; + if(isset($p['port'])) + $skin_url .= ':'.$p['port']; + $skin_url .= str_replace($_SERVER['DOCUMENT_ROOT'], "", $skin_path); + + if(is_dir($skin_path)) { + if($dh = opendir($skin_path)) { + while(($file = readdir($dh)) !== false) { + if($file == "." || $file == "..") + continue; + + if(is_dir($skin_path.'/'.$file)) + continue; + + if(preg_match("/\.(css)$/i", $file)) + $str .= ''."\n"; + } + } + } + + return $str; +} ?> \ No newline at end of file