Added a file viewer.

This commit is contained in:
Niels Serup 2012-01-13 22:24:39 +01:00
parent e4caf2c340
commit bba6a35228
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<?php
header('content-type: text/plain; charset=utf-8');
$fn = $_GET['src'];
$f = fopen($fn, 'r');
echo fread($f, filesize($fn));
fclose($f);
?>