mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 17:20:04 -06:00
fix: add ServerState dependency to login page
Prevents PHP fatal error
This commit is contained in:
@@ -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)])) {
|
||||
|
||||
Reference in New Issue
Block a user