1<?php
2
3function pathencode($path) {
4	return str_replace(',', '%2c', urlencode($path));
5}
6
7$val = "X-Sendfile2: " . pathencode(getcwd() . "/index.txt") . " " . $_GET["range"];
8
9if ($_GET["range2"]) $val .= ", " . pathencode(getcwd() . "/index.txt") . " " . $_GET["range2"];
10
11header($val);
12
13?>