Source Viewer - sourcebrowser.php
< Source Browser
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>Qtopia BlueZ Bluetooth GUI - Source Browser</TITLE>
<?php require("htmlhead.php"); ?>
</HEAD>
<BODY>
<DIV id="Page">
<?php require("header.php"); ?>
<?php require("menu.php"); ?>
<DIV id="Contents">
<H2>Source Browser</H2>
<P>
Below are all the source files that make up this web site.
Feel free to use them if you think they are any good or send <U>constructive</U>
criticisms if you think they are rubbish.
</P>
<?php
if ($handle = opendir('.'))
{
$firstline = true;
while (false !== ($file = readdir($handle)))
{
if (strlen($file) > 4 && substr_compare($file,".php",strlen($file)-4,4,true) == 0)
{
if ($firstline)
{
echo " <H3>PHP Pages & Components</H3><P>";
$firstline = false;
}
echo "<A href=\"sourceviewer.php?file=$file\">$file</A><BR>";
}
}
closedir($handle);
if (!$firstline) echo "</P>";
}
?>
<?php
if ($handle = opendir('.'))
{
$firstline = true;
while (false !== ($file = readdir($handle)))
{
if (strlen($file) > 4 && substr_compare($file,".css",strlen($file)-4,4,true) == 0)
{
if ($firstline)
{
echo " <H3>Stylesheets</H3><P>";
$firstline = false;
}
echo "<A href=\"sourceviewer.php?file=$file\">$file</A><BR>";
}
}
closedir($handle);
if (!$firstline) echo "</P>";
}
?>
<?php
if ($handle = opendir('.'))
{
$firstline = true;
while (false !== ($file = readdir($handle)))
{
if (strlen($file) > 5 && substr_compare($file,".html",strlen($file)-5,5,true) == 0)
{
if ($firstline)
{
echo " <H3>Plain HTML Pages</H3><P>";
$firstline = false;
}
echo "<A href=\"sourceviewer.php?file=$file\">$file</A><BR>";
}
}
closedir($handle);
if (!$firstline) echo "</P>";
}
?>
</DIV>
<?php require("status.php");?>
</DIV>
<?php require("footer.php");?>
</BODY>
</HTML>
\