$encScript = htmlspecialchars( $_SERVER['SCRIPT_NAME'] );
echo "<html><body>
<h1>File not found</h1>
-<p>Although this PHP script ($encScript) exists, the file requested for output
+<p>Although this PHP script ($encScript) exists, the file requested for output
($encFile) does not.</p>
</body></html>
";
// Cancel output buffering and gzipping if set
wfResetOutputBuffers();
-
+
$type = wfGetType( $fname );
if ( $type and $type!="unknown/unknown") {
header("Content-type: $type");
return 'unknown/unknown';
}
else {
- $magic=& MimeMagic::singleton();
+ $magic = MimeMagic::singleton();
return $magic->guessMimeType($filename); //full fancy mime detection
}
}
-
-