<html> <?php extract($HTTP_GET_VARS); extract($HTTP_POST_VARS); /* Credits to http://www.cgixp.tk and http://us3.php.net/show_source for info leading to this page creation */ ?> <head> <title>PHP Source Viewer</title> <style type="text/css"> TD { FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Verdana } </style> </head> <body> <?php $size=filesize($file);//for the file size $file_size = round($size / 1024 * 100) / 100 . "Kb"; echo"<center><FONT SIZE=2 face=arial>Viewing <B>$file</B> Filesize: <B>$file_size</B></FONT><table width=94% border=1 bordercolor=#AFC6DB cellspacing=0><tr><td>"; $po=show_source($file); // This is a php function to show the source code of a php file in highlighted text
?> </body></html>
|