modify codestyle
This commit is contained in:
parent
63592e6094
commit
6b24f04452
14 changed files with 938 additions and 879 deletions
|
|
@ -1,3 +1,2 @@
|
|||
<?php
|
||||
include_once ('./common.php');
|
||||
?>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once (G5_PATH . '/head.php');
|
||||
?>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once (G5_PATH . '/tail.php');
|
||||
?>
|
||||
|
|
@ -1,14 +1,21 @@
|
|||
<?
|
||||
<?php
|
||||
include_once ('./_common.php');
|
||||
|
||||
if ($action == "play") {
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head><meta charset="utf-8"></head>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<iframe id="ytplayer" type="text/html" width="640" height="360" src="https://www.youtube.com/embed?listType=playlist&list=<?=$config['cf_bgm']?>&autoplay=1&disablekb=1&loop=1&playsinline=1&rel=0&origin=<?=G5_URL?>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
|
||||
<iframe id="ytplayer" type="text/html" width="640" height="360"
|
||||
src="https://www.youtube.com/embed?listType=playlist&list=<?= $config['cf_bgm'] ?>&autoplay=1&disablekb=1&loop=1&playsinline=1&rel=0&origin=<?= G5_URL ?>"
|
||||
frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
|
|
|
|||
|
|
@ -7,21 +7,40 @@ error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_W
|
|||
// 보안설정이나 프레임이 달라도 쿠키가 통하도록 설정
|
||||
header('P3P: CP="ALL CURa ADMa DEVa TAIa OUR BUS IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC OTC"');
|
||||
|
||||
if (!defined('G5_SET_TIME_LIMIT')) define('G5_SET_TIME_LIMIT', 0);
|
||||
if (!defined('G5_SET_TIME_LIMIT'))
|
||||
define('G5_SET_TIME_LIMIT', 0);
|
||||
@set_time_limit(G5_SET_TIME_LIMIT);
|
||||
|
||||
//==========================================================================================================================
|
||||
// extract($_GET); 명령으로 인해 page.php?_POST[var1]=data1&_POST[var2]=data2 와 같은 코드가 _POST 변수로 사용되는 것을 막음
|
||||
// 081029 : letsgolee 님께서 도움 주셨습니다.
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
$ext_arr = array ('PHP_SELF', '_ENV', '_GET', '_POST', '_FILES', '_SERVER', '_COOKIE', '_SESSION', '_REQUEST',
|
||||
'HTTP_ENV_VARS', 'HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_POST_FILES', 'HTTP_SERVER_VARS',
|
||||
'HTTP_COOKIE_VARS', 'HTTP_SESSION_VARS', 'GLOBALS');
|
||||
$ext_arr = array(
|
||||
'PHP_SELF',
|
||||
'_ENV',
|
||||
'_GET',
|
||||
'_POST',
|
||||
'_FILES',
|
||||
'_SERVER',
|
||||
'_COOKIE',
|
||||
'_SESSION',
|
||||
'_REQUEST',
|
||||
'HTTP_ENV_VARS',
|
||||
'HTTP_GET_VARS',
|
||||
'HTTP_POST_VARS',
|
||||
'HTTP_POST_FILES',
|
||||
'HTTP_SERVER_VARS',
|
||||
'HTTP_COOKIE_VARS',
|
||||
'HTTP_SESSION_VARS',
|
||||
'GLOBALS'
|
||||
);
|
||||
$ext_cnt = count($ext_arr);
|
||||
for ($i = 0; $i < $ext_cnt; $i++) {
|
||||
// POST, GET 으로 선언된 전역변수가 있다면 unset() 시킴
|
||||
if (isset($_GET[$ext_arr[$i]])) unset($_GET[$ext_arr[$i]]);
|
||||
if (isset($_POST[$ext_arr[$i]])) unset($_POST[$ext_arr[$i]]);
|
||||
if (isset($_GET[$ext_arr[$i]]))
|
||||
unset($_GET[$ext_arr[$i]]);
|
||||
if (isset($_POST[$ext_arr[$i]]))
|
||||
unset($_POST[$ext_arr[$i]]);
|
||||
}
|
||||
//==========================================================================================================================
|
||||
|
||||
|
|
@ -138,18 +157,22 @@ if (file_exists($dbconfig_file)) {
|
|||
$g5['connect_db'] = $connect_db;
|
||||
|
||||
sql_set_charset('utf8', $connect_db);
|
||||
if(defined('G5_MYSQL_SET_MODE') && G5_MYSQL_SET_MODE) sql_query("SET SESSION sql_mode = ''");
|
||||
if (defined('G5_TIMEZONE')) sql_query(" set time_zone = '".G5_TIMEZONE."'");
|
||||
if (defined('G5_MYSQL_SET_MODE') && G5_MYSQL_SET_MODE)
|
||||
sql_query("SET SESSION sql_mode = ''");
|
||||
if (defined('G5_TIMEZONE'))
|
||||
sql_query(" set time_zone = '" . G5_TIMEZONE . "'");
|
||||
} else {
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>오류! <?php echo G5_VERSION ?> 설치하기</title>
|
||||
<link rel="stylesheet" href="install/install.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="ins_bar">
|
||||
|
|
@ -173,6 +196,7 @@ if (file_exists($dbconfig_file)) {
|
|||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<?php
|
||||
|
|
@ -183,7 +207,9 @@ if (file_exists($dbconfig_file)) {
|
|||
//==============================================================================
|
||||
// 디자인 미설치
|
||||
//------------------------------------------------------------------------------
|
||||
if(strstr($url, 'adm')) { define('G5_IS_ADMIN', true); }
|
||||
if (strstr($url, 'adm')) {
|
||||
define('G5_IS_ADMIN', true);
|
||||
}
|
||||
if (!defined('G5_IS_ADMIN')) {
|
||||
$cssconfig_file = G5_DATA_PATH . '/css/_design.config.css';
|
||||
if (!file_exists($cssconfig_file)) {
|
||||
|
|
@ -191,11 +217,13 @@ if(!defined('G5_IS_ADMIN')) {
|
|||
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>오류! <?php echo G5_VERSION ?> 설치하기</title>
|
||||
<link rel="stylesheet" href="<?= G5_URL ?>/install/install.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="ins_bar">
|
||||
<span id="bar_img">AVOCADO EDITION</span>
|
||||
|
|
@ -218,8 +246,9 @@ if(!defined('G5_IS_ADMIN')) {
|
|||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<? exit;
|
||||
<?php exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -420,9 +449,11 @@ if ($_SESSION['ss_mb_id']) { // 로그인중이라면
|
|||
$tmp_key = get_cookie('ck_auto');
|
||||
if ($tmp_key == $key && $tmp_key) {
|
||||
// 차단, 탈퇴가 아니고 메일인증이 사용이면서 인증을 받았다면
|
||||
if ($row['mb_intercept_date'] == '' &&
|
||||
if (
|
||||
$row['mb_intercept_date'] == '' &&
|
||||
$row['mb_leave_date'] == '' &&
|
||||
(!$config['cf_use_email_certify'] || preg_match('/[1-9]/', $row['mb_email_certify'])) ) {
|
||||
(!$config['cf_use_email_certify'] || preg_match('/[1-9]/', $row['mb_email_certify']))
|
||||
) {
|
||||
// 세션에 회원아이디를 저장하여 로그인으로 간주
|
||||
set_session('ss_mb_id', $tmp_mb_id);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
include_once ('./_common.php');
|
||||
if ($is_member & !$config['cf_open']) {
|
||||
goto_url(G5_URL . '/main.php');
|
||||
|
|
@ -7,17 +7,20 @@
|
|||
/*********** Logo Data ************/
|
||||
$logo = get_logo();
|
||||
$logo_data = "";
|
||||
if($logo) $logo_data .= "<img src='{$logo}' />";
|
||||
if ($logo)
|
||||
$logo_data .= "<img src='{$logo}' />";
|
||||
/*********************************/
|
||||
|
||||
/*********** Intro Data ************/
|
||||
$intro = get_style('intro');
|
||||
if($intro['cs_value']) $logo_data = "<img src='{$intro['cs_value']}' alt='' />";
|
||||
if ($intro['cs_value'])
|
||||
$logo_data = "<img src='{$intro['cs_value']}' alt='' />";
|
||||
|
||||
/*********************************/
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
|
|
@ -39,12 +42,15 @@
|
|||
<link rel="shortcut icon" href="<?= $config['cf_favicon'] ?>">
|
||||
<link rel="icon" href="<?= $config['cf_favicon'] ?>">
|
||||
<link media="all" type="text/css" rel="stylesheet" href="<?= G5_CSS_URL ?>/enter.css?v=<?= $config['cf_css_version'] ?>">
|
||||
<link media="all" type="text/css" rel="stylesheet" href="<?=G5_DATA_URL?>/css/_design.config.css?v=<?=$config['cf_css_version']?>" />
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
||||
<link media="all" type="text/css" rel="stylesheet"
|
||||
href="<?= G5_DATA_URL ?>/css/_design.config.css?v=<?= $config['cf_css_version'] ?>" />
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
|
||||
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
||||
<script>
|
||||
if (!parent || parent == this) $('html').addClass('single');
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
|
|
@ -73,4 +79,5 @@ function fn_show_index_menu() {
|
|||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once (G5_PATH . '/head.sub.php');
|
||||
include_once (G5_LIB_PATH . '/latest.lib.php');
|
||||
|
|
@ -14,15 +15,18 @@ $logo = get_logo('pc');
|
|||
$m_logo = get_logo('mo');
|
||||
|
||||
$logo_data = "";
|
||||
if($logo) $logo_data .= "<img src='".$logo."' ";
|
||||
if($m_logo) $logo_data .= "class='only-pc' /><img src='".$m_logo."' class='not-pc'";
|
||||
if($logo_data) $logo_data.= " />";
|
||||
if ($logo)
|
||||
$logo_data .= "<img src='" . $logo . "' ";
|
||||
if ($m_logo)
|
||||
$logo_data .= "class='only-pc' /><img src='" . $m_logo . "' class='not-pc'";
|
||||
if ($logo_data)
|
||||
$logo_data .= " />";
|
||||
/*********************************/
|
||||
|
||||
?>
|
||||
<script> if (parent && parent !== this) parent.show_menu(); </script>
|
||||
|
||||
<? include_once(G5_PATH."/menu.php"); ?>
|
||||
<?php include_once (G5_PATH . "/menu.php"); ?>
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
// 이 파일은 새로운 파일 생성시 반드시 포함되어야 함
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
check_site_auth($is_member);
|
||||
|
||||
$g5_debug['php']['begin_time'] = $begin_time = get_microtime();
|
||||
|
|
@ -8,8 +9,7 @@ $g5_debug['php']['begin_time'] = $begin_time = get_microtime();
|
|||
if (!isset($g5['title'])) {
|
||||
$g5['title'] = $config['cf_title'];
|
||||
$g5_head_title = $g5['title'];
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$g5_head_title = $g5['title']; // 상태바에 표시될 제목
|
||||
$g5_head_title .= " | " . $config['cf_title'];
|
||||
}
|
||||
|
|
@ -20,7 +20,8 @@ $g5['lo_location'] = addslashes($g5['title']);
|
|||
if (!$g5['lo_location'])
|
||||
$g5['lo_location'] = addslashes(clean_xss_tags($_SERVER['REQUEST_URI']));
|
||||
$g5['lo_url'] = addslashes(clean_xss_tags($_SERVER['REQUEST_URI']));
|
||||
if (strstr($g5['lo_url'], '/'.G5_ADMIN_DIR.'/') || $is_admin == 'super') $g5['lo_url'] = '';
|
||||
if (strstr($g5['lo_url'], '/' . G5_ADMIN_DIR . '/') || $is_admin == 'super')
|
||||
$g5['lo_url'] = '';
|
||||
|
||||
$is_page_login = (strstr($_SERVER["REQUEST_URI"], 'login') == "") ? false : true;
|
||||
|
||||
|
|
@ -28,7 +29,9 @@ if (defined('_INDEX_')) {
|
|||
echo "<script>if(parent && parent!=this) location.href='./main.php';</script>";
|
||||
} ?>
|
||||
<!doctype html>
|
||||
<html lang="ko" class='<?= $is_page_login ? "login" : ""?> <?=$_COOKIE['header_close'] == 'close' ? "close-header" : ""?>'>
|
||||
<html lang="ko"
|
||||
class='<?= $is_page_login ? "login" : "" ?> <?= $_COOKIE['header_close'] == 'close' ? "close-header" : "" ?>'>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
|
|
@ -49,9 +52,9 @@ if($config['cf_add_meta'])
|
|||
echo $config['cf_add_meta'] . PHP_EOL;
|
||||
?>
|
||||
|
||||
<? if($config['cf_site_img']) { ?>
|
||||
<?php if ($config['cf_site_img']) { ?>
|
||||
<link rel="image_src" href="<?= $config['cf_site_img'] ?>" />
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
|
||||
<meta name="description" content="<?= $config['cf_site_descript'] ?>" />
|
||||
<meta name="twitter:card" content="summary" />
|
||||
|
|
@ -59,14 +62,16 @@ if($config['cf_add_meta'])
|
|||
<meta name="twitter:title" content="<?php echo $g5_head_title; ?>" />
|
||||
<meta name="twitter:description" content="<?= $config['cf_site_descript'] ?>" />
|
||||
|
||||
<? if($config['cf_site_img']) { ?>
|
||||
<?php if ($config['cf_site_img']) { ?>
|
||||
<meta name="twitter:image" content="<?= $config['cf_site_img'] ?>" />
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
|
||||
<title><?php echo $g5_head_title; ?></title>
|
||||
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Two+Tone|Material+Icons+Round|Material+Icons+Sharp" rel="stylesheet">
|
||||
<?
|
||||
<link
|
||||
href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Two+Tone|Material+Icons+Round|Material+Icons+Sharp"
|
||||
rel="stylesheet">
|
||||
<?php
|
||||
if (defined('G5_IS_ADMIN')) {
|
||||
echo '<link rel="stylesheet" href="' . G5_ADMIN_URL . '/css/admin.css" type="text/css">' . PHP_EOL;
|
||||
echo '<link rel="stylesheet" href="' . G5_ADMIN_URL . '/css/admin.layout.css" type="text/css">' . PHP_EOL;
|
||||
|
|
@ -77,20 +82,20 @@ if (defined('G5_IS_ADMIN')) {
|
|||
}
|
||||
?>
|
||||
|
||||
<? if($config['cf_favicon']) { ?>
|
||||
<?php if ($config['cf_favicon']) { ?>
|
||||
<link rel="shortcut icon" href="<?= $config['cf_favicon'] ?>" type="image/x-icon">
|
||||
<link rel="icon" href="<?= $config['cf_favicon'] ?>" type="image/x-icon">
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
|
||||
<!--[if lte IE 8]>
|
||||
<script src="<?php echo G5_JS_URL ?>/html5.js"></script>
|
||||
<![endif]-->
|
||||
<script>
|
||||
|
||||
<? if($config['cf_use_http']) { ?>
|
||||
<?php if ($config['cf_use_http']) { ?>
|
||||
if (window.location.protocol == "https:")
|
||||
location.href = location.href.replace(/^https:/, 'http:')
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
// 자바스크립트에서 사용하는 전역변수 선언
|
||||
|
|
@ -108,11 +113,11 @@ var g5_admin_url = "<?php echo G5_ADMIN_URL; ?>";
|
|||
<?php } ?>
|
||||
</script>
|
||||
|
||||
<? if(defined('G5_IS_ADMIN')) { ?>
|
||||
<?php if (defined('G5_IS_ADMIN')) { ?>
|
||||
<script src="<?php echo G5_JS_URL ?>/jquery-1.8.3.min.js"></script>
|
||||
<? } else { ?>
|
||||
<?php } else { ?>
|
||||
<script src="<?php echo G5_JS_URL ?>/jquery-1.12.3.min.js"></script>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
|
||||
<script src="<?php echo G5_JS_URL ?>/jquery.cookie.js"></script>
|
||||
<script src="<?php echo G5_JS_URL ?>/jquery.rwdImageMaps.js"></script>
|
||||
|
|
@ -131,10 +136,13 @@ if(!defined('G5_IS_ADMIN'))
|
|||
if (!parent || parent == this) $('html').addClass('single');
|
||||
</script>
|
||||
|
||||
<? if($config['cf_cursor']) { ?>
|
||||
<?php if ($config['cf_cursor']) { ?>
|
||||
<style>
|
||||
* {cursor: url(<?=$config['cf_cursor']?>) 0 0, auto;}
|
||||
* {
|
||||
cursor: url(<?= $config['cf_cursor'] ?>) 0 0, auto;
|
||||
}
|
||||
</style>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,9 @@ if(!$is_member && !$config['cf_open']) {
|
|||
|
||||
}
|
||||
|
||||
if($index_url == "") {$index_url = "./enter.php";}
|
||||
if ($index_url == "") {
|
||||
$index_url = "./enter.php";
|
||||
}
|
||||
|
||||
include_once (G5_PATH . '/head.sub.php');
|
||||
add_stylesheet('<link rel="stylesheet" href="' . G5_CSS_URL . '/index.css">', 0);
|
||||
|
|
@ -49,7 +51,8 @@ if(!$is_member && !$config['cf_open']) {
|
|||
|
||||
<!-- 콘텐츠 시작 -->
|
||||
<div id="wrapper">
|
||||
<iframe src="<?=$index_url?>" name="frm_main" id="main" border="0" frameborder="0" marginheight="0" marginwidth="0" topmargin="0" scrolling="auto" allowTransparency="true"></iframe>
|
||||
<iframe src="<?= $index_url ?>" name="frm_main" id="main" border="0" frameborder="0" marginheight="0" marginwidth="0"
|
||||
topmargin="0" scrolling="auto" allowTransparency="true"></iframe>
|
||||
</div>
|
||||
<script>
|
||||
$(document.body).on("keydown", this, function (event) {
|
||||
|
|
|
|||
|
|
@ -9,12 +9,13 @@ $main_content = get_site_content('site_main');
|
|||
if (!$main_content) {
|
||||
$logo = get_logo();
|
||||
$main_content = "";
|
||||
if($logo) $main_content .= "<img src='{$logo}' alt='' />";
|
||||
if ($logo)
|
||||
$main_content .= "<img src='{$logo}' alt='' />";
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="main_body">
|
||||
<? echo $main_content; ?>
|
||||
<?php echo $main_content; ?>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
|
@ -25,6 +26,6 @@ $(function() {
|
|||
});
|
||||
</script>
|
||||
|
||||
<?
|
||||
<?php
|
||||
include_once (G5_PATH . '/tail.php');
|
||||
?>
|
||||
|
|
@ -1,18 +1,20 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
$header_pos = get_style("use_header");
|
||||
|
||||
$menu_skin = get_style("menu_skin");
|
||||
$menu_skin = $menu_skin['cs_value'];
|
||||
|
||||
if($menu_skin == '') $menu_skin = 'basic';
|
||||
if ($menu_skin == '')
|
||||
$menu_skin = 'basic';
|
||||
$menu_skin_url = G5_URL . "/skin/menu/{$menu_skin}";
|
||||
$menu_skin_path = G5_PATH . "/skin/menu/{$menu_skin}";
|
||||
|
||||
|
||||
if ($header_pos['cs_value'] != 'N') {
|
||||
if($header_pos['cs_value'] == "") $header_pos['cs_value'] = "L";
|
||||
if ($header_pos['cs_value'] == "")
|
||||
$header_pos['cs_value'] = "L";
|
||||
?>
|
||||
<!-- Mobile Menu Control -->
|
||||
<div class="not-pc">
|
||||
|
|
@ -21,19 +23,18 @@ if($header_pos['cs_value'] != 'N') {
|
|||
<span class="material-icons close">close</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- PC 메뉴 영역 -->
|
||||
<header id="header" data-headerpos="<?= $header_pos['cs_value'] ?>">
|
||||
<?
|
||||
<?php
|
||||
@include_once ($menu_skin_path . "/css.config.php");
|
||||
@include_once ($menu_skin_path . "/menu.{$header_pos['cs_value']}.inc.php");
|
||||
?>
|
||||
</header>
|
||||
<!-- // PC 메뉴 영역 -->
|
||||
|
||||
<!-- 모바일 메뉴 영역 (기본) -->
|
||||
<header id="mo_header">
|
||||
<div><div>
|
||||
<div>
|
||||
<div>
|
||||
<ul class="gnbWrap">
|
||||
<li>
|
||||
<a href="<?= G5_URL ?>/main.php" class="change-link">
|
||||
|
|
@ -42,7 +43,7 @@ if($header_pos['cs_value'] != 'N') {
|
|||
</a>
|
||||
</li>
|
||||
<li class="line"></li>
|
||||
<?
|
||||
<?php
|
||||
$menu_sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order*1 asc, me_id asc";
|
||||
$menu = sql_query($menu_sql);
|
||||
|
||||
|
|
@ -57,77 +58,80 @@ if($header_pos['cs_value'] != 'N') {
|
|||
} else {
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $me['me_link']?>" <? if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<? } ?> class="change-link">
|
||||
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
|
||||
class="change-link">
|
||||
<span class="icons"><span><i class="material-icons"><?= $me['me_icon'] ?></i></span></span>
|
||||
<span class="tooltips"><?= $me['me_name'] ?></span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<? }} ?>
|
||||
|
||||
<?php }
|
||||
} ?>
|
||||
<li class="line"></li>
|
||||
<? if(!$is_member) { //멤버가 아닐 경우 ?>
|
||||
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
|
||||
<li>
|
||||
<a href="<?= G5_BBS_URL ?>/login.php">
|
||||
<span class="icons"><span><i class="material-icons">login</i></span></span>
|
||||
<span class="tooltips">LOGIN</span>
|
||||
</a>
|
||||
</li>
|
||||
<? if($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||
<?php if ($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||
<li>
|
||||
<a href="<?= G5_BBS_URL ?>/register.php" class="change-link">
|
||||
<span class="icons"><span><i class="material-icons">person_add</i></span></span>
|
||||
<span class="tooltips">JOIN</span>
|
||||
</a>
|
||||
</li>
|
||||
<? } ?>
|
||||
<? } else { //멤버일 경우 ?>
|
||||
<?php } ?>
|
||||
<?php } else { //멤버일 경우 ?>
|
||||
<li>
|
||||
<a href="<?= G5_BBS_URL ?>/logout.php">
|
||||
<span class="icons"><span><i class="material-icons">logout</i></span></span>
|
||||
<span class="tooltips">LOGOUT</span>
|
||||
</a>
|
||||
</li>
|
||||
<? if($is_admin) { ?>
|
||||
<?php if ($is_admin) { ?>
|
||||
<li>
|
||||
<a href="<?= G5_URL ?>/adm" target="_blank">
|
||||
<span class="icons"><span><i class="material-icons">settings</i></span></span>
|
||||
<span class="tooltips">ADMIN</span>
|
||||
</a>
|
||||
</li>
|
||||
<? } else { ?>
|
||||
<?php } else { ?>
|
||||
<li>
|
||||
<a href="<?= G5_BBS_URL ?>/member_confirm.php?url=register_form.php" class="change-link">
|
||||
<span class="icons"><span><i class="material-icons">settings</i></span></span>
|
||||
<span class="tooltips">정보수정</span>
|
||||
</a>
|
||||
</li>
|
||||
<? } ?>
|
||||
<? } ?>
|
||||
|
||||
<? if(defined('_INDEX_')) { ?>
|
||||
<? if($config['cf_bgm']) { ?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php if (defined('_INDEX_')) { ?>
|
||||
<?php if ($config['cf_bgm']) { ?>
|
||||
<li class="bgm-btn">
|
||||
<div id="site_bgm_box">
|
||||
<iframe src="./bgm.php" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
|
||||
<iframe src="./bgm.php" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0"
|
||||
marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
|
||||
</div>
|
||||
|
||||
<a href="<?=G5_URL?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')" class="control-bgm-play">
|
||||
<a href="<?= G5_URL ?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')"
|
||||
class="control-bgm-play">
|
||||
<span class="icons"><span><i class="material-icons">music_off</i></span></span>
|
||||
<span class="tooltips">BGM ON</span>
|
||||
</a>
|
||||
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop" style="display:none;">
|
||||
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')"
|
||||
class="control-bgm-stop" style="display:none;">
|
||||
<span class="icons"><span><i class="material-icons">music_note</i></span></span>
|
||||
<span class="tooltips">BGM OFF</span>
|
||||
</a>
|
||||
</li>
|
||||
<? } ?>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div></div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!-- // 모바일 메뉴 영역 (기본) -->
|
||||
|
||||
<script type="text/javascript">
|
||||
function fn_control_bgm(state) {
|
||||
if (state == 'play') {
|
||||
|
|
@ -144,5 +148,5 @@ if($header_pos['cs_value'] != 'N') {
|
|||
$('body').toggleClass('open-gnb');
|
||||
}
|
||||
</script>
|
||||
|
||||
<? } ?>
|
||||
<?php
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,19 +1,16 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div id="topCont">
|
||||
<a href="#body" title="위로">
|
||||
<span class="icons"><span><i class="material-icons">arrow_upward</i></span></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<script src="<?php echo G5_JS_URL ?>/swiper.js"></script>
|
||||
<script src="<?php echo G5_JS_URL ?>/_custom.js"></script>
|
||||
|
||||
<?php
|
||||
include_once (G5_PATH . "/tail.sub.php");
|
||||
?>
|
||||
|
|
@ -1,12 +1,10 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
unset($mb);
|
||||
unset($row);
|
||||
unset($row2);
|
||||
?>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<?php echo html_end(); // HTML 마지막 처리 함수 : 반드시 넣어주시기 바랍니다. ?>
|
||||
<?php
|
||||
echo html_end();
|
||||
|
|
|
|||
Loading…
Reference in a new issue