12 lines
276 B
PHP
12 lines
276 B
PHP
<?php
|
|
require_once __DIR__ . '/../config.php';
|
|
|
|
if (!isset($_SESSION['user_id']) || $_SESSION['user_type'] !== 'student') {
|
|
header('Location: /index.php');
|
|
exit();
|
|
}
|
|
|
|
// 重定向到学生端首页的操行分标签
|
|
header('Location: /student/dashboard.php');
|
|
exit();
|