CODE
<?php
// setup page location
$page = "pages/".$_REQUEST['page'].".php";
// display 404 error page if requested page doesnt exist
if (!file_exists($page)){ $page = "pages/404.php"; }
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>PNGResource.com - Your one stop shop for PNG icons</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="pngstyles.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="text" valign="top"><img src="PNGResource.gif" width="545" height="96"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="3" cellspacing="0" class="table">
<tr>
<td class="menu"><a class="menulink" href="index.php?page=home">[home]</a>
<a class="menulink" href="index.php?page=upload">[upload]</a>
<a class="menulink" href="index.php?page=browse">[browse all pngs]</a>
<a class="menulink" href="index.php?page=search">[search]</a>
<a class="menulink" href="index.php?page=request">[request a png]</a>
<a class="menulink" href="index.php?page=downloads">[downloads]</a>
<a class="menulink" href="index.php?page=links">[links]</a>
<a class="menulink" href="index.php?page=forum">[forum]</a>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td class="pagetitle" valign="top">something like site stats goes here...?</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="2">
<tr>
<td width="1%" valign="top"> </td>
<td width="58%" valign="top"><table width="100%" border="0">
<tr>
<td valign="top" class="mainbody">
<?php
//print "You requested page: $page<br>";
// show the requested page
include $page;
?></td>
</tr>
</table></td>
<td width="1%" valign="top"> </td>
<td width="30%" valign="top"><table width="100%" border="0" class="righttable">
<tr>
<td colspan="2" valign="top">Disclaimer Information:</td>
</tr>
<tr>
<td width="3%" valign="top"> </td>
<td width="97%" valign="top">The owners of pngresource.com will not
be held accountable for any png file that is uploaded to the site.
It is the sole issue of the creator to upload the icon and allow people
to download. We will not be held responsible for rips or other misuses
of the png files. If there is a file on the site you feel is ripped or mis-credited, <a href="index.php?page=rip">inform us</a>.</td>
</tr>
</table>
<br>
<table width="100%" border="0" class="righttable">
<tr>
<td height="15" colspan="2" valign="top">Uploading
your files:<br>
</td>
</tr>
<tr>
<td width="3%" valign="top"> </td>
<td width="97%" valign="top">To send us your files you
must include two(2) forms of the PNG file. One in high quality that
will be downloaded and a second to be viewed by visitors to download.
You must agree to the above disclaimer. Follow the link to begin.<br>
[upload]</td>
</tr>
</table>
<br>
</td>
<td width="1%" valign="top"> </td>
</tr>
</table>
</body>
</html>
<!-- testing... -->
// setup page location
$page = "pages/".$_REQUEST['page'].".php";
// display 404 error page if requested page doesnt exist
if (!file_exists($page)){ $page = "pages/404.php"; }
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>PNGResource.com - Your one stop shop for PNG icons</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="pngstyles.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="text" valign="top"><img src="PNGResource.gif" width="545" height="96"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="3" cellspacing="0" class="table">
<tr>
<td class="menu"><a class="menulink" href="index.php?page=home">[home]</a>
<a class="menulink" href="index.php?page=upload">[upload]</a>
<a class="menulink" href="index.php?page=browse">[browse all pngs]</a>
<a class="menulink" href="index.php?page=search">[search]</a>
<a class="menulink" href="index.php?page=request">[request a png]</a>
<a class="menulink" href="index.php?page=downloads">[downloads]</a>
<a class="menulink" href="index.php?page=links">[links]</a>
<a class="menulink" href="index.php?page=forum">[forum]</a>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td class="pagetitle" valign="top">something like site stats goes here...?</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="2">
<tr>
<td width="1%" valign="top"> </td>
<td width="58%" valign="top"><table width="100%" border="0">
<tr>
<td valign="top" class="mainbody">
<?php
//print "You requested page: $page<br>";
// show the requested page
include $page;
?></td>
</tr>
</table></td>
<td width="1%" valign="top"> </td>
<td width="30%" valign="top"><table width="100%" border="0" class="righttable">
<tr>
<td colspan="2" valign="top">Disclaimer Information:</td>
</tr>
<tr>
<td width="3%" valign="top"> </td>
<td width="97%" valign="top">The owners of pngresource.com will not
be held accountable for any png file that is uploaded to the site.
It is the sole issue of the creator to upload the icon and allow people
to download. We will not be held responsible for rips or other misuses
of the png files. If there is a file on the site you feel is ripped or mis-credited, <a href="index.php?page=rip">inform us</a>.</td>
</tr>
</table>
<br>
<table width="100%" border="0" class="righttable">
<tr>
<td height="15" colspan="2" valign="top">Uploading
your files:<br>
</td>
</tr>
<tr>
<td width="3%" valign="top"> </td>
<td width="97%" valign="top">To send us your files you
must include two(2) forms of the PNG file. One in high quality that
will be downloaded and a second to be viewed by visitors to download.
You must agree to the above disclaimer. Follow the link to begin.<br>
[upload]</td>
</tr>
</table>
<br>
</td>
<td width="1%" valign="top"> </td>
</tr>
</table>
</body>
</html>
<!-- testing... -->