fix: add ServerState dependency to login page

Prevents PHP fatal error
This commit is contained in:
ljm42
2025-05-30 13:13:28 -07:00
parent b08c70a5e7
commit 6487377e15

View File

@@ -1,6 +1,8 @@
<?php
// Included in login.php
require_once "$docroot/plugins/dynamix.my.servers/include/state.php";
// Only start a session to check if they have a cookie that looks like our session
$server_name = strtok($_SERVER['HTTP_HOST'], ":");
if (!empty($_COOKIE['unraid_' . md5($server_name)])) {