Update community page

This commit is contained in:
Sky Johnson 2024-06-29 11:52:40 -05:00
parent 530e01df73
commit d56016f8cc
6 changed files with 12 additions and 123 deletions

View File

@ -1,32 +0,0 @@
<footer>
<div class="box">
<div style="padding-top: 8px;">
<section class="splash">
<img src="/assets/images/Logos/LogoV7B.png" style="width: 90%; display: block; margin: 0px auto; margin-bottom: -12px;" />
<a href="../index.php?page=privacy">Privacy</a> | <a href="../index.php?page=tandc">The T&amp;C</a> <br />
<p style="width: 200px; margin: 0px auto;">
Copyright &copy; 2014, Mad Splash. <br />
All trademarked stuff is the property of it's respective owner(s).
</p>
</section>
<section>
<h2>OTHER STUFFS</h2>
<ul>
<li><a href="#">Our staff</a></li>
<li><a href="#">Jobs here</a></li>
</ul>
</section>
<section>
<h2>PROJECTS</h2>
<ul>
<li><a href="../index.php?page=projects&project=tbfa">Battles for Arthos</a></li>
<li><a href="../index.php?page=projects&project=therpg">The RPG</a></li>
</ul>
</section>
</div>
</div>
</footer>
</body>
</html>

View File

@ -1,67 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>The Community | Mad Splash!</title>
<link rel="stylesheet" href="../Resources/CSS/MadSplash_v3.css" type="text/css" />
<link rel="stylesheet" href="../Resources/CSS/FormStyles.css" type="text/css" />
<link rel="stylesheet" href="../Resources/CSS/CustomFonts.css" type="text/css" />
<!-- JavaScript -->
<script src="../Resources/Scripts/JavaScript/jQuery.js" type="text/javascript"></script>
<script src="../Resources/Scripts/JavaScript/TextEditor.js" type="text/javascript"></script>
<script src="../Resources/Scripts/JavaScript/passSecurityCheck.js" type="text/javascript"></script>
<!-- End of JavaScript -->
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lte IE 7]>
<script src="js/IE8.js" type="text/javascript"></script><![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" media="all" href="../Resources/CSS/ie6.css"/><![endif]-->
</head>
<body id="index" class="home">
<?php
session_start();
include('../Resources/Scripts/PHP/Library.php');
require_once('../Resources/Scripts/PHP/SuperNav.php');
$display = new DisplayModule();
?>
<header>
<img class="Logo" src="/assets/images/Logos/LogoV7.png" alt="Mad Splash" title="Mad Splash!" />
<nav>
<ul>
<li><a class="navLink" href="../index.php">Home</a></li>
<li><a class="navLink" href="../blog/blog.php">Blog</a></li>
<li><a class="navLink" href="http://forums.madsplash.net/">Forums</a></li>
<li class="dropdown">
<a class="dropLink" href="../index.php?page=projects">Projects</a>
<div class="drop">
<section>
<h2>Books</h2>
<a href="#">Battles for Arthos</a>
<a href="#">The Organization</a>
</section>
<section>
<h2>Games</h2>
<a href="#">The RPG</a>
<a href="#">BattleMonsters</a>
</section>
<div class="clear"> </div>
</div>
</li>
</ul>
</nav>
</header>

View File

@ -1,25 +1,13 @@
<?php
define('SAFE', true);
$LockedPages = array();
include("Pieces/header.htm");
if (!empty($_GET['page'])) {
$page = "index";
$TmpPage = basename($_GET['page']);
// If it's not a disallowed path, and if the file exists, update $page
if (!in_array($TmpPage, $LockedPages) && file_exists("Pieces/Community/{$TmpPage}.htm")) {
$page = $TmpPage;
}
} else {
$page = "index";
}
// Include $page
include("Pieces/Community/$page.htm");
include("Pieces/footer.htm");
?>
require '../app/bootstrap.php';
const PAGES = ['login', 'verify', 'register'];
echo render('header');
$page = !empty($_GET['page']) && in_array($_GET['page'], PAGES) ? $_GET['page'] : 'home';
echo render("community/$page");
echo render('footer');