get_skin_stylesheet 함수 수정

This commit is contained in:
chicpro
2013-03-20 11:35:04 +09:00
parent 779b11002b
commit 98d7db2a43

View File

@ -1802,16 +1802,9 @@ function get_skin_stylesheet($skin_path)
if(!$skin_path) if(!$skin_path)
return ""; return "";
$doc_root = realpath($_SERVER['DOCUMENT_ROOT']);
$skin_path = realpath($skin_path);
$str = ""; $str = "";
$p = parse_url(G4_URL); $skin_url = G4_URL.str_replace("\\", "/", str_replace(G4_PATH, "", $skin_path));
$skin_url = $p['scheme'].'://'.$p['host'];
if(isset($p['port']))
$skin_url .= ':'.$p['port'];
$skin_url .= str_replace("\\", "/", str_replace($doc_root, "", $skin_path));
if(is_dir($skin_path)) { if(is_dir($skin_path)) {
if($dh = opendir($skin_path)) { if($dh = opendir($skin_path)) {