skin_path 변경
This commit is contained in:
@ -28,7 +28,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
|
||||
|
||||
$connect_skin_path = $g4['path'].'/skin/connect/'.$config['cf_connect_skin'];
|
||||
include_once($connect_skin_path.'/current_connect.skin.php');
|
||||
|
||||
include_once('./_tail.php');
|
||||
|
||||
@ -37,7 +37,6 @@ if (!isset($type))
|
||||
$type_checked[0] = $type_checked[1] = $type_checked[2] = "";
|
||||
$type_checked[$type] = 'checked';
|
||||
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config[cf_member_skin];
|
||||
include_once($member_skin_path.'/formmail.skin.php');
|
||||
|
||||
include_once($g4['path'].'/tail.sub.php');
|
||||
|
||||
@ -48,8 +48,6 @@ if ($g4['https_url'])
|
||||
else
|
||||
$login_action_url = "{$g4['bbs_url']}/login_check.php";
|
||||
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config['cf_member_skin'];
|
||||
|
||||
include_once($member_skin_path.'/login.skin.php');
|
||||
|
||||
include_once('./_tail.php');
|
||||
|
||||
@ -43,7 +43,6 @@ if ($mb['mb_leave_date'] && $mb['mb_leave_date'] <= date("Ymd", $g4['server_time
|
||||
if ($config['cf_use_email_certify'] && !preg_match("/[1-9]/", $mb['mb_email_certify']))
|
||||
alert('메일인증을 받으셔야 로그인 하실 수 있습니다.\n회원님의 메일주소는 '.$mb['mb_email'].' 입니다.');
|
||||
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config['cf_member_skin'];
|
||||
@include_once($member_skin_path.'/login_check.skin.php');
|
||||
|
||||
// 회원아이디 세션 생성
|
||||
|
||||
@ -14,7 +14,6 @@ else
|
||||
$g4['title'] = '회원 패스워드 확인';
|
||||
include_once('./_head.php');
|
||||
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config[cf_member_skin];
|
||||
include_once($member_skin_path.'/member_confirm.skin.php');
|
||||
|
||||
include_once('./_tail.php');
|
||||
|
||||
@ -76,10 +76,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
|
||||
|
||||
if (G4_IS_MOBILE)
|
||||
$member_skin_path = $g4['mobile_path'].'/skin/member/'.$config[cf_member_skin];
|
||||
else
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config[cf_member_skin];
|
||||
include_once($member_skin_path.'/memo.skin.php');
|
||||
|
||||
include_once($g4['path'].'/tail.sub.php');
|
||||
|
||||
@ -40,10 +40,6 @@ if ($g4['https_url'])
|
||||
else
|
||||
$memo_action_url = "{$g4['url']}/{$g4['bbs']}/memo_form_update.php";
|
||||
|
||||
if (G4_IS_MOBILE)
|
||||
$member_skin_path = $g4['mobile_path'].'/skin/member/'.$config[cf_member_skin];
|
||||
else
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config[cf_member_skin];
|
||||
include_once($member_skin_path.'/memo_form.skin.php');
|
||||
|
||||
include_once($g4['path'].'/tail.sub.php');
|
||||
|
||||
@ -63,7 +63,6 @@ $mb = get_member($memo['me_'.$unkind.'_mb_id']);
|
||||
|
||||
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
|
||||
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config[cf_member_skin];
|
||||
include_once($member_skin_path.'/memo_view.skin.php');
|
||||
|
||||
include_once($g4['path'].'/tail.sub.php');
|
||||
|
||||
@ -105,8 +105,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
$write_pages = get_paging($config['cf_write_pages'], $page, $total_page, "?gr_id=$gr_id&view=$view&mb_id=$mb_id&page=");
|
||||
|
||||
$new_skin_path = $g4['path'].'/skin/new/'.$config['cf_new_skin'];
|
||||
|
||||
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>'.PHP_EOL;
|
||||
|
||||
include_once($new_skin_path.'/new.skin.php');
|
||||
|
||||
@ -29,8 +29,6 @@ include_once($g4['path'].'/head.sub.php');
|
||||
if ($board['bo_include_head']) { @include ($board['bo_include_head']); }
|
||||
if ($board['bo_content_head']) { echo stripslashes($board['bo_content_head']); }
|
||||
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config['cf_member_skin'];
|
||||
|
||||
include_once($member_skin_path.'/password.skin.php');
|
||||
|
||||
if ($board['bo_content_tail']) { echo stripslashes($board['bo_content_tail']); }
|
||||
|
||||
@ -14,7 +14,6 @@ if ($g4['https_url'])
|
||||
else
|
||||
$action_url = "{$g4['bbs_url']}/password_lost2.php";
|
||||
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config['cf_member_skin'];
|
||||
include_once($member_skin_path.'/password_lost.skin.php');
|
||||
|
||||
include_once($g4['path'].'/tail.sub.php');
|
||||
|
||||
@ -84,8 +84,6 @@ include_once($g4['path'].'/head.sub.php');
|
||||
|
||||
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
|
||||
|
||||
$skin_dir = isset($_GET['skin_dir']) ? $_GET['skin_dir'] : 'basic';
|
||||
$poll_skin_path = $g4['path'].'/skin/poll/'.$skin_dir;
|
||||
if (!file_exists($poll_skin_path.'/poll_result.skin.php')) die('skin error');
|
||||
include_once ($poll_skin_path.'/poll_result.skin.php');
|
||||
|
||||
|
||||
@ -29,7 +29,6 @@ $mb_profile = $mb[mb_profile] ? conv_content($mb[mb_profile],0) : '소개 내용
|
||||
|
||||
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
|
||||
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config[cf_member_skin];
|
||||
include_once($member_skin_path.'/profile.skin.php');
|
||||
|
||||
include_once($g4['path'].'/tail.sub.php');
|
||||
|
||||
@ -9,8 +9,6 @@ if ($is_member) {
|
||||
// 세션을 지웁니다.
|
||||
set_session("ss_mb_reg", "");
|
||||
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config['cf_member_skin'];
|
||||
|
||||
if ($g4['https_url']) {
|
||||
$register_action_url = $g4['https_url'].'/'.$g4['bbs'].'/register_form.php';
|
||||
} else {
|
||||
|
||||
@ -104,7 +104,6 @@ $captcha_html = captcha_html();
|
||||
|
||||
// 회원아이콘 경로
|
||||
$mb_icon = $g4['path'].'/data/member/'.substr($member['mb_id'],0,2).'/'.$member['mb_id'].'.gif';
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config['cf_member_skin'];
|
||||
|
||||
include_once('./_head.php');
|
||||
|
||||
|
||||
@ -8,8 +8,6 @@ if (isset($_SESSION['ss_mb_reg']))
|
||||
if (!$mb['mb_id'])
|
||||
goto_url($g4['path']);
|
||||
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config['cf_member_skin'];
|
||||
|
||||
$g4['title'] = '회원가입이 완료되었습니다.';
|
||||
include_once('./_head.php');
|
||||
include_once($member_skin_path.'/register_result.skin.php');
|
||||
|
||||
@ -28,8 +28,8 @@ $sql = " select *
|
||||
$sql_order
|
||||
limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
$list[$i] = $row;
|
||||
|
||||
// 순차적인 번호 (순번)
|
||||
@ -56,7 +56,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$list[$i]['del_href'] = './scrap_delete.php?ms_id='.$row['ms_id'].'&page='.$page;
|
||||
}
|
||||
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config['cf_member_skin'];
|
||||
include_once($member_skin_path.'/scrap.skin.php');
|
||||
|
||||
include_once($g4['path'].'/tail.sub.php');
|
||||
|
||||
@ -3,7 +3,7 @@ include_once('./_common.php');
|
||||
|
||||
include_once($g4['path'].'/head.sub.php');
|
||||
|
||||
if (!$is_member) {
|
||||
if ($is_guest) {
|
||||
$href = './login.php?'.$qstr.'&url='.urlencode('./board.php?bo_table='.$bo_table.'&wr_id='.$wr_id);
|
||||
echo <<<HEREDOC
|
||||
<script>
|
||||
@ -53,7 +53,6 @@ HEREDOC;
|
||||
exit;
|
||||
}
|
||||
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config['cf_member_skin'];
|
||||
include_once($member_skin_path.'/scrap_popin.skin.php');
|
||||
|
||||
include_once($g4['path'].'/tail.sub.php');
|
||||
|
||||
@ -225,7 +225,6 @@ $group_select .= '</select>';
|
||||
if (!$sfl) $sfl = 'wr_subject';
|
||||
if (!$sop) $sop = 'or';
|
||||
|
||||
$search_skin_path = $g4['path'].'/skin/search/'.$config['cf_search_skin'];
|
||||
include_once($search_skin_path.'/search.skin.php');
|
||||
|
||||
include_once('./_tail.php');
|
||||
|
||||
@ -65,7 +65,6 @@ if ($addr1)
|
||||
$g4['title'] = '우편번호 검색';
|
||||
include_once($g4['path'].'/head.sub.php');
|
||||
|
||||
$member_skin_path = $g4['path'].'/skin/member/'.$config[cf_member_skin];
|
||||
include_once($member_skin_path.'/zip.skin.php');
|
||||
|
||||
include_once($g4['path'].'/tail.sub.php');
|
||||
|
||||
28
common.php
28
common.php
@ -204,7 +204,7 @@ $g4['url'] = preg_replace("/\/$/", "", $g4['url']);
|
||||
|
||||
//==============================================================================
|
||||
// 공통
|
||||
//==============================================================================
|
||||
//------------------------------------------------------------------------------
|
||||
$dirname = dirname(__FILE__).'/';
|
||||
$dbconfig_file = 'data/dbconfig.php';
|
||||
if (file_exists($g4['path'].'/'.$dbconfig_file)) {
|
||||
@ -218,9 +218,9 @@ if (file_exists($g4['path'].'/'.$dbconfig_file)) {
|
||||
exit;
|
||||
}
|
||||
|
||||
//-------------------------------------------
|
||||
//==============================================================================
|
||||
// SESSION 설정
|
||||
//-------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
ini_set("session.use_trans_sid", 0); // PHPSESSID를 자동으로 넘기지 않음
|
||||
ini_set("url_rewriter.tags",""); // 링크에 PHPSESSID가 따라다니는것을 무력화함 (해뜰녘님께서 알려주셨습니다.)
|
||||
|
||||
@ -230,6 +230,7 @@ if (isset($SESSION_CACHE_LIMITER))
|
||||
@session_cache_limiter($SESSION_CACHE_LIMITER);
|
||||
else
|
||||
@session_cache_limiter("no-cache, must-revalidate");
|
||||
//==============================================================================
|
||||
|
||||
|
||||
//==============================================================================
|
||||
@ -501,14 +502,21 @@ if ($is_admin != 'super') {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//==============================================================================
|
||||
// 스킨경로
|
||||
$board_skin_path = "";
|
||||
if (isset($board['bo_skin'])) {
|
||||
if (G4_IS_MOBILE)
|
||||
$board_skin_path = $g4['mobile_path'].'/skin/board/'.$board['bo_skin']; // 게시판 스킨 경로
|
||||
else
|
||||
$board_skin_path = $g4['path'].'/skin/board/'.$board['bo_skin']; // 게시판 스킨 경로
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
$skin_path = skin_path();
|
||||
$board_skin_path = $skin_path.'/board/'.$board['bo_skin'];
|
||||
$member_skin_path = $skin_path.'/member/'.$config['cf_member_skin'];
|
||||
$new_skin_path = $skin_path.'/new/'.$config['cf_new_skin'];
|
||||
$search_skin_path = $skin_path.'/search/'.$config['cf_search_skin'];
|
||||
$connect_skin_path = $skin_path.'/connect/'.$config['cf_connect_skin'];
|
||||
$poll_skin_path = $skin_path.'/poll/basic';
|
||||
if (isset($_GET['skin_dir']))
|
||||
$poll_skin_path = $skin_path.'/poll/'.$_GET['skin_dir'];
|
||||
//==============================================================================
|
||||
|
||||
|
||||
// 방문자수의 접속을 남김
|
||||
include_once($g4['bbs_path'].'/visit_insert.inc.php');
|
||||
|
||||
@ -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