2022-04-27 16:59:31 +00:00
|
|
|
<?php // Preamble
|
2000-05-08 02:39:55 +00:00
|
|
|
$siteName = "The QuakeForge Project";
|
2007-03-09 17:16:17 +00:00
|
|
|
$columns = 'content';
|
2011-02-12 05:20:30 +00:00
|
|
|
define ('siteHome', "/home/project-web/quake/htdocs");
|
2000-05-08 02:39:55 +00:00
|
|
|
|
2018-02-21 06:02:28 +00:00
|
|
|
// PHP is complaining about date stamps now...
|
|
|
|
date_default_timezone_set ("UTC");
|
|
|
|
|
2007-03-22 05:54:08 +00:00
|
|
|
require siteHome . "/parts/library.inc"; // Load function library
|
2022-04-27 16:59:31 +00:00
|
|
|
if (isset($need) && $need) {
|
2000-05-10 22:38:21 +00:00
|
|
|
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 = '';
|
2022-04-27 16:59:31 +00:00
|
|
|
if (isset ($modules) && $modules && $modules = explode (" ", $modules)) {
|
2007-03-09 17:16:17 +00:00
|
|
|
|
|
|
|
$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 -->
|
2022-04-27 16:59:31 +00:00
|
|
|
<?php
|
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
|
|
|
}
|
|
|
|
|
2022-04-27 16:59:31 +00:00
|
|
|
register_shutdown_function ('postamble');
|
2011-02-12 05:20:30 +00:00
|
|
|
?>
|