#!/usr/bin/php -q $docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp'; require_once "$docroot/webGui/include/Helpers.php"; extract(parse_plugin_cfg('dynamix',true)); // add translations $_SERVER['REQUEST_URI'] = 'dashboard'; $login_locale = $display['locale']; require_once "$docroot/webGui/include/Translations.php"; $boot = "/boot/config/plugins/dynamix"; $file = $argv[1]; $exist = is_file("$boot/$file"); $cmodel = $exist ? file_get_contents("$boot/$file") : ''; $style = [""; $script = [""; $html = ["