mirror of
https://git.code.sf.net/p/quake/website
synced 2024-12-02 17:12:20 +00:00
45 lines
No EOL
1.2 KiB
PHP
45 lines
No EOL
1.2 KiB
PHP
<? // Preamble
|
|
$siteName = "The QuakeForge Project";
|
|
$columns = 'content';
|
|
define ('siteHome', "/home/groups/q/qu/quake/htdocs");
|
|
|
|
require siteHome . "/parts/library.php"; // Load function library
|
|
if ($need) {
|
|
need ($need);
|
|
unset ($need);
|
|
}
|
|
|
|
require siteHome . "/parts/head.php"; // Load the HEAD and open BODY
|
|
require siteHome . "/parts/topstrip.php"; // Display top strip
|
|
require siteHome . "/parts/titletable.php"; // Display main title w/ logos
|
|
require siteHome . "/parts/menu.php"; // Load up the menu
|
|
|
|
$contentClass = '';
|
|
if ($modules && $modules = explode (" ", $modules)) {
|
|
|
|
$columns .= ' features';
|
|
$contentClass = 'class="narrow"';
|
|
|
|
echo '<DIV id="features">';
|
|
for ($i = 0; $i < count ($modules); $i++) {
|
|
include siteHome . "/parts/" . $modules[$i] . ".php";
|
|
}
|
|
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>';
|
|
|
|
?>
|
|
<DIV <?=$contentClass?> id="content"><!-- Content Start -->
|
|
<?
|
|
require siteHome . "/parts/topmain.php"; // insert page title
|
|
?>
|