aboutsummaryrefslogtreecommitdiff
path: root/themes/default/index.php
diff options
context:
space:
mode:
authorthirdid <thirdid@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2010-01-26 22:43:13 -0500
committerthirdid <thirdid@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2010-01-26 22:43:13 -0500
commit0f4a3b1b086b4bfc9217def70f8049f9eeb75672 (patch)
tree08b1fc4317e7fd2f14122b1cf4833bf14f420103 /themes/default/index.php
parent88d5d2af84cde0ce1107551fd2a61455e493b7c8 (diff)
downloadbayonetcms-0f4a3b1b086b4bfc9217def70f8049f9eeb75672.tar.gz
Directory structure changes (may continue for several revisions)
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2.1@466 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'themes/default/index.php')
-rw-r--r--themes/default/index.php61
1 files changed, 61 insertions, 0 deletions
diff --git a/themes/default/index.php b/themes/default/index.php
new file mode 100644
index 0000000..1004e0a
--- /dev/null
+++ b/themes/default/index.php
@@ -0,0 +1,61 @@
+<?php
+/**
+ * Bayonet Conent Management System
+ * Copyright (C) Joseph Hunkeler & Evan O'Connell
+ *
+ * Purpose of this software is to allow users to manage their website
+ * with ease and without needing to have any coding knowledge in order
+ * to maintain it. Visit [link] for any updates or feedback.
+ */
+
+/* Begin try/catch block */
+try {
+
+/* Setup error handing callbacks */
+ob_start("fatal_error_handler");
+set_error_handler("handle_error");
+
+
+
+include self::$header;
+//session_start();
+?>
+
+<div class="container">
+
+<!-- banner -->
+ <div class="banner"><a href="index.php"><img src="<?php echo self::$image_path . '/logo.jpg'; ?>" alt="3rd Infantry Division - ArmAII Unit" /></a></div>
+<!-- navigation -->
+ <div class="nav"><?php require_once self::$root_path . '/navigation.php'; ?></div>
+
+<!-- content -->
+<table border="0" cellspacing="15px" cellpadding="0" class="main" width="100%">
+ <tr>
+ <td class="midcol">
+ <?php require_once 'modules.php'; ?>
+ </td>
+
+ <!-- block area RIGHT -->
+ <?php if(!defined('BLOCK_RIGHT_DISABLE')): ?>
+ <td class="rightcol">
+ <?php GetBlocks(BLOCK_RIGHT); ?>
+ </td>
+ <?php endif; ?>
+
+ </tr>
+</table>
+
+</div>
+<?php include self::$footer; ?>
+<?php
+/* Flushing is needed by the error handler */
+ob_end_flush();
+
+} //try ^^
+catch(Exception $e)
+{
+ ReportError(
+ "<style>td.short{width:100%;}</style><table style=\"width:0;\"><tr><th>Code</th>" . "<td class=\"short\">" . $e->getCode() . "</td>" . "</tr><tr><th>In File</th>" . "<td class=\"short\">" . $e->getFile() . "</td>" . "</tr></table>" . $e->getLine() . " - " . $e->getMessage() . "<br/>"
+ );
+}
+?>