get_skin_stylesheet 함수 수정
This commit is contained in:
@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user