<?php

/* source.php, version 1.1a
simple PHP script to display PHP and HTML/Javascript source code
Copyright (C) 2006, Paul Postuma and Ars Informatica
www.ars-informatica.ca

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License (GPL) as published by the Free
Software Foundation; either version 2 of the License, or (at your option) any
later version. 

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details. 

To read the license please visit http://www.gnu.org/copyleft/gpl.html 
*/

if (!@is_null($_GET['file'])) $f = 'content/'.$_GET['file'];

echo '<pre style="background-color:#FFF3CC;padding:10px;padding-top:50px">'.
htmlentities(@file_get_contents($f)).'</pre>

<p>This source code displayed in HTML format using the freeware
<a href="http://www.ars-informatica.ca/article.php?article=35" target="_top">
source.php</a> by Paul Postuma and <a href="http://www.ars-informatica.ca"
target="_top">Ars Informatica</a><a href="http://www.ars-informatica.ca"
target="_top"><img src="resources/code_by_AI.gif"
style="position:absolute;left:35%;top:30px" border=0></a>';

?>

This source code displayed in HTML format using the freeware source.php by Paul Postuma and Ars Informatica