$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp'; // add translations $_SERVER['REQUEST_URI'] = 'plugins'; require_once "$docroot/webGui/include/Translations.php"; require_once "$docroot/webGui/include/Helpers.php"; extract(parse_plugin_cfg('dynamix',true)); $valid = ['/var/tmp/','/tmp/plugins/']; $good = false; ?> lang="=strtok($locale,'_')?:'en'?>">
"> "> if ($file = realpath(unscript($_GET['file']??''))) { foreach ($valid as $check) if (strncmp($file,$check,strlen($check))===0) $good = true; if ($good && pathinfo($file)['extension']=='txt') echo Markdown(file_get_contents($file)); } else { echo Markdown("*"._('No release notes available')."!*"); } ?>