first commit 2

This commit is contained in:
hmw1001
2026-06-11 18:47:38 +09:00
parent c768729ce6
commit 6f534e33a6
11095 changed files with 1595758 additions and 0 deletions
@@ -0,0 +1,114 @@
<?php
if (!defined('_GNUBOARD_')) exit;
// 설정 파일 로드
include_once(dirname(__FILE__).'/config.php');
// 자동 로그아웃 시간이 설정되어 있고, 로그인 상태일 때만 출력
if ($is_member && isset($lwd_member_config['auto_logout_minute']) && $lwd_member_config['auto_logout_minute'] > 0) {
$auto_logout_time = $lwd_member_config['auto_logout_minute'] * 60 * 1000; // 밀리초로 변환
?>
<!-- 자동 로그아웃 알림 모달 -->
<div id="relogin-modal" class="relogin-modal"
data-time="<?php echo $auto_logout_time; ?>"
data-logout-url="<?php echo G5_BBS_URL; ?>/logout.php"
data-extend-url="<?php echo G5_URL; ?>/ajax.session_extend.php">
<div class="relogin-content">
<h3>자동 로그아웃 안내</h3>
<p>
장시간 사용이 없어 <span id="relogin-timer">60</span>초 후 자동 로그아웃 됩니다.<br>
로그인을 연장하시겠습니까?
</p>
<div class="relogin-btn-group">
<button type="button" id="btn-extend-login" class="btn-extend">로그인 연장</button>
<button type="button" id="btn-logout-now" class="btn-logout">지금 로그아웃</button>
</div>
</div>
</div>
<style>
.relogin-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 9999;
justify-content: center;
align-items: center;
}
.relogin-modal.active {
display: flex;
}
.relogin-content {
background: #fff;
padding: 30px;
border-radius: 8px;
text-align: center;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
max-width: 400px;
width: 90%;
}
.relogin-content h3 {
margin: 0 0 15px 0;
font-size: 1.2rem;
color: #333;
}
.relogin-content p {
margin-bottom: 25px;
color: #666;
line-height: 1.5;
}
.relogin-content #relogin-timer {
color: #e74c3c;
font-weight: bold;
}
.relogin-btn-group {
display: flex;
gap: 10px;
justify-content: center;
}
.relogin-btn-group button {
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 0.9rem;
transition: background-color 0.2s;
}
.btn-extend {
background: #0056b3;
color: #fff;
}
.btn-extend:hover {
background: #004494;
}
.btn-logout {
background: #f1f3f5;
color: #333;
}
.btn-logout:hover {
background: #e9ecef;
}
</style>
<?php
// JS 파일 로드
add_javascript('<script src="'.G5_THEME_URL.'/skin/member/lwd_member/relogin.js?ver='.G5_SERVER_TIME.'"></script>', 100);
?>
<?php } ?>