- if (substr($access, -3, 3) == "log") {
- header("Content-Type: text/plain");
- } elseif (substr($access, -3, 3) == ".gz") {
- header("Content-Type: text/plain");
+ if (substr($access, -3, 3) == 'log') {
+ // Output header
+ sendHeader('Content-Type: text/plain');
+ } elseif (substr($access, -3, 3) == '.gz') {
+ // @TODO Fix content-type here
+ sendHeader('Content-Type: text/plain');
+ } elseif (substr($access, -3, 3) == '.bz2') {
+ // @TODO Fix content-type here
+ sendHeader('Content-Type: text/plain');