Initial commit: 교육 프로젝트 배포

This commit is contained in:
송대일
2026-07-01 18:32:42 +09:00
commit be6dccd120
1483 changed files with 5082202 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
$memberId = (string)($_SESSION['member_id'] ?? '');
$authLevel = strtoupper(trim((string)($_SESSION['auth_level'] ?? '')));
if ($memberId === '') {
header('Location: /bbs/login.php');
exit;
}
if (!in_array($authLevel, ['LE10001', 'LE10002'], true)) {
http_response_code(403);
exit('접근 권한이 없습니다.');
}
$currentPage = basename((string)($_SERVER['PHP_SELF'] ?? ''));
$legalOnlyPage = 'legal_edu.php';
if ($authLevel === 'LE10002' && $currentPage !== $legalOnlyPage) {
header('Location: /admin/skin/' . $legalOnlyPage);
exit;
}