<HTML>
<HEAD>
<Title>The source _is_ with us!</TITLE>
</HEAD>
<?
/*
* * This program is free software; you can redistribute it and/or modify
* * it under the terms of the GNU General Public License 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 Library General Public License for more details.
* *
* * You should have received a copy of the GNU General Public License
* * along with this program; if not, write to the Free Software
* * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* */
/* This is an easy php-script to show the content of a file.
* * It is intendet to ba used with sourcefiles HTMLed to
* * src.c.html for example. U can use libformat for the
* * conversion task.
* *
* * (C) Kristian Mueller 2004-06-06 <- what a date
* *
* */
$chdir = dir("./");
echo "<TABLE border=\"1px\" cellspacing=\"5px\" cellpadding=\"0px\" bgcolor=\"#F5F5F5\">";
echo "<TR bgcolor=\"#CCCCCC\"><TH>original file</TH><TH></TH><TH>View highlighted file in Browser</TH><TH>Description</TH>";
while ($entry = $chdir->read()){
if (!ereg(".html", $entry)){
$entryHtml = "$entry.html";
echo "<TR>";
echo "<TD><A href=\"$entry\">$entry</A></TD>";
if (!ereg("^[.$|..$]", $entry)){
echo "<TD>⇒</TD>";
echo "<TD><A href=\"$entryHtml\">$entryHtml</A></TD>";
echo "<TD> </TD>";
// echo "$entryHtml ";
} else {
echo "<TD> </TD>";
echo "<TD> </TD>";
echo "<TD> </TD>";
}
echo "</TR>";
}
}
echo "</TABLE>";
?>
<BR>
Gracefully converted by <A href="http://daveb.net/format/">libformat</A>.
</HTML>