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');
|
||||
?>
|
||||
include_once ('./common.php');
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G5_PATH.'/head.php');
|
||||
?>
|
||||
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');
|
||||
?>
|
||||
include_once (G5_PATH . '/tail.php');
|
||||
|
|
|
|||
|
|
@ -1,14 +1,21 @@
|
|||
<?
|
||||
include_once('./_common.php');
|
||||
<?php
|
||||
include_once ('./_common.php');
|
||||
|
||||
if($action == "play") {
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
if ($action == "play") {
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
|
||||
<? } ?>
|
||||
<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>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<?php } ?>
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -11,8 +11,8 @@ define('G5_GNUBOARD_VER', '2.2.2');
|
|||
define('_GNUBOARD_', true);
|
||||
|
||||
if (PHP_VERSION >= '5.1.0') {
|
||||
//if (function_exists("date_default_timezone_set")) date_default_timezone_set("Asia/Seoul");
|
||||
date_default_timezone_set("Asia/Seoul");
|
||||
//if (function_exists("date_default_timezone_set")) date_default_timezone_set("Asia/Seoul");
|
||||
date_default_timezone_set("Asia/Seoul");
|
||||
}
|
||||
|
||||
/********************
|
||||
|
|
@ -33,87 +33,87 @@ define('G5_HTTPS_DOMAIN', '');
|
|||
www.sir.kr 과 sir.kr 도메인은 서로 다른 도메인으로 인식합니다. 쿠키를 공유하려면 .sir.kr 과 같이 입력하세요.
|
||||
이곳에 입력이 없다면 www 붙은 도메인과 그렇지 않은 도메인은 쿠키를 공유하지 않으므로 로그인이 풀릴 수 있습니다.
|
||||
*/
|
||||
define('G5_COOKIE_DOMAIN', '');
|
||||
define('G5_COOKIE_DOMAIN', '');
|
||||
|
||||
define('G5_DBCONFIG_FILE', 'dbconfig.php');
|
||||
define('G5_DBCONFIG_FILE', 'dbconfig.php');
|
||||
|
||||
define('G5_ADMIN_DIR', 'adm');
|
||||
define('G5_BBS_DIR', 'bbs');
|
||||
define('G5_CSS_DIR', 'css');
|
||||
define('G5_DATA_DIR', 'data');
|
||||
define('G5_EXTEND_DIR', 'extend');
|
||||
define('G5_IMG_DIR', 'img');
|
||||
define('G5_JS_DIR', 'js');
|
||||
define('G5_LIB_DIR', 'lib');
|
||||
define('G5_PLUGIN_DIR', 'plugin');
|
||||
define('G5_SKIN_DIR', 'skin');
|
||||
define('G5_CAPTCHA_DIR', 'kcaptcha');
|
||||
define('G5_EDITOR_DIR', 'editor');
|
||||
define('G5_MOBILE_DIR', 'mobile');
|
||||
define('G5_OKNAME_DIR', 'okname');
|
||||
define('G5_ADMIN_DIR', 'adm');
|
||||
define('G5_BBS_DIR', 'bbs');
|
||||
define('G5_CSS_DIR', 'css');
|
||||
define('G5_DATA_DIR', 'data');
|
||||
define('G5_EXTEND_DIR', 'extend');
|
||||
define('G5_IMG_DIR', 'img');
|
||||
define('G5_JS_DIR', 'js');
|
||||
define('G5_LIB_DIR', 'lib');
|
||||
define('G5_PLUGIN_DIR', 'plugin');
|
||||
define('G5_SKIN_DIR', 'skin');
|
||||
define('G5_CAPTCHA_DIR', 'kcaptcha');
|
||||
define('G5_EDITOR_DIR', 'editor');
|
||||
define('G5_MOBILE_DIR', 'mobile');
|
||||
define('G5_OKNAME_DIR', 'okname');
|
||||
|
||||
define('G5_KCPCERT_DIR', 'kcpcert');
|
||||
define('G5_LGXPAY_DIR', 'lgxpay');
|
||||
define('G5_KCPCERT_DIR', 'kcpcert');
|
||||
define('G5_LGXPAY_DIR', 'lgxpay');
|
||||
|
||||
define('G5_SNS_DIR', 'sns');
|
||||
define('G5_SYNDI_DIR', 'syndi');
|
||||
define('G5_PHPMAILER_DIR', 'PHPMailer');
|
||||
define('G5_SESSION_DIR', 'session');
|
||||
define('G5_THEME_DIR', 'theme');
|
||||
define('G5_SNS_DIR', 'sns');
|
||||
define('G5_SYNDI_DIR', 'syndi');
|
||||
define('G5_PHPMAILER_DIR', 'PHPMailer');
|
||||
define('G5_SESSION_DIR', 'session');
|
||||
define('G5_THEME_DIR', 'theme');
|
||||
|
||||
// URL 은 브라우저상에서의 경로 (도메인으로 부터의)
|
||||
if (G5_DOMAIN) {
|
||||
define('G5_URL', G5_DOMAIN);
|
||||
define('G5_URL', G5_DOMAIN);
|
||||
} else {
|
||||
if (isset($g5_path['url']))
|
||||
define('G5_URL', $g5_path['url']);
|
||||
else
|
||||
define('G5_URL', '');
|
||||
if (isset($g5_path['url']))
|
||||
define('G5_URL', $g5_path['url']);
|
||||
else
|
||||
define('G5_URL', '');
|
||||
}
|
||||
|
||||
if (isset($g5_path['path'])) {
|
||||
define('G5_PATH', $g5_path['path']);
|
||||
define('G5_PATH', $g5_path['path']);
|
||||
} else {
|
||||
define('G5_PATH', '');
|
||||
define('G5_PATH', '');
|
||||
}
|
||||
|
||||
define('G5_ADMIN_URL', G5_URL.'/'.G5_ADMIN_DIR);
|
||||
define('G5_BBS_URL', G5_URL.'/'.G5_BBS_DIR);
|
||||
define('G5_CSS_URL', G5_URL.'/'.G5_CSS_DIR);
|
||||
define('G5_DATA_URL', G5_URL.'/'.G5_DATA_DIR);
|
||||
define('G5_IMG_URL', G5_URL.'/'.G5_IMG_DIR);
|
||||
define('G5_JS_URL', G5_URL.'/'.G5_JS_DIR);
|
||||
define('G5_SKIN_URL', G5_URL.'/'.G5_SKIN_DIR);
|
||||
define('G5_PLUGIN_URL', G5_URL.'/'.G5_PLUGIN_DIR);
|
||||
define('G5_CAPTCHA_URL', G5_PLUGIN_URL.'/'.G5_CAPTCHA_DIR);
|
||||
define('G5_EDITOR_URL', G5_PLUGIN_URL.'/'.G5_EDITOR_DIR);
|
||||
define('G5_OKNAME_URL', G5_PLUGIN_URL.'/'.G5_OKNAME_DIR);
|
||||
define('G5_KCPCERT_URL', G5_PLUGIN_URL.'/'.G5_KCPCERT_DIR);
|
||||
define('G5_LGXPAY_URL', G5_PLUGIN_URL.'/'.G5_LGXPAY_DIR);
|
||||
define('G5_SNS_URL', G5_PLUGIN_URL.'/'.G5_SNS_DIR);
|
||||
define('G5_SYNDI_URL', G5_PLUGIN_URL.'/'.G5_SYNDI_DIR);
|
||||
define('G5_MOBILE_URL', G5_URL.'/'.G5_MOBILE_DIR);
|
||||
define('G5_ADMIN_URL', G5_URL . '/' . G5_ADMIN_DIR);
|
||||
define('G5_BBS_URL', G5_URL . '/' . G5_BBS_DIR);
|
||||
define('G5_CSS_URL', G5_URL . '/' . G5_CSS_DIR);
|
||||
define('G5_DATA_URL', G5_URL . '/' . G5_DATA_DIR);
|
||||
define('G5_IMG_URL', G5_URL . '/' . G5_IMG_DIR);
|
||||
define('G5_JS_URL', G5_URL . '/' . G5_JS_DIR);
|
||||
define('G5_SKIN_URL', G5_URL . '/' . G5_SKIN_DIR);
|
||||
define('G5_PLUGIN_URL', G5_URL . '/' . G5_PLUGIN_DIR);
|
||||
define('G5_CAPTCHA_URL', G5_PLUGIN_URL . '/' . G5_CAPTCHA_DIR);
|
||||
define('G5_EDITOR_URL', G5_PLUGIN_URL . '/' . G5_EDITOR_DIR);
|
||||
define('G5_OKNAME_URL', G5_PLUGIN_URL . '/' . G5_OKNAME_DIR);
|
||||
define('G5_KCPCERT_URL', G5_PLUGIN_URL . '/' . G5_KCPCERT_DIR);
|
||||
define('G5_LGXPAY_URL', G5_PLUGIN_URL . '/' . G5_LGXPAY_DIR);
|
||||
define('G5_SNS_URL', G5_PLUGIN_URL . '/' . G5_SNS_DIR);
|
||||
define('G5_SYNDI_URL', G5_PLUGIN_URL . '/' . G5_SYNDI_DIR);
|
||||
define('G5_MOBILE_URL', G5_URL . '/' . G5_MOBILE_DIR);
|
||||
|
||||
// PATH 는 서버상에서의 절대경로
|
||||
define('G5_ADMIN_PATH', G5_PATH.'/'.G5_ADMIN_DIR);
|
||||
define('G5_BBS_PATH', G5_PATH.'/'.G5_BBS_DIR);
|
||||
define('G5_DATA_PATH', G5_PATH.'/'.G5_DATA_DIR);
|
||||
define('G5_EXTEND_PATH', G5_PATH.'/'.G5_EXTEND_DIR);
|
||||
define('G5_LIB_PATH', G5_PATH.'/'.G5_LIB_DIR);
|
||||
define('G5_PLUGIN_PATH', G5_PATH.'/'.G5_PLUGIN_DIR);
|
||||
define('G5_SKIN_PATH', G5_PATH.'/'.G5_SKIN_DIR);
|
||||
define('G5_MOBILE_PATH', G5_PATH.'/'.G5_MOBILE_DIR);
|
||||
define('G5_SESSION_PATH', G5_DATA_PATH.'/'.G5_SESSION_DIR);
|
||||
define('G5_CAPTCHA_PATH', G5_PLUGIN_PATH.'/'.G5_CAPTCHA_DIR);
|
||||
define('G5_EDITOR_PATH', G5_PLUGIN_PATH.'/'.G5_EDITOR_DIR);
|
||||
define('G5_OKNAME_PATH', G5_PLUGIN_PATH.'/'.G5_OKNAME_DIR);
|
||||
define('G5_ADMIN_PATH', G5_PATH . '/' . G5_ADMIN_DIR);
|
||||
define('G5_BBS_PATH', G5_PATH . '/' . G5_BBS_DIR);
|
||||
define('G5_DATA_PATH', G5_PATH . '/' . G5_DATA_DIR);
|
||||
define('G5_EXTEND_PATH', G5_PATH . '/' . G5_EXTEND_DIR);
|
||||
define('G5_LIB_PATH', G5_PATH . '/' . G5_LIB_DIR);
|
||||
define('G5_PLUGIN_PATH', G5_PATH . '/' . G5_PLUGIN_DIR);
|
||||
define('G5_SKIN_PATH', G5_PATH . '/' . G5_SKIN_DIR);
|
||||
define('G5_MOBILE_PATH', G5_PATH . '/' . G5_MOBILE_DIR);
|
||||
define('G5_SESSION_PATH', G5_DATA_PATH . '/' . G5_SESSION_DIR);
|
||||
define('G5_CAPTCHA_PATH', G5_PLUGIN_PATH . '/' . G5_CAPTCHA_DIR);
|
||||
define('G5_EDITOR_PATH', G5_PLUGIN_PATH . '/' . G5_EDITOR_DIR);
|
||||
define('G5_OKNAME_PATH', G5_PLUGIN_PATH . '/' . G5_OKNAME_DIR);
|
||||
|
||||
define('G5_KCPCERT_PATH', G5_PLUGIN_PATH.'/'.G5_KCPCERT_DIR);
|
||||
define('G5_LGXPAY_PATH', G5_PLUGIN_PATH.'/'.G5_LGXPAY_DIR);
|
||||
define('G5_KCPCERT_PATH', G5_PLUGIN_PATH . '/' . G5_KCPCERT_DIR);
|
||||
define('G5_LGXPAY_PATH', G5_PLUGIN_PATH . '/' . G5_LGXPAY_DIR);
|
||||
|
||||
define('G5_SNS_PATH', G5_PLUGIN_PATH.'/'.G5_SNS_DIR);
|
||||
define('G5_SYNDI_PATH', G5_PLUGIN_PATH.'/'.G5_SYNDI_DIR);
|
||||
define('G5_PHPMAILER_PATH', G5_PLUGIN_PATH.'/'.G5_PHPMAILER_DIR);
|
||||
define('G5_SNS_PATH', G5_PLUGIN_PATH . '/' . G5_SNS_DIR);
|
||||
define('G5_SYNDI_PATH', G5_PLUGIN_PATH . '/' . G5_SYNDI_DIR);
|
||||
define('G5_PHPMAILER_PATH', G5_PLUGIN_PATH . '/' . G5_PHPMAILER_DIR);
|
||||
//==============================================================================
|
||||
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ define('G5_PHPMAILER_PATH', G5_PLUGIN_PATH.'/'.G5_PHPMAILER_DIR);
|
|||
define('G5_SET_DEVICE', 'both');
|
||||
|
||||
define('G5_USE_MOBILE', true); // 모바일 홈페이지를 사용하지 않을 경우 false 로 설정
|
||||
define('G5_USE_CACHE', false); // 최신글등에 cache 기능 사용 여부
|
||||
define('G5_USE_CACHE', false); // 최신글등에 cache 기능 사용 여부
|
||||
|
||||
|
||||
/********************
|
||||
|
|
@ -136,30 +136,30 @@ define('G5_USE_CACHE', false); // 최신글등에 cache 기능 사용 여부
|
|||
// 하루는 86400 초입니다. 1시간은 3600초
|
||||
// 6시간이 빠른 경우 time() + (3600 * 6);
|
||||
// 6시간이 느린 경우 time() - (3600 * 6);
|
||||
define('G5_SERVER_TIME', time());
|
||||
define('G5_TIME_YMDHIS', date('Y-m-d H:i:s', G5_SERVER_TIME));
|
||||
define('G5_TIME_YMD', substr(G5_TIME_YMDHIS, 0, 10));
|
||||
define('G5_TIME_HIS', substr(G5_TIME_YMDHIS, 11, 8));
|
||||
define('G5_SERVER_TIME', time());
|
||||
define('G5_TIME_YMDHIS', date('Y-m-d H:i:s', G5_SERVER_TIME));
|
||||
define('G5_TIME_YMD', substr(G5_TIME_YMDHIS, 0, 10));
|
||||
define('G5_TIME_HIS', substr(G5_TIME_YMDHIS, 11, 8));
|
||||
|
||||
// 입력값 검사 상수 (숫자를 변경하시면 안됩니다.)
|
||||
define('G5_ALPHAUPPER', 1); // 영대문자
|
||||
define('G5_ALPHALOWER', 2); // 영소문자
|
||||
define('G5_ALPHABETIC', 4); // 영대,소문자
|
||||
define('G5_NUMERIC', 8); // 숫자
|
||||
define('G5_HANGUL', 16); // 한글
|
||||
define('G5_SPACE', 32); // 공백
|
||||
define('G5_SPECIAL', 64); // 특수문자
|
||||
define('G5_ALPHAUPPER', 1); // 영대문자
|
||||
define('G5_ALPHALOWER', 2); // 영소문자
|
||||
define('G5_ALPHABETIC', 4); // 영대,소문자
|
||||
define('G5_NUMERIC', 8); // 숫자
|
||||
define('G5_HANGUL', 16); // 한글
|
||||
define('G5_SPACE', 32); // 공백
|
||||
define('G5_SPECIAL', 64); // 특수문자
|
||||
|
||||
// 퍼미션
|
||||
define('G5_DIR_PERMISSION', 0755); // 디렉토리 생성시 퍼미션
|
||||
define('G5_DIR_PERMISSION', 0755); // 디렉토리 생성시 퍼미션
|
||||
define('G5_FILE_PERMISSION', 0644); // 파일 생성시 퍼미션
|
||||
|
||||
// 모바일 인지 결정 $_SERVER['HTTP_USER_AGENT']
|
||||
define('G5_MOBILE_AGENT', 'phone|samsung|lgtel|mobile|[^A]skt|nokia|blackberry|android|sony');
|
||||
define('G5_MOBILE_AGENT', 'phone|samsung|lgtel|mobile|[^A]skt|nokia|blackberry|android|sony');
|
||||
|
||||
// SMTP
|
||||
// lib/mailer.lib.php 에서 사용
|
||||
define('G5_SMTP', '127.0.0.1');
|
||||
define('G5_SMTP', '127.0.0.1');
|
||||
define('G5_SMTP_PORT', '25');
|
||||
|
||||
|
||||
|
|
@ -216,9 +216,9 @@ define('G5_VISIT_BROWSCAP_USE', false);
|
|||
*/
|
||||
define('G5_IP_DISPLAY', '\\1.♡.\\3.\\4');
|
||||
|
||||
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') { //https 통신일때 daum 주소 js
|
||||
define('G5_POSTCODE_JS', '<script src="https://spi.maps.daum.net/imap/map_js_init/postcode.v2.js"></script>');
|
||||
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') { //https 통신일때 daum 주소 js
|
||||
define('G5_POSTCODE_JS', '<script src="https://spi.maps.daum.net/imap/map_js_init/postcode.v2.js"></script>');
|
||||
} else { //http 통신일때 daum 주소 js
|
||||
define('G5_POSTCODE_JS', '<script src="http://dmaps.daum.net/map_js_init/postcode.v2.js"></script>');
|
||||
define('G5_POSTCODE_JS', '<script src="http://dmaps.daum.net/map_js_init/postcode.v2.js"></script>');
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,76 +1,83 @@
|
|||
<?
|
||||
include_once('./_common.php');
|
||||
if($is_member & !$config['cf_open']) {
|
||||
goto_url(G5_URL.'/main.php');
|
||||
}
|
||||
<?php
|
||||
include_once ('./_common.php');
|
||||
if ($is_member & !$config['cf_open']) {
|
||||
goto_url(G5_URL . '/main.php');
|
||||
}
|
||||
|
||||
/*********** Logo Data ************/
|
||||
$logo = get_logo();
|
||||
$logo_data = "";
|
||||
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='' />";
|
||||
/*********** Logo Data ************/
|
||||
$logo = get_logo();
|
||||
$logo_data = "";
|
||||
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='' />";
|
||||
|
||||
/*********************************/
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta http-equiv="imagetoolbar" content="no">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta charset="utf-8">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta http-equiv="imagetoolbar" content="no">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<meta name="title" content="<?=$g5['title']?>">
|
||||
<meta name="keywords" content="<?=$config['cf_site_descript']?>">
|
||||
<meta name="description" content="<?=$config['cf_site_descript']?>">
|
||||
<meta name="title" content="<?= $g5['title'] ?>">
|
||||
<meta name="keywords" content="<?= $config['cf_site_descript'] ?>">
|
||||
<meta name="description" content="<?= $config['cf_site_descript'] ?>">
|
||||
|
||||
<meta property="og:title" content="<?=$g5['title']?>">
|
||||
<meta property="og:description" content="<?=$config['cf_site_descript']?>">
|
||||
<meta property="og:url" content="<?=G5_URL?>">
|
||||
<meta property="og:title" content="<?= $g5['title'] ?>">
|
||||
<meta property="og:description" content="<?= $config['cf_site_descript'] ?>">
|
||||
<meta property="og:url" content="<?= G5_URL ?>">
|
||||
|
||||
<title><?=$g5['title']?></title>
|
||||
<title><?= $g5['title'] ?></title>
|
||||
|
||||
<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>
|
||||
<script>
|
||||
if(!parent || parent==this) $('html').addClass('single');
|
||||
</script>
|
||||
<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>
|
||||
<script>
|
||||
if (!parent || parent == this) $('html').addClass('single');
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<div class="enterWrapper">
|
||||
<div class="inner">
|
||||
<div class="index-logo">
|
||||
<a href="./main.php" onclick="fn_show_index_menu();">
|
||||
<?=$logo_data?>
|
||||
<p class="guide"><?=$intro['cs_etc_1']?></p>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="enterWrapper">
|
||||
<div class="inner">
|
||||
<div class="index-logo">
|
||||
<a href="./main.php" onclick="fn_show_index_menu();">
|
||||
<?= $logo_data ?>
|
||||
<p class="guide"><?= $intro['cs_etc_1'] ?></p>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
<script>
|
||||
|
||||
window.onload=function() {
|
||||
$('html').addClass('on')
|
||||
setTimeout(function() { $('html').addClass('active') }, 800);
|
||||
};
|
||||
window.onload = function () {
|
||||
$('html').addClass('on')
|
||||
setTimeout(function () { $('html').addClass('active') }, 800);
|
||||
};
|
||||
|
||||
function fn_show_index_menu() {
|
||||
if(parent && parent !== this) parent.show_menu();
|
||||
}
|
||||
function fn_show_index_menu() {
|
||||
if (parent && parent !== this) parent.show_menu();
|
||||
}
|
||||
|
||||
</script>
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,31 +1,35 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
include_once(G5_LIB_PATH.'/outlogin.lib.php');
|
||||
include_once(G5_LIB_PATH.'/poll.lib.php');
|
||||
include_once(G5_LIB_PATH.'/visit.lib.php');
|
||||
include_once(G5_LIB_PATH.'/connect.lib.php');
|
||||
include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
include_once (G5_PATH . '/head.sub.php');
|
||||
include_once (G5_LIB_PATH . '/latest.lib.php');
|
||||
include_once (G5_LIB_PATH . '/outlogin.lib.php');
|
||||
include_once (G5_LIB_PATH . '/poll.lib.php');
|
||||
include_once (G5_LIB_PATH . '/visit.lib.php');
|
||||
include_once (G5_LIB_PATH . '/connect.lib.php');
|
||||
include_once (G5_LIB_PATH . '/popular.lib.php');
|
||||
|
||||
/*********** Logo Data ************/
|
||||
$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>
|
||||
<script> if (parent && parent !== this) parent.show_menu(); </script>
|
||||
|
||||
<? include_once(G5_PATH."/menu.php"); ?>
|
||||
<?php include_once (G5_PATH . "/menu.php"); ?>
|
||||
|
||||
|
||||
|
||||
<section id="body">
|
||||
<div class="fix-layout">
|
||||
<div class="mid-layout">
|
||||
<div class="fix-layout">
|
||||
<div class="mid-layout">
|
||||
|
|
|
|||
|
|
@ -1,140 +1,148 @@
|
|||
<?php
|
||||
// 이 파일은 새로운 파일 생성시 반드시 포함되어야 함
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
check_site_auth($is_member);
|
||||
|
||||
$g5_debug['php']['begin_time'] = $begin_time = get_microtime();
|
||||
|
||||
if (!isset($g5['title'])) {
|
||||
$g5['title'] = $config['cf_title'];
|
||||
$g5_head_title = $g5['title'];
|
||||
}
|
||||
else {
|
||||
$g5_head_title = $g5['title']; // 상태바에 표시될 제목
|
||||
$g5_head_title .= " | ".$config['cf_title'];
|
||||
$g5['title'] = $config['cf_title'];
|
||||
$g5_head_title = $g5['title'];
|
||||
} else {
|
||||
$g5_head_title = $g5['title']; // 상태바에 표시될 제목
|
||||
$g5_head_title .= " | " . $config['cf_title'];
|
||||
}
|
||||
|
||||
// 현재 접속자
|
||||
// 게시판 제목에 ' 포함되면 오류 발생
|
||||
$g5['lo_location'] = addslashes($g5['title']);
|
||||
if (!$g5['lo_location'])
|
||||
$g5['lo_location'] = addslashes(clean_xss_tags($_SERVER['REQUEST_URI']));
|
||||
$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;
|
||||
|
||||
if (defined('_INDEX_')) {
|
||||
echo "<script>if(parent && parent!=this) location.href='./main.php';</script>";
|
||||
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">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta charset="utf-8">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
|
||||
|
||||
<?php
|
||||
if (G5_IS_MOBILE) {
|
||||
echo '<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">'.PHP_EOL;
|
||||
echo '<meta name="HandheldFriendly" content="true">'.PHP_EOL;
|
||||
echo '<meta name="format-detection" content="telephone=no">'.PHP_EOL;
|
||||
} else {
|
||||
echo '<meta http-equiv="imagetoolbar" content="no">'.PHP_EOL;
|
||||
echo '<meta http-equiv="X-UA-Compatible" content="IE=Edge">'.PHP_EOL;
|
||||
}
|
||||
<?php
|
||||
if (G5_IS_MOBILE) {
|
||||
echo '<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">' . PHP_EOL;
|
||||
echo '<meta name="HandheldFriendly" content="true">' . PHP_EOL;
|
||||
echo '<meta name="format-detection" content="telephone=no">' . PHP_EOL;
|
||||
} else {
|
||||
echo '<meta http-equiv="imagetoolbar" content="no">' . PHP_EOL;
|
||||
echo '<meta http-equiv="X-UA-Compatible" content="IE=Edge">' . PHP_EOL;
|
||||
}
|
||||
|
||||
if($config['cf_add_meta'])
|
||||
echo $config['cf_add_meta'].PHP_EOL;
|
||||
?>
|
||||
if ($config['cf_add_meta'])
|
||||
echo $config['cf_add_meta'] . PHP_EOL;
|
||||
?>
|
||||
|
||||
<? if($config['cf_site_img']) { ?>
|
||||
<link rel="image_src" href="<?=$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" />
|
||||
<meta name="twitter:url" content="<?=G5_URL?>" />
|
||||
<meta name="twitter:title" content="<?php echo $g5_head_title; ?>" />
|
||||
<meta name="twitter:description" content="<?=$config['cf_site_descript']?>" />
|
||||
<meta name="description" content="<?= $config['cf_site_descript'] ?>" />
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:url" content="<?= G5_URL ?>" />
|
||||
<meta name="twitter:title" content="<?php echo $g5_head_title; ?>" />
|
||||
<meta name="twitter:description" content="<?= $config['cf_site_descript'] ?>" />
|
||||
|
||||
<? if($config['cf_site_img']) { ?>
|
||||
<meta name="twitter:image" content="<?=$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>
|
||||
<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">
|
||||
<?
|
||||
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;
|
||||
} else {
|
||||
echo '<link rel="stylesheet" href="'.G5_CSS_URL.'/default.css" type="text/css">'.PHP_EOL;
|
||||
echo '<link rel="stylesheet" href="'.G5_CSS_URL.'/style.css" type="text/css">'.PHP_EOL;
|
||||
echo '<link rel="stylesheet" href="'.G5_DATA_URL.'/css/_design.config.css?v='.$config['cf_css_version'].'" type="text/css" />';
|
||||
}
|
||||
?>
|
||||
<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;
|
||||
} else {
|
||||
echo '<link rel="stylesheet" href="' . G5_CSS_URL . '/default.css" type="text/css">' . PHP_EOL;
|
||||
echo '<link rel="stylesheet" href="' . G5_CSS_URL . '/style.css" type="text/css">' . PHP_EOL;
|
||||
echo '<link rel="stylesheet" href="' . G5_DATA_URL . '/css/_design.config.css?v=' . $config['cf_css_version'] . '" type="text/css" />';
|
||||
}
|
||||
?>
|
||||
|
||||
<? 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 ($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]>
|
||||
<!--[if lte IE 8]>
|
||||
<script src="<?php echo G5_JS_URL ?>/html5.js"></script>
|
||||
<![endif]-->
|
||||
<script>
|
||||
<script>
|
||||
|
||||
<? if($config['cf_use_http']) { ?>
|
||||
if (window.location.protocol == "https:")
|
||||
location.href = location.href.replace(/^https:/, 'http:')
|
||||
<? } ?>
|
||||
<?php if ($config['cf_use_http']) { ?>
|
||||
if (window.location.protocol == "https:")
|
||||
location.href = location.href.replace(/^https:/, 'http:')
|
||||
<?php } ?>
|
||||
|
||||
|
||||
// 자바스크립트에서 사용하는 전역변수 선언
|
||||
var g5_url = "<?php echo G5_URL ?>";
|
||||
var g5_bbs_url = "<?php echo G5_BBS_URL ?>";
|
||||
var g5_is_member = "<?php echo isset($is_member)?$is_member:''; ?>";
|
||||
var g5_is_admin = "<?php echo isset($is_admin)?$is_admin:''; ?>";
|
||||
var g5_is_mobile = "<?php echo G5_IS_MOBILE ?>";
|
||||
var g5_bo_table = "<?php echo isset($bo_table)?$bo_table:''; ?>";
|
||||
var g5_sca = "<?php echo isset($sca)?$sca:''; ?>";
|
||||
var g5_editor = "<?php echo ($config['cf_editor'] && $board['bo_use_dhtml_editor'])?$config['cf_editor']:''; ?>";
|
||||
var g5_cookie_domain = "<?php echo G5_COOKIE_DOMAIN ?>";
|
||||
<?php if(defined('G5_IS_ADMIN')) { ?>
|
||||
var g5_admin_url = "<?php echo G5_ADMIN_URL; ?>";
|
||||
<?php } ?>
|
||||
</script>
|
||||
// 자바스크립트에서 사용하는 전역변수 선언
|
||||
var g5_url = "<?php echo G5_URL ?>";
|
||||
var g5_bbs_url = "<?php echo G5_BBS_URL ?>";
|
||||
var g5_is_member = "<?php echo isset($is_member) ? $is_member : ''; ?>";
|
||||
var g5_is_admin = "<?php echo isset($is_admin) ? $is_admin : ''; ?>";
|
||||
var g5_is_mobile = "<?php echo G5_IS_MOBILE ?>";
|
||||
var g5_bo_table = "<?php echo isset($bo_table) ? $bo_table : ''; ?>";
|
||||
var g5_sca = "<?php echo isset($sca) ? $sca : ''; ?>";
|
||||
var g5_editor = "<?php echo ($config['cf_editor'] && $board['bo_use_dhtml_editor']) ? $config['cf_editor'] : ''; ?>";
|
||||
var g5_cookie_domain = "<?php echo G5_COOKIE_DOMAIN ?>";
|
||||
<?php if (defined('G5_IS_ADMIN')) { ?>
|
||||
var g5_admin_url = "<?php echo G5_ADMIN_URL; ?>";
|
||||
<?php } ?>
|
||||
</script>
|
||||
|
||||
<? if(defined('G5_IS_ADMIN')) { ?>
|
||||
<script src="<?php echo G5_JS_URL ?>/jquery-1.8.3.min.js"></script>
|
||||
<? } else { ?>
|
||||
<script src="<?php echo G5_JS_URL ?>/jquery-1.12.3.min.js"></script>
|
||||
<? } ?>
|
||||
<?php if (defined('G5_IS_ADMIN')) { ?>
|
||||
<script src="<?php echo G5_JS_URL ?>/jquery-1.8.3.min.js"></script>
|
||||
<?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>
|
||||
<script src="<?php echo G5_JS_URL ?>/common.js"></script>
|
||||
<script src="<?php echo G5_JS_URL ?>/wrest.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
||||
<script src="<?php echo G5_JS_URL ?>/jquery.cookie.js"></script>
|
||||
<script src="<?php echo G5_JS_URL ?>/jquery.rwdImageMaps.js"></script>
|
||||
<script src="<?php echo G5_JS_URL ?>/common.js"></script>
|
||||
<script src="<?php echo G5_JS_URL ?>/wrest.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
||||
|
||||
<?php
|
||||
if(G5_IS_MOBILE) {
|
||||
echo '<script src="'.G5_JS_URL.'/modernizr.custom.70111.js"></script>'.PHP_EOL; // overflow scroll 감지
|
||||
}
|
||||
if(!defined('G5_IS_ADMIN'))
|
||||
<?php
|
||||
if (G5_IS_MOBILE) {
|
||||
echo '<script src="' . G5_JS_URL . '/modernizr.custom.70111.js"></script>' . PHP_EOL; // overflow scroll 감지
|
||||
}
|
||||
if (!defined('G5_IS_ADMIN'))
|
||||
echo $config['cf_add_script'];
|
||||
?>
|
||||
?>
|
||||
|
||||
<script>
|
||||
if(!parent || parent==this) $('html').addClass('single');
|
||||
</script>
|
||||
<script>
|
||||
if (!parent || parent == this) $('html').addClass('single');
|
||||
</script>
|
||||
|
||||
<? if($config['cf_cursor']) { ?>
|
||||
<style>
|
||||
* {cursor: url(<?=$config['cf_cursor']?>) 0 0, auto;}
|
||||
</style>
|
||||
<? } ?>
|
||||
<?php if ($config['cf_cursor']) { ?>
|
||||
<style>
|
||||
* {
|
||||
cursor: url(<?= $config['cf_cursor'] ?>) 0 0, auto;
|
||||
}
|
||||
</style>
|
||||
<?php } ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -1,71 +1,74 @@
|
|||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once ('./_common.php');
|
||||
define('_INDEX_', true);
|
||||
|
||||
$enter = get_style('intro_use');
|
||||
$enter = $enter['cs_value'];
|
||||
|
||||
if(!$is_member && !$config['cf_open']) {
|
||||
// 멤버가 아니고, 사이트 오픈이 되어 있지 않은 경우 로그인 페이지로 점프 시키기
|
||||
goto_url(G5_BBS_URL.'/login.php');
|
||||
if (!$is_member && !$config['cf_open']) {
|
||||
// 멤버가 아니고, 사이트 오픈이 되어 있지 않은 경우 로그인 페이지로 점프 시키기
|
||||
goto_url(G5_BBS_URL . '/login.php');
|
||||
|
||||
} else {
|
||||
if($config['cf_open']) {
|
||||
// 사이트 오픈이 되어 있을 경우
|
||||
if($is_member) {
|
||||
// 사이트 오픈이 되어 있고, 로그인이 끝났을 경우
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_PATH.'/main.php');
|
||||
exit;
|
||||
}
|
||||
$index_url = "./main.php";
|
||||
} else {
|
||||
if($enter == '') {
|
||||
// 사이트 오픈이 되어 있고, 로그인이 안되어 있을 경우
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_PATH.'/enter.php');
|
||||
exit;
|
||||
}
|
||||
$index_url = "./enter.php";
|
||||
} else {
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_PATH.'/main.php');
|
||||
exit;
|
||||
}
|
||||
$index_url = "./main.php";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
if ($config['cf_open']) {
|
||||
// 사이트 오픈이 되어 있을 경우
|
||||
if ($is_member) {
|
||||
// 사이트 오픈이 되어 있고, 로그인이 끝났을 경우
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once (G5_PATH . '/main.php');
|
||||
exit;
|
||||
}
|
||||
$index_url = "./main.php";
|
||||
} else {
|
||||
if ($enter == '') {
|
||||
// 사이트 오픈이 되어 있고, 로그인이 안되어 있을 경우
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once (G5_PATH . '/enter.php');
|
||||
exit;
|
||||
}
|
||||
$index_url = "./enter.php";
|
||||
} else {
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once (G5_PATH . '/main.php');
|
||||
exit;
|
||||
}
|
||||
$index_url = "./main.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);
|
||||
if ($index_url == "") {
|
||||
$index_url = "./enter.php";
|
||||
}
|
||||
|
||||
include_once(G5_PATH."/menu.php");
|
||||
?>
|
||||
include_once (G5_PATH . '/head.sub.php');
|
||||
add_stylesheet('<link rel="stylesheet" href="' . G5_CSS_URL . '/index.css">', 0);
|
||||
|
||||
|
||||
<!-- 콘텐츠 시작 -->
|
||||
<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>
|
||||
</div>
|
||||
<script>
|
||||
$(document.body).on("keydown", this, function (event) {
|
||||
if (event.keyCode == 116) {
|
||||
document.getElementById('main').contentDocument.location.reload(true);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
$('#header .change-link').attr('target', 'frm_main');
|
||||
include_once (G5_PATH . "/menu.php");
|
||||
?>
|
||||
|
||||
function show_menu() {
|
||||
$('#header').show();
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
<!-- 콘텐츠 시작 -->
|
||||
<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>
|
||||
</div>
|
||||
<script>
|
||||
$(document.body).on("keydown", this, function (event) {
|
||||
if (event.keyCode == 116) {
|
||||
document.getElementById('main').contentDocument.location.reload(true);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
$('#header .change-link').attr('target', 'frm_main');
|
||||
|
||||
function show_menu() {
|
||||
$('#header').show();
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once (G5_PATH . '/tail.sub.php');
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,30 +1,31 @@
|
|||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once ('./_common.php');
|
||||
define('_MAIN_', true);
|
||||
|
||||
include_once(G5_PATH.'/head.php');
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_CSS_URL.'/main.css">', 0);
|
||||
include_once (G5_PATH . '/head.php');
|
||||
add_stylesheet('<link rel="stylesheet" href="' . G5_CSS_URL . '/main.css">', 0);
|
||||
$main_content = get_site_content('site_main');
|
||||
|
||||
if(!$main_content) {
|
||||
$logo = get_logo();
|
||||
$main_content = "";
|
||||
if($logo) $main_content .= "<img src='{$logo}' alt='' />";
|
||||
if (!$main_content) {
|
||||
$logo = get_logo();
|
||||
$main_content = "";
|
||||
if ($logo)
|
||||
$main_content .= "<img src='{$logo}' alt='' />";
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="main_body">
|
||||
<? echo $main_content; ?>
|
||||
<?php echo $main_content; ?>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
window.onload = function() {
|
||||
$('#body').css('opacity', 1);
|
||||
};
|
||||
});
|
||||
$(function () {
|
||||
window.onload = function () {
|
||||
$('#body').css('opacity', 1);
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
||||
<?
|
||||
include_once(G5_PATH.'/tail.php');
|
||||
?>
|
||||
<?php
|
||||
include_once (G5_PATH . '/tail.php');
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,148 +1,152 @@
|
|||
<?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';
|
||||
$menu_skin_url = G5_URL."/skin/menu/{$menu_skin}";
|
||||
$menu_skin_path = G5_PATH."/skin/menu/{$menu_skin}";
|
||||
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";
|
||||
?>
|
||||
<!-- Mobile Menu Control -->
|
||||
<div class="not-pc">
|
||||
<button type="button" onclick="control_mobile_menu();" class="control-mobile-menu txt-default">
|
||||
<span class="material-icons open">menu</span>
|
||||
<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>
|
||||
<ul class="gnbWrap">
|
||||
<li>
|
||||
<a href="<?= G5_URL ?>/main.php" class="change-link">
|
||||
<span class="icons"><span><i class="material-icons">home</i></span></span>
|
||||
<span class="tooltips">HOME</span>
|
||||
</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);
|
||||
|
||||
if($header_pos['cs_value'] != 'N') {
|
||||
if($header_pos['cs_value'] == "") $header_pos['cs_value'] = "L";
|
||||
?>
|
||||
<!-- Mobile Menu Control -->
|
||||
<div class="not-pc">
|
||||
<button type="button" onclick="control_mobile_menu();" class="control-mobile-menu txt-default">
|
||||
<span class="material-icons open">menu</span>
|
||||
<span class="material-icons close">close</span>
|
||||
</button>
|
||||
</div>
|
||||
for ($i = 0; $me = sql_fetch_array($menu); $i++) {
|
||||
$target = "";
|
||||
if ($me['me_target'] == 'self') {
|
||||
$me['me_target'] = '';
|
||||
}
|
||||
|
||||
<!-- PC 메뉴 영역 -->
|
||||
<header id="header" data-headerpos="<?=$header_pos['cs_value']?>">
|
||||
<?
|
||||
@include_once($menu_skin_path."/css.config.php");
|
||||
@include_once($menu_skin_path."/menu.{$header_pos['cs_value']}.inc.php");
|
||||
?>
|
||||
</header>
|
||||
<!-- // PC 메뉴 영역 -->
|
||||
if ($me['me_name'] == '구분선') {
|
||||
echo "<li class='line'></li>";
|
||||
} else {
|
||||
?>
|
||||
<li>
|
||||
<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>
|
||||
|
||||
<!-- 모바일 메뉴 영역 (기본) -->
|
||||
<header id="mo_header">
|
||||
<div><div>
|
||||
<ul class="gnbWrap">
|
||||
<li>
|
||||
<a href="<?=G5_URL?>/main.php" class="change-link">
|
||||
<span class="icons"><span><i class="material-icons">home</i></span></span>
|
||||
<span class="tooltips">HOME</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="line"></li>
|
||||
<?
|
||||
$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);
|
||||
<?php }
|
||||
} ?>
|
||||
<li class="line"></li>
|
||||
<?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>
|
||||
<?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>
|
||||
<?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>
|
||||
<?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>
|
||||
<?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>
|
||||
<?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>
|
||||
</div>
|
||||
|
||||
for($i=0; $me = sql_fetch_array($menu); $i++) {
|
||||
$target = "";
|
||||
if($me['me_target'] == 'self') {
|
||||
$me['me_target'] = '';
|
||||
}
|
||||
<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;">
|
||||
<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>
|
||||
</header>
|
||||
<!-- // 모바일 메뉴 영역 (기본) -->
|
||||
<script type="text/javascript">
|
||||
function fn_control_bgm(state) {
|
||||
if (state == 'play') {
|
||||
$('.control-bgm-play').hide();
|
||||
$('.control-bgm-stop').show();
|
||||
} else {
|
||||
$('.control-bgm-play').show();
|
||||
$('.control-bgm-stop').hide();
|
||||
}
|
||||
|
||||
if($me['me_name'] == '구분선') {
|
||||
echo "<li class='line'></li>";
|
||||
} else {
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $me['me_link']?>" <? if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<? } ?> 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>
|
||||
|
||||
<? }} ?>
|
||||
|
||||
<li class="line"></li>
|
||||
<? 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) { //회원가입이 가능한 경우 ?>
|
||||
<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 { //멤버일 경우 ?>
|
||||
<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) { ?>
|
||||
<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 { ?>
|
||||
<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']) { ?>
|
||||
<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>
|
||||
</div>
|
||||
|
||||
<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;">
|
||||
<span class="icons"><span><i class="material-icons">music_note</i></span></span>
|
||||
<span class="tooltips">BGM OFF</span>
|
||||
</a>
|
||||
</li>
|
||||
<? } ?>
|
||||
<? } ?>
|
||||
</ul>
|
||||
</div></div>
|
||||
</header>
|
||||
<!-- // 모바일 메뉴 영역 (기본) -->
|
||||
|
||||
<script type="text/javascript">
|
||||
function fn_control_bgm(state) {
|
||||
if(state == 'play') {
|
||||
$('.control-bgm-play').hide();
|
||||
$('.control-bgm-stop').show();
|
||||
} else {
|
||||
$('.control-bgm-play').show();
|
||||
$('.control-bgm-stop').hide();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
function control_mobile_menu() {
|
||||
$('body').toggleClass('open-gnb');
|
||||
}
|
||||
</script>
|
||||
|
||||
<? } ?>
|
||||
return true;
|
||||
}
|
||||
function control_mobile_menu() {
|
||||
$('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>
|
||||
|
||||
</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");
|
||||
?>
|
||||
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