Source Viewers
|
|
|
|
<?
$fn = @$_GET['file'];
$x = explode(".", basename($fn));
$ext = strtolower($x[sizeof($x)-1]);
if ($ext != "htm" && $ext != "html")
$src = "";
else
$src = join("", file($fn));
include("highlight.php");
echo "<CODE>",highlight_html($src),"</CODE>";
?>
|
|
|
Usage Example
|
|
|
Rate This Script
|
|
|
|