view normal
daynotes.beloitopia.com/files/_cat.php
<? /* _cat.php :: PHP Self Source Display Include File */
$file_name = $_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];
if (($_GET['src'])=='true') {
echo "<span style=\"position:absolute; top:0; right: 0; margin-right:20px\"><a href=http://" . $file_name . ">view normal</a></span>\n\n";
echo "<tt><h2>" . $file_name . "</h2></tt>\n\n";
echo "<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td height=2px bgcolor=#990000></td></tr></table>\n\n";
echo "<pre>\n\n" . htmlentities(file_get_contents($_SERVER['SCRIPT_FILENAME'])) . "\n</pre>";
exit;
}
else
{ echo "\n<span style=\"position:absolute; top:0; right: 0; margin-right:20px\"><a href=http://" . $file_name . "?src=true>view source</a></span>\n";
} ?>