require_once "$docroot/plugins/dynamix/include/ThemeHelper.php"; $themeHelper = new ThemeHelper($display['theme'], $display['width']); $theme = $themeHelper->getThemeName(); // keep $theme, $themes1, $themes2 vars for plugin backwards compatibility for the time being $themes1 = $themeHelper->isTopNavTheme(); $themes2 = $themeHelper->isSidebarTheme(); $themeHtmlClass = $themeHelper->getThemeHtmlClass(); $themeHelper->updateDockerLogColor($docroot); $display['font'] = filter_var($_COOKIE['fontSize'] ?? $display['font'] ?? '',FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); $header = $display['header']; // keep $header, $backgnd vars for plugin backwards compatibility for the time being $backgnd = $display['background']; $config = "/boot/config"; $entity = $notify['entity'] & 1 == 1; $alerts = '/tmp/plugins/my_alerts.txt'; $wlan0 = file_exists('/sys/class/net/wlan0'); $nchan = ['webGui/nchan/notify_poller','webGui/nchan/session_check']; if ($wlan0) $nchan[] = 'webGui/nchan/wlan0'; $safemode = _var($var,'safeMode')=='yes'; $banner = "$config/plugins/dynamix/banner.png"; $notes = '/var/tmp/unRAIDServer.txt'; if (!file_exists($notes)) file_put_contents($notes,shell_exec("$docroot/plugins/dynamix.plugin.manager/scripts/plugin changes $docroot/plugins/unRAIDServer/unRAIDServer.plg")); $taskPages = find_pages('Tasks'); $buttonPages = find_pages('Buttons'); function annotate($text) {echo "\n\n";} ?> lang="=strtok($locale,'_')?:'en'?>" class="= $themeHtmlClass ?>">