Added a file viewer.
This commit is contained in:
7
subsites/projects/view.php
Normal file
7
subsites/projects/view.php
Normal 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);
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user