. */ require 'config.php'; require 'common.php'; global $config; $url = Sanatise($_REQUEST['u']); $fname = basename($url); $cmd = $config['svn'] . ' cat --non-interactive ' . '--username=' . $config['username'] . ' ' . '--password=' . $config['password'] . ' ' . escapeshellarg($url); header('Content-Type: ' . GuessMimeType($fname)); header('Content-Disposition: inline; filename="' . $fname . '"'); passthru($cmd); ?>