#!/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'] = ''; $login_locale = $display['locale']; require_once "$docroot/webGui/include/Translations.php"; function write(...$messages){ $com = curl_init(); curl_setopt_array($com,[ CURLOPT_URL => 'http://localhost/pub/feedback?buffer_length=1', CURLOPT_UNIX_SOCKET_PATH => '/var/run/nginx.socket', CURLOPT_POST => 1, CURLOPT_RETURNTRANSFER => true ]); foreach ($messages as $message) { curl_setopt($com, CURLOPT_POSTFIELDS, $message); curl_exec($com); } curl_close($com); } $var = parse_ini_file('state/var.ini'); $unraid = parse_ini_file('/etc/unraid-version'); $keyfile = trim(base64_encode(@file_get_contents($var['regFILE']))); $width = in_array($display['theme'],['azure','gray']) ? '98.4%' : '100%'; $style = [""; $html = ["
"._('NOTE').": "._('Submission of this bug report will automatically send your system diagnostics to Lime Technology').".
"; $html[] = "