2000-04-28 04:12:18 +00:00
|
|
|
<? // Preamble
|
2000-05-08 02:39:55 +00:00
|
|
|
$siteName = "The QuakeForge Project";
|
2007-03-09 17:16:17 +00:00
|
|
|
$columns = 'content';
|
2007-03-07 23:53:02 +00:00
|
|
|
define ('siteHome', "/home/groups/q/qu/quake/htdocs");
|
2000-05-08 02:39:55 +00:00
|
|
|
|
2007-03-22 05:54:08 +00:00
|
|
|
require siteHome . "/parts/library.inc"; // Load function library
|
2000-05-10 22:38:21 +00:00
|
|
|
if ($need) {
|
|
|
|
need ($need);
|
|
|
|
unset ($need);
|
|
|
|
}
|
2007-03-09 17:16:17 +00:00
|
|
|
|
2007-03-22 05:54:08 +00:00
|
|
|
require siteHome . "/parts/head.inc"; // Load the HEAD and open BODY
|
|
|
|
require siteHome . "/parts/topstrip.inc"; // Display top strip
|
|
|
|
require siteHome . "/parts/titletable.inc"; // Display main title w/ logos
|
|
|
|
require siteHome . "/parts/menu.inc"; // Load up the menu
|
2007-03-09 17:16:17 +00:00
|
|
|
|
|
|
|
$contentClass = '';
|
|
|
|
if ($modules && $modules = explode (" ", $modules)) {
|
|
|
|
|
|
|
|
$columns .= ' features';
|
|
|
|
$contentClass = 'class="narrow"';
|
|
|
|
|
|
|
|
echo '<DIV id="features">';
|
|
|
|
for ($i = 0; $i < count ($modules); $i++) {
|
2007-03-22 05:54:08 +00:00
|
|
|
include siteHome . "/parts/" . $modules[$i] . ".inc";
|
2007-03-09 17:16:17 +00:00
|
|
|
}
|
|
|
|
echo '</DIV>';
|
|
|
|
}
|
|
|
|
|
|
|
|
echo '<SCRIPT type="text/javascript">columnIDs = new Array (';
|
|
|
|
$columns = explode (" ", $columns);
|
|
|
|
$i = count ($columns);
|
|
|
|
do {
|
|
|
|
echo "'" . $columns[$i-1] . "'";
|
|
|
|
if (--$i) {
|
|
|
|
echo ", ";
|
|
|
|
}
|
|
|
|
} while ($i);
|
|
|
|
echo ');</SCRIPT>';
|
|
|
|
|
2000-04-28 04:12:18 +00:00
|
|
|
?>
|
2007-03-09 17:16:17 +00:00
|
|
|
<DIV <?=$contentClass?> id="content"><!-- Content Start -->
|
|
|
|
<?
|
2007-03-22 05:54:08 +00:00
|
|
|
require siteHome . "/parts/topmain.inc"; // insert page title
|
2007-03-18 04:34:44 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
This is cool. We add the postamble to a function in the
|
|
|
|
preamble and register it as a shutdown function, so the
|
|
|
|
postamble doesn't have to be included from pages. :)
|
|
|
|
*/
|
|
|
|
function postamble ()
|
|
|
|
{
|
2007-03-22 05:54:08 +00:00
|
|
|
include siteHome . "/parts/postamble.inc"; // heehee
|
2007-03-18 04:34:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
register_shutdown_function (postamble);
|
2007-03-09 17:16:17 +00:00
|
|
|
?>
|