'/data/logs/tor/server.log', 'tor-bridge' => '/data/logs/tor/bridge.log', 'tor-relay' => '/data/logs/tor/relay.log', 'unbound' => '/data/logs/unbound/unbound.log', 'privoxy' => '/data/logs/privoxy/privoxy.log', 'nginx-access' => '/data/logs/nginx/access.log', 'nginx-error' => '/data/logs/nginx/error.log', 'entrypoint' => '/data/logs/entrypoint.log' ]; $current_log = $_GET['log'] ?? 'tor-server'; $lines = (int)($_GET['lines'] ?? 100); $log_content = ''; if (isset($log_files[$current_log])) { $log_content = getLogTail($log_files[$current_log], $lines); } ?>
File: