一、删除/files/var/www/html/home.php的2-6行内容:
session_start();
if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] !== true) {
header("Location: index.php");
exit();
}
二、删除/var/www/html/index.php内所有内容,将以下内容加进去,保存:
<?php
// 直接跳转到home.php
header("Location: home.php");
exit; // 确保跳转后停止执行后续代码
?>