diff --git a/api/src/unraid-api/unraid-file-modifier/modifications/__fixtures__/local/DefaultPageLayout.php b/api/src/unraid-api/unraid-file-modifier/modifications/__fixtures__/local/DefaultPageLayout.php new file mode 100644 index 000000000..6cb750a5c --- /dev/null +++ b/api/src/unraid-api/unraid-file-modifier/modifications/__fixtures__/local/DefaultPageLayout.php @@ -0,0 +1,1225 @@ + + +$display['font'] = filter_var($_COOKIE['fontSize'] ?? $display['font'] ?? '',FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); +$theme = strtok($display['theme'],'-'); +$header = $display['header']; +$backgnd = $display['background']; +$themes1 = in_array($theme,['black','white']); +$themes2 = in_array($theme,['gray','azure']); +$config = "/boot/config"; +$entity = $notify['entity'] & 1 == 1; +$alerts = '/tmp/plugins/my_alerts.txt'; + +// adjust the text color in docker log window +$fgcolor = in_array($theme,['white','azure']) ? '#1c1c1c' : '#f2f2f2'; +exec("sed -ri 's/^\.logLine\{color:#......;/.logLine{color:$fgcolor;/' $docroot/plugins/dynamix.docker.manager/log.htm >/dev/null &"); + +function annotate($text) {echo "\n\n";} +?> + +lang="=strtok($locale,'_')?:'en'?>"> +
+