aboutsummaryrefslogtreecommitdiff
path: root/themes/throwback/index.php
diff options
context:
space:
mode:
author3rd Infantry Division <thirdid@3rd-infantry-division.org>2011-04-18 16:29:05 -0400
committer3rd Infantry Division <thirdid@3rd-infantry-division.org>2011-04-18 16:29:05 -0400
commitea0080efe5a38a470d4f745ca589e923efc35e5c (patch)
treec6604647d51c0e81168e7dbaba9f73385edc02ee /themes/throwback/index.php
parentfa1cde8684c1a481dd251398d1c2faa27d147a43 (diff)
parent0077cb99704fe863cf731fc5cab792af2ede96c2 (diff)
downloadbayonetcms-ea0080efe5a38a470d4f745ca589e923efc35e5c.tar.gz
Merge branch 'master' of ssh://3rd-infantry-division.org/~/git/bayonet
Diffstat (limited to 'themes/throwback/index.php')
-rw-r--r--themes/throwback/index.php61
1 files changed, 61 insertions, 0 deletions
diff --git a/themes/throwback/index.php b/themes/throwback/index.php
new file mode 100644
index 0000000..bfcab58
--- /dev/null
+++ b/themes/throwback/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");
+
+require_once self::$root_path . '/include/functions.php';
+
+include self::$header;
+//session_start();
+?>
+
+<div class="container">
+
+<!-- banner -->
+ <div class="banner"><a href="index.php"><img src="<?php echo self::$image_path . '/banner.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/>"
+ );
+}
+?>