AvocadoAmber/AvocadoEdition_Light/index.php

75 lines
2 KiB
PHP
Raw Normal View History

2022-09-17 20:50:50 +09:00
<?php
2024-09-19 21:03:48 +09:00
include_once './_common.php';
2022-09-17 20:50:50 +09:00
define('_INDEX_', true);
2024-09-19 21:03:48 +09:00
if (defined('G5_THEME_PATH') && file_exists(G5_THEME_PATH . "/index.php")) {
include_once G5_THEME_PATH . '/index.php';
return;
}
2022-09-17 20:50:50 +09:00
$enter = get_style('intro_use');
$enter = $enter['cs_value'];
2024-09-19 20:36:07 +09:00
if (!$is_member && !$config['cf_open']) {
// 멤버가 아니고, 사이트 오픈이 되어 있지 않은 경우 로그인 페이지로 점프 시키기
goto_url(G5_BBS_URL . '/login.php');
2022-09-17 20:50:50 +09:00
2024-09-19 20:36:07 +09:00
} else {
if ($config['cf_open']) {
// 사이트 오픈이 되어 있을 경우
if ($is_member) {
// 사이트 오픈이 되어 있고, 로그인이 끝났을 경우
if (G5_IS_MOBILE) {
2024-09-19 21:03:48 +09:00
include_once G5_PATH . '/main.php';
2024-09-19 20:36:07 +09:00
exit;
}
$index_url = "./main.php";
} else {
if ($enter == '') {
// 사이트 오픈이 되어 있고, 로그인이 안되어 있을 경우
if (G5_IS_MOBILE) {
2024-09-19 21:03:48 +09:00
include_once G5_PATH . '/enter.php';
2024-09-19 20:36:07 +09:00
exit;
}
$index_url = "./enter.php";
} else {
if (G5_IS_MOBILE) {
2024-09-19 21:03:48 +09:00
include_once G5_PATH . '/main.php';
2024-09-19 20:36:07 +09:00
exit;
}
$index_url = "./main.php";
}
}
2022-09-17 20:50:50 +09:00
2024-09-19 20:36:07 +09:00
}
2022-09-17 20:50:50 +09:00
2024-09-19 20:36:07 +09:00
if ($index_url == "") {
$index_url = "./enter.php";
}
2022-09-17 20:50:50 +09:00
2024-09-19 21:03:48 +09:00
include_once G5_PATH . '/head.sub.php';
2024-09-19 20:36:07 +09:00
add_stylesheet('<link rel="stylesheet" href="' . G5_CSS_URL . '/index.css">', 0);
2024-09-19 21:03:48 +09:00
include_once G5_PATH . "/menu.php";
2024-09-19 20:36:07 +09:00
?>
<!-- 콘텐츠 시작 -->
<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
2024-09-19 21:03:48 +09:00
include_once G5_PATH . '/tail.sub.php';
2022-09-17 20:50:50 +09:00
}