Commit 72d5d437 authored by Ryan Wade's avatar Ryan Wade

Code Comments

parent 18028cb7
<?php
//Grab site info from the database
include "./fakeSQL.php";
$_GLOBAL["SQL"] = $pages;
$_GLOBAL["Site_Title"] = SQL_GET_SITE_TITLE();
$_GLOBAL["Site_Logo"] = SQL_GET_SITE_LOGO();
//if id is not specified set it to 0;
if(isset($_GET["id"]))
$_GLOBAL["pageId"] = $_GET["id"];
else
$_GLOBAL["pageId"] = 0;
//Check if the id is for a special page (sitemap) otherwise grab specified page info from the database.
switch ($_GLOBAL["pageId"])
{
case -1:
......@@ -39,14 +42,17 @@
<div id="webpage" class="center">
<div id="navigation">
<?php
//Draw the header and navigation menus
include "./header.php";
include "./nav.php";
?>
</div>
<div id="content">
<?php
//Draw the title and breadcrumb
include "./title.php";
include "./breadcrumb.php";
//check if the id is for a special page (sitemap) otherwise render specified page.
switch ($_GLOBAL["pageId"])
{
case -1:
......@@ -59,6 +65,7 @@
?>
</div>
<?php
//Draw Footer
include "./footer.php";
?>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment