skin_path 변경
This commit is contained in:
@ -1627,4 +1627,14 @@ function get_selected($field, $value, $first=false)
|
||||
$selected = ($field=="") ? ' selected="selected"' : '';
|
||||
return $selected;
|
||||
}
|
||||
|
||||
|
||||
function skin_path()
|
||||
{
|
||||
global $g4;
|
||||
$skin_dir = 'skin';
|
||||
$skin_path = $g4['path'].'/'.$skin_dir;
|
||||
if (G4_IS_MOBILE) $skin_path = $g4['mobile_path'].'/'.$skin_dir;
|
||||
return $skin_path;
|
||||
}
|
||||
?>
|
||||
@ -10,10 +10,9 @@ function connect($skin_dir='')
|
||||
$sql = " select sum(IF(mb_id<>'',1,0)) as mb_cnt, count(*) as total_cnt from {$g4['login_table']} where mb_id <> '{$config['cf_admin']}' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
if ($skin_dir)
|
||||
$connect_skin_path = $g4['path'].'/skin/connect/'.$skin_dir;
|
||||
else
|
||||
$connect_skin_path = $g4['path'].'/skin/connect/'.$config['cf_connect_skin'];
|
||||
if (!$skin_dir)
|
||||
$skin_dir = $config['cf_connect_skin'];
|
||||
$connect_skin_path = skin_path().'/connect/'.$skin_dir;
|
||||
|
||||
ob_start();
|
||||
include_once ($connect_skin_path.'/connect.skin.php');
|
||||
|
||||
@ -6,10 +6,9 @@ function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40, $options='')
|
||||
{
|
||||
global $g4;
|
||||
|
||||
if ($skin_dir)
|
||||
$latest_skin_path = $g4['path'].'/skin/latest/'.$skin_dir;
|
||||
else
|
||||
$latest_skin_path = $g4['path'].'/skin/latest/basic';
|
||||
if (!$skin_dir)
|
||||
$skin_dir = 'basic';
|
||||
$latest_skin_path = skin_path().'/latest/'.$skin_dir;
|
||||
|
||||
$list = array();
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ function outlogin($skin_dir='basic')
|
||||
$point = number_format($member['mb_point']);
|
||||
}
|
||||
|
||||
$outlogin_skin_path = $g4['path'].'/skin/outlogin/'.$skin_dir;
|
||||
$outlogin_skin_path = skin_path().'/outlogin/'.$skin_dir;
|
||||
|
||||
// 읽지 않은 쪽지가 있다면
|
||||
if ($is_member) {
|
||||
|
||||
@ -14,7 +14,7 @@ function poll($skin_dir='basic', $po_id=false)
|
||||
}
|
||||
|
||||
ob_start();
|
||||
$poll_skin_path = $g4['path'].'/skin/poll/'.$skin_dir;
|
||||
$poll_skin_path = skin_path().'/poll/'.$skin_dir;
|
||||
include_once ($poll_skin_path.'/poll.skin.php');
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
@ -26,7 +26,7 @@ function popular($skin_dir='basic', $pop_cnt=7, $date_cnt=3)
|
||||
}
|
||||
|
||||
ob_start();
|
||||
$popular_skin_path = $g4['path'].'/skin/popular/'.$skin_dir;
|
||||
$popular_skin_path = skin_path().'/popular/'.$skin_dir;
|
||||
include_once ($popular_skin_path.'/popular.skin.php');
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
@ -19,7 +19,7 @@ function visit($skin_dir='basic')
|
||||
settype($visit[3], "integer");
|
||||
|
||||
ob_start();
|
||||
$visit_skin_path = $g4['path'].'/skin/visit/'.$skin_dir;
|
||||
$visit_skin_path = skin_path().'/visit/'.$skin_dir;
|
||||
include_once ($visit_skin_path.'/visit.skin.php');
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
Reference in New Issue
Block a user