fix: ensure server-state.php loads necessary variables

This commit is contained in:
Zack Spear
2025-03-28 14:39:15 -07:00
parent 23861c1219
commit 8596a2dbea

View File

@@ -1,5 +1,6 @@
<?php
$docroot ??= ($_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp');
$var = (array)parse_ini_file('state/var.ini'); // required for state.php - don't remove unless you've refactored the code to work without it
require_once "$docroot/plugins/dynamix.my.servers/include/state.php";
$serverState = new ServerState();