Compare commits
15 Commits
Author | SHA1 | Date | |
---|---|---|---|
4948da4024 | |||
ed038beb4e | |||
d011816617 | |||
1501634925 | |||
d56016f8cc | |||
530e01df73 | |||
1420692d6a | |||
e35b5b10e5 | |||
6fae7eb603 | |||
6b6b75b0f7 | |||
12642f09e9 | |||
e3023f8b39 | |||
ed98c2c3c2 | |||
5269bf5539 | |||
9e8d5b74e0 |
3
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
|
.env
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
app/database.db
|
||||||
|
|
4
LICENSE
|
@ -1,6 +1,6 @@
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2018 Skylear
|
Copyright (c) 2018 Skylear Johnson
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<title>Stuff, Community, Fun | Mad Splash!</title>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="Resources/CSS/MadSplash_v3.css" type="text/css" />
|
|
||||||
<link rel="stylesheet" href="../Resources/CSS/CustomFonts.css" type="text/css" />
|
|
||||||
|
|
||||||
<script src="Resources/Scripts/JavaScript/latestTweet.js"></script>
|
|
||||||
|
|
||||||
<!--[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
|
|
||||||
include('Resources/Scripts/PHP/Library.php');
|
|
||||||
require_once('Resources/Scripts/PHP/SuperNav.php');
|
|
||||||
|
|
||||||
$display = new DisplayModule();
|
|
||||||
?>
|
|
||||||
|
|
||||||
<header>
|
|
||||||
<img class="Logo" src="Resources/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="projects.php">Projects</a>
|
|
||||||
|
|
||||||
<div class="drop">
|
|
||||||
<section>
|
|
||||||
<a style="font: bold 18px Arial, Geneva, sans-serif;" href="projects.php?a=main&type=game">Games</a>
|
|
||||||
<a style="font: bold 18px Arial, Geneva, sans-serif;" href="projects.php?a=main&type=book">Books</a>
|
|
||||||
<a style="font: bold 18px Arial, Geneva, sans-serif;" href="projects.php?a=main&type=show">Shows</a>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<div class="clear"> </div>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #425b5c;">
|
|
||||||
<center><img src="../../Images/General/PerryCantTouch2.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,6 +0,0 @@
|
||||||
<section id="slider">
|
|
||||||
<div class="slide" style="background: url('Resources/Images/Covers/Slides/NewLogoSlide.jpg') no-repeat top center;">
|
|
||||||
<!--<a class="slideLink" href="http://the-rpg-makers.wikia.com/" target="_blank"
|
|
||||||
style="background: url('Resources/Images/Covers/SlideLinks/CIOButton.png') no-repeat top center;"></a>-->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
26
README.md
|
@ -1 +1,25 @@
|
||||||
# madsplash-tropical
|
# Mad Splash - Tropical
|
||||||
|
Aloha! This is a historical archive of Mad Splash in it's last Tropical iteration. The code is bad, there's no
|
||||||
|
framework, and there's very little convention. The `master` branch will remain an untouched record of the past,
|
||||||
|
and the `update` branch is being working on as a functional version of the site so you can interact with a
|
||||||
|
piece of history. 😁
|
||||||
|
|
||||||
|
## History
|
||||||
|
At the time a lot of people inspired me to make Mad Splash, and this site. This site is how I learned to code
|
||||||
|
and it was a project that took me a lot of time. I'm happy I'm able to preserve it and keep it going today.
|
||||||
|
|
||||||
|
## Known Issues
|
||||||
|
These are the known issues at the moment;
|
||||||
|
- Password hashing uses non-cryptographic salts and MD5 for hashing. It's a freakin' nightmare. This will
|
||||||
|
be updated to use argon2 going forward.
|
||||||
|
- No controllers! The site was made before I fully understood the MVC website model; there's a lot of weird
|
||||||
|
ways of handling requests and data that aren't normalized.
|
||||||
|
- Redundant code; I reimplemented a lot of default behaviors by mistake as I was following various books
|
||||||
|
and tutorials. This code will be cleaned up over time.
|
||||||
|
|
||||||
|
## Hosting
|
||||||
|
The `master` branch was built on early versions of PHP; I believe the primary being PHP 5.4 and then PHP 7.0
|
||||||
|
later on. Simply point your web server to the root folder and let it rip.
|
||||||
|
|
||||||
|
The `update` branch is being built on PHP 8.4 at the time of writing, and any deprecated code is being replaced
|
||||||
|
and I'm putting in gradual typing. Point your web server to the `public/` folder and you're good to go!
|
||||||
|
|
|
@ -1,56 +0,0 @@
|
||||||
@font-face {
|
|
||||||
font-family: 'Bebas';
|
|
||||||
src: url('../Fonts/BebasNeue-webfont.eot');
|
|
||||||
src: url('../Fonts/BebasNeue-webfont.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('../Fonts/BebasNeue-webfont.woff') format('woff'),
|
|
||||||
url('../Fonts/BebasNeue-webfont.ttf') format('truetype'),
|
|
||||||
url('../Fonts/BebasNeue-webfont.svg#BebasNeueRegular') format('svg');
|
|
||||||
font-weight: normal;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: "Minecraft";
|
|
||||||
src: url("../Fonts/Minecraft_font.eot?") format("eot"),
|
|
||||||
url("../Fonts/Minecraft_font.woff") format("woff"),
|
|
||||||
url("../Fonts/Minecraft_font.ttf") format("truetype"),
|
|
||||||
url("../Fonts/Minecraft_font.svg#Minecraft") format("svg");
|
|
||||||
font-weight:normal;
|
|
||||||
font-style:normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Candara';
|
|
||||||
src: url('../Fonts/candara-webfont.eot');
|
|
||||||
src: url('../Fonts/candara-webfont.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('../Fonts/candara-webfont.woff') format('woff'),
|
|
||||||
url('../Fonts/candara-webfont.ttf') format('truetype'),
|
|
||||||
url('../Fonts/candara-webfont.svg#CandaraRegular') format('svg');
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'CandaraB';
|
|
||||||
src: url('../Fonts/candarab-webfont.eot');
|
|
||||||
src: url('../Fonts/candarab-webfont.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('../Fonts/candarab-webfont.woff') format('woff'),
|
|
||||||
url('../Fonts/candarab-webfont.ttf') format('truetype'),
|
|
||||||
url('../Fonts/candarab-webfont.svg#CandaraBold') format('svg');
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Handwriting';
|
|
||||||
src: url('../Fonts/SF_Arch_Rival-webfont.eot');
|
|
||||||
src: url('../Fonts/SF_Arch_Rival-webfont.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('../Fonts/SF_Arch_Rival-webfont.woff') format('woff'),
|
|
||||||
url('../Fonts/SF_Arch_Rival-webfont.ttf') format('truetype'),
|
|
||||||
url('../Fonts/SF_Arch_Rival-webfont.svg#sf_arch_rivalregular') format('svg');
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'ZeroNero';
|
|
||||||
src: url('../Fonts/zeronero-webfont.eot');
|
|
||||||
src: url('../Fonts/zeronero-webfont.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('../Fonts/zeronero-webfont.woff') format('woff'),
|
|
||||||
url('../Fonts/zeronero-webfont.ttf') format('truetype'),
|
|
||||||
url('../Fonts/zeronero-webfont.svg#zeroneroblack') format('svg');
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #425b5c;">
|
|
||||||
<center><img src="../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #425b5c;">
|
|
||||||
<center><img src="../../Images/General/PerryCantTouch2.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #425b5c;">
|
|
||||||
<center><img src="../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,82 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #888; padding-top: 18px;">
|
|
||||||
<center><img style="max-height: 600px;" src="../../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
|
|
||||||
class Article {
|
|
||||||
|
|
||||||
private $ID;
|
|
||||||
private $Title;
|
|
||||||
private $Cover;
|
|
||||||
private $Author;
|
|
||||||
private $Content;
|
|
||||||
private $PostDate;
|
|
||||||
private $Comments;
|
|
||||||
private $Description;
|
|
||||||
|
|
||||||
|
|
||||||
public function __construct($id) {
|
|
||||||
|
|
||||||
$this->ID = $id;
|
|
||||||
|
|
||||||
$this->getArticle($id);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private function getArticle($id) {
|
|
||||||
|
|
||||||
$db = new DatabaseModule();
|
|
||||||
|
|
||||||
$getArticle = $db->Handle->prepare('SELECT * FROM ms_articles WHERE id = :id');
|
|
||||||
$getArticle->bindValue(':id', $id, PDO::PARAM_INT);
|
|
||||||
$getArticle->execute();
|
|
||||||
|
|
||||||
$ArticleInfo = $getArticle->fetch();
|
|
||||||
|
|
||||||
$getArticle->closeCursor();
|
|
||||||
|
|
||||||
|
|
||||||
$this->Title = $ArticleInfo['articleName'];
|
|
||||||
$this->Cover = $ArticleInfo['articleCover'];
|
|
||||||
$this->Author = $ArticleInfo['articleAuthor'];
|
|
||||||
$this->Content = $ArticleInfo['articleContent'];
|
|
||||||
$this->PostDate = betterDate($ArticleInfo['articleDate']);
|
|
||||||
$this->Comments = $ArticleInfo['articleComments'];
|
|
||||||
$this->Description = $ArticleInfo['articleDescription'];
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function __get($what) {
|
|
||||||
|
|
||||||
if(property_exists($this, $what)) {
|
|
||||||
|
|
||||||
return $this->{$what};
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
return null;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function update($what) {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,74 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #888; padding-top: 18px;">
|
|
||||||
<center><img style="max-height: 600px;" src="../../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
|
|
||||||
class ArticleComment {
|
|
||||||
|
|
||||||
private $ID;
|
|
||||||
private $Author;
|
|
||||||
private $Content;
|
|
||||||
private $PostDate;
|
|
||||||
private $ArticleID;
|
|
||||||
|
|
||||||
|
|
||||||
public function __construct($id) {
|
|
||||||
$this->ID = $id;
|
|
||||||
|
|
||||||
$this->getArticleComment($id);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private function getArticleComment($id) {
|
|
||||||
|
|
||||||
$db = new DatabaseModule();
|
|
||||||
|
|
||||||
$getArticle = $db->Handle->prepare('SELECT * FROM ms_articlecomments WHERE id = :id');
|
|
||||||
$getArticle->bindValue(':id', $id, PDO::PARAM_INT);
|
|
||||||
$getArticle->execute();
|
|
||||||
|
|
||||||
$ArticleInfo = $getArticle->fetch();
|
|
||||||
|
|
||||||
$getArticle->closeCursor();
|
|
||||||
|
|
||||||
$this->Author = $ArticleInfo['commentAuthor'];
|
|
||||||
$this->Content = $ArticleInfo['commentContent'];
|
|
||||||
$this->PostDate = betterDate($ArticleInfo['commentDate']);
|
|
||||||
$this->ArticleID = $ArticleInfo['articleID'];
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function __get($what) {
|
|
||||||
|
|
||||||
if(property_exists($this, $what)) {
|
|
||||||
|
|
||||||
return $this->{$what};
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
return null;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function update($what) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,75 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #888; padding-top: 18px;">
|
|
||||||
<center><img style="max-height: 600px;" src="../../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
|
|
||||||
class EpisodeComment {
|
|
||||||
|
|
||||||
private $ID;
|
|
||||||
private $Author;
|
|
||||||
private $Content;
|
|
||||||
private $PostDate;
|
|
||||||
private $ShowID;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function __construct($id) {
|
|
||||||
$this->ID = $id;
|
|
||||||
|
|
||||||
$this->getComment($id);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private function getComment($id) {
|
|
||||||
|
|
||||||
$db = new DatabaseModule();
|
|
||||||
|
|
||||||
$get = $db->Handle->prepare('SELECT * FROM episodecomments WHERE id = :id');
|
|
||||||
$get->bindValue(':id', $id, PDO::PARAM_INT);
|
|
||||||
$get->execute();
|
|
||||||
|
|
||||||
$data = $get->fetch();
|
|
||||||
|
|
||||||
$get->closeCursor();
|
|
||||||
|
|
||||||
$this->Author = $data['commentAuthor'];
|
|
||||||
$this->Content = $data['commentContent'];
|
|
||||||
$this->PostDate = betterDate($data['commentDate']);
|
|
||||||
$this->ArticleID = $data['showID'];
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function __get($what) {
|
|
||||||
|
|
||||||
if(property_exists($this, $what)) {
|
|
||||||
|
|
||||||
return $this->{$what};
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
return null;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function update($what) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,71 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #888; padding-top: 18px;">
|
|
||||||
<center><img style="max-height: 600px;" src="../../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
|
|
||||||
class Project {
|
|
||||||
/* -- User info variables; used for the functions here -- */
|
|
||||||
private $ID;
|
|
||||||
private $Type;
|
|
||||||
private $Desc;
|
|
||||||
private $Title;
|
|
||||||
private $Cover;
|
|
||||||
private $LastUpdate;
|
|
||||||
|
|
||||||
/* -- User class constructor -- */
|
|
||||||
public function __construct($id) {
|
|
||||||
$this->ID = $id;
|
|
||||||
|
|
||||||
$this->getProject($id);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -- Used in the constructor to access the DB and get all the user's info and populate the variables -- */
|
|
||||||
private function getProject($id) {
|
|
||||||
// Open database connection
|
|
||||||
$db = new DatabaseModule();
|
|
||||||
|
|
||||||
// Get user information from the DB
|
|
||||||
$getProject = $db->Handle->prepare('SELECT * FROM ms_projects WHERE id = :id');
|
|
||||||
$getProject->bindValue(':id', $id, PDO::PARAM_INT); // bind $id to the placeholder
|
|
||||||
$getProject->execute();
|
|
||||||
|
|
||||||
$ProjectInfo = $getProject->fetch(); // get the results from the query
|
|
||||||
|
|
||||||
$getProject->closeCursor(); // close the SELECT query from continuing its search
|
|
||||||
|
|
||||||
// Populate the variables
|
|
||||||
$this->ID = $ProjectInfo["id"];
|
|
||||||
$this->Type = $ProjectInfo["type"];
|
|
||||||
$this->Desc = $ProjectInfo["desc"];
|
|
||||||
$this->Title = $ProjectInfo["title"];
|
|
||||||
$this->Cover = $ProjectInfo["cover"];
|
|
||||||
$this->lastUpdate = betterDate($ProjectInfo["lastUpdate"]);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -- Returns whatever info needed at the moment -- */
|
|
||||||
public function __get($what) {
|
|
||||||
if(property_exists($this, $what)) {
|
|
||||||
return $this->{$what};
|
|
||||||
} else {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -- Updates a value in the DB belonging to the user -- */
|
|
||||||
public function update($what) {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,123 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #888; padding-top: 18px;">
|
|
||||||
<center><img style="max-height: 600px;" src="../../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
|
|
||||||
class Show {
|
|
||||||
|
|
||||||
private $ID;
|
|
||||||
private $Title;
|
|
||||||
private $ShowID;
|
|
||||||
private $Thumbnail;
|
|
||||||
private $Description;
|
|
||||||
private $EpisodeArray;
|
|
||||||
|
|
||||||
private $EpisodeComments;
|
|
||||||
|
|
||||||
private $db;
|
|
||||||
|
|
||||||
private $ThumbPath = "http://localhost:8888/Resources/Images/Thumbs/Show/";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function __construct($id) {
|
|
||||||
|
|
||||||
$DBM = new DatabaseModule();
|
|
||||||
$this->db = $DBM->Handle;
|
|
||||||
|
|
||||||
$this->ShowID = $id;
|
|
||||||
|
|
||||||
$this->CommentBox = GetTemplate('comments/commentbox');
|
|
||||||
$this->CommentForm = GetTemplate('comments/commentform');
|
|
||||||
|
|
||||||
$this->getData();
|
|
||||||
$this->GetEpisodeList();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private function getData() {
|
|
||||||
|
|
||||||
$get = $this->db->prepare('SELECT * FROM ms_projects WHERE showid = :id');
|
|
||||||
$get->bindValue(':id', $this->ShowID, PDO::PARAM_INT); // bind $id to the placeholder
|
|
||||||
$get->execute();
|
|
||||||
|
|
||||||
$data = $get->fetch();
|
|
||||||
|
|
||||||
$get->closeCursor();
|
|
||||||
|
|
||||||
$this->ID = $data["id"];
|
|
||||||
$this->Title = $data["title"];
|
|
||||||
$this->Thumbnail = $this->ThumbPath . $data["thumbnail"];
|
|
||||||
$this->Description = $data["desc"];
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function __get($what) {
|
|
||||||
|
|
||||||
if(property_exists($this, $what)) {
|
|
||||||
|
|
||||||
return $this->{$what};
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
return null;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function GetEpisodeList() {
|
|
||||||
|
|
||||||
$get = $this->db->prepare("SELECT * FROM episodes WHERE `show` = :s ORDER BY id DESC");
|
|
||||||
$get->bindValue(':s', $this->ShowID, PDO::PARAM_INT);
|
|
||||||
$get->execute();
|
|
||||||
|
|
||||||
$episodes = $get->fetchAll();
|
|
||||||
|
|
||||||
$get->closeCursor();
|
|
||||||
|
|
||||||
$this->EpisodeArray = $episodes;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function GetEpisodeComments($id) {
|
|
||||||
|
|
||||||
$get = $this->db->prepare('SELECT * FROM episodecomments WHERE showID = :id');
|
|
||||||
$get->bindValue(':id', $id, PDO::PARAM_INT);
|
|
||||||
$get->execute();
|
|
||||||
|
|
||||||
$data = $get->fetchAll();
|
|
||||||
|
|
||||||
$list = array();
|
|
||||||
|
|
||||||
foreach($data as $ID) {
|
|
||||||
|
|
||||||
$comment = new EpisodeComment($ID['id']);
|
|
||||||
$poster = new User($comment->Author);
|
|
||||||
|
|
||||||
$list[] = ParseTemplate($this->CommentBox, array('a' => $poster->Avatar, 'u' => $poster->Username, 'c' => BBCode(magicClean($comment->Content)), 'd' => $comment->PostDate));
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
return $list;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,110 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #888; padding-top: 18px;">
|
|
||||||
<center><img style="max-height: 600px;" src="../../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
|
|
||||||
class User {
|
|
||||||
/* -- User info variables; used for the functions here -- */
|
|
||||||
private $Email;
|
|
||||||
private $Title;
|
|
||||||
private $UserID;
|
|
||||||
private $Avatar;
|
|
||||||
private $Gender;
|
|
||||||
private $Badges;
|
|
||||||
private $AboutMe;
|
|
||||||
private $WhatsUp;
|
|
||||||
private $Username;
|
|
||||||
private $BirthDay;
|
|
||||||
private $JoinDate;
|
|
||||||
private $PostCount;
|
|
||||||
private $UserTitle;
|
|
||||||
private $Reputation;
|
|
||||||
private $isVerified;
|
|
||||||
private $MemberLevel;
|
|
||||||
|
|
||||||
/* User Database Handle */
|
|
||||||
private $DB = null;
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------------------------------- */
|
|
||||||
/* ------------------------------------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
public function __construct($id) {
|
|
||||||
// Open database connection
|
|
||||||
$DM = new DatabaseModule();
|
|
||||||
$DM->createUserHandle();
|
|
||||||
$this->DB = $DM->userHandle;
|
|
||||||
|
|
||||||
|
|
||||||
$this->UserID = $id;
|
|
||||||
|
|
||||||
$this->getUser($id);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------------------------------- */
|
|
||||||
/* ------------------------------------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
private function getUser($id) {
|
|
||||||
$db = $this->DB;
|
|
||||||
|
|
||||||
// Get username and ID from the database
|
|
||||||
$getUser = $db->prepare('SELECT * FROM ms_users WHERE id = :id');
|
|
||||||
$getUser->bindValue(':id', $id, PDO::PARAM_INT); // bind $id to the placeholder
|
|
||||||
$getUser->execute();
|
|
||||||
|
|
||||||
$User = $getUser->fetch(); // get the results from the query
|
|
||||||
|
|
||||||
$getUser->closeCursor(); // close the SELECT query from continuing its search
|
|
||||||
|
|
||||||
// Populate the variable(s)
|
|
||||||
$this->Username = $User['username'];
|
|
||||||
|
|
||||||
$this->Title = $User['title'];
|
|
||||||
$this->Email = $User['email'];
|
|
||||||
$this->Gender = $User['gender'];
|
|
||||||
$this->Badges = $User['badges'];
|
|
||||||
$this->AboutMe = $User['blurb'];
|
|
||||||
$this->WhatsUp = $User['status'];
|
|
||||||
$this->BirthDay = $User['bday'];
|
|
||||||
$this->JoinDate = $User['joindate'];
|
|
||||||
$this->PostCount = $User['posts'];
|
|
||||||
$this->Avatar = $User['avatar'];
|
|
||||||
$this->Reputation = $User['reputation'];
|
|
||||||
$this->MemberLevel = $User['mlevel'];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------------------------------- */
|
|
||||||
/* ------------------------------------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
public function __get($what) {
|
|
||||||
|
|
||||||
if(property_exists($this, $what)) {
|
|
||||||
|
|
||||||
return $this->{$what};
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
return null;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function update($what) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #888; padding-top: 18px;">
|
|
||||||
<center><img style="max-height: 600px;" src="../../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,124 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #888; padding-top: 18px;">
|
|
||||||
<center><img style="max-height: 600px;" src="../../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
--- The Database Module
|
|
||||||
--- This module is for the general CRUD methods.
|
|
||||||
--- This module was crafted by Skylear. : )
|
|
||||||
--- Copyright (c) Mad Splash, 2014, all rights reserved.
|
|
||||||
*/
|
|
||||||
|
|
||||||
class DatabaseModule {
|
|
||||||
/* --- Variables - data the module needs to work with. --- */
|
|
||||||
private $Handle = null;
|
|
||||||
private $userHandle = null;
|
|
||||||
private $FHandle = null;
|
|
||||||
|
|
||||||
/* --- Constructor - creates the module's instance. --- */
|
|
||||||
public function __construct() {
|
|
||||||
$DBUsername = 'root';
|
|
||||||
$DBPassword = 'root';
|
|
||||||
$DBName = 'database';
|
|
||||||
|
|
||||||
try {
|
|
||||||
$DBHandle = new PDO('mysql: host=localhost; dbname=' . $DBName, $DBUsername, $DBPassword);
|
|
||||||
} catch(PDOException $ex) {
|
|
||||||
die("Oops, we failed to the connect to the database. The error: " . $ex->getMessage() . ".");
|
|
||||||
}
|
|
||||||
|
|
||||||
$DBHandle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
|
||||||
$DBHandle->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
|
|
||||||
|
|
||||||
$this->Handle = $DBHandle;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function createUserHandle() {
|
|
||||||
$DBUsername = 'root';
|
|
||||||
$DBPassword = 'root';
|
|
||||||
$DBName = 'database';
|
|
||||||
|
|
||||||
try {
|
|
||||||
$DBHandle = new PDO('mysql: host=localhost; dbname=' . $DBName, $DBUsername, $DBPassword);
|
|
||||||
} catch(PDOException $ex) {
|
|
||||||
die("Oops, we failed to the connect to the database. The error: " . $ex->getMessage() . ".");
|
|
||||||
}
|
|
||||||
|
|
||||||
$DBHandle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
|
||||||
$DBHandle->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
|
|
||||||
|
|
||||||
$this->userHandle = $DBHandle;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function createFHandle() {
|
|
||||||
$DBUsername = 'root';
|
|
||||||
$DBPassword = 'root';
|
|
||||||
$DBName = 'database';
|
|
||||||
|
|
||||||
try {
|
|
||||||
$DBHandle = new PDO('mysql: host=localhost; dbname=' . $DBName, $DBUsername, $DBPassword);
|
|
||||||
} catch(PDOException $ex) {
|
|
||||||
die("Oops, we failed to the connect to the database. The error: " . $ex->getMessage() . ".");
|
|
||||||
}
|
|
||||||
|
|
||||||
$DBHandle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
|
||||||
$DBHandle->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
|
|
||||||
|
|
||||||
$this->FHandle = $DBHandle;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function __get($what) {
|
|
||||||
if(property_exists($this, $what)) {
|
|
||||||
return $this->{$what};
|
|
||||||
} else {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* --- Module Functions - the meat and purpose of the module. --- */
|
|
||||||
/* Create Table - for creating a table when need be.
|
|
||||||
* @param string $name - the name of the table to be created.
|
|
||||||
* @param string $columns - a long string containing the columns to be made.
|
|
||||||
*/
|
|
||||||
public function createTable($name, $columns) {
|
|
||||||
// No need for creating tables for the time being.
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Select Data - used for getting data from the database.
|
|
||||||
* @return array $selectedRos - an array containing the data.
|
|
||||||
*/
|
|
||||||
public function getData($from, $retrieve, $condition, $limit, $orderby) {
|
|
||||||
$Handle = $this->Handle;
|
|
||||||
|
|
||||||
$query = 'SELECT ' . $retrieve . ' FROM ' . $from . ' ' . $condition . ' ' . $orderby . ' ' . $limit ;
|
|
||||||
|
|
||||||
$selectQuery = $Handle->prepare($query);
|
|
||||||
$selectQuery->execute();
|
|
||||||
$selectedRows = $selectQuery->fetchAll();
|
|
||||||
|
|
||||||
return $selectedRows;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function countRows($which, $condition) {
|
|
||||||
$Handle = $this->Handle;
|
|
||||||
|
|
||||||
$query = 'SELECT COUNT(*) FROM ' . $which . ' ' . $condition;
|
|
||||||
$count = $Handle->query($query);
|
|
||||||
|
|
||||||
return $count->fetch();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #888; padding-top: 18px;">
|
|
||||||
<center><img style="max-height: 600px;" src="../../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,104 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #425b5c;">
|
|
||||||
<center><img src="../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!empty($_COOKIE['MadSplashUser'])) {
|
|
||||||
$user = explode(" ", $_COOKIE['MadSplashUser']);
|
|
||||||
|
|
||||||
echo <<<SUPERNAV
|
|
||||||
<section id="SuperNav">
|
|
||||||
<div class="left" style="padding-left: 12px;">
|
|
||||||
Heyas, <a href="#">{$user[1]}</a>! You can go to your <a href="#">User CP</a> or <a href="http://localhost:8888/Resources/Scripts/PHP/Hubs/CommunityHub.php?user={$user[0]}&action=logout">logout</a>.
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="right">
|
|
||||||
<a class="YouTube" href="http://youtube.com/User/MadSplashTV" target="_blank"> </a>
|
|
||||||
<a class="Twitter" href="http://twitter.com/MadSplashStudio" target="_blank"> </a>
|
|
||||||
|
|
||||||
<div class="CrossNav">
|
|
||||||
<img src="../Resources/Images/Icons/General/CrossNavDark.png" style="width: 28px; height: 28px;" />
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<a href="http://therpg.madsplash.net/" target="_blank">
|
|
||||||
<li class="RPG">
|
|
||||||
<img src="../Resources/Images/Logos/TheRPG.png" style="width: 38px; float: left; margin-right: 4px; margin-top: 4px;" />
|
|
||||||
|
|
||||||
<a class="RPGLink">The RPG</a> <br />
|
|
||||||
Our up-and-coming web-and-text-based RPG. Play!
|
|
||||||
</li>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<li class="footer">
|
|
||||||
<div style="padding: 4px 8px;">
|
|
||||||
Follow us here, too: <br />
|
|
||||||
|
|
||||||
<div class="right">
|
|
||||||
<a class="YouTube" href="http://youtube.com/User/MadSplashTV" target="_blank"> </a>
|
|
||||||
<a class="Twitter" href="http://twitter.com/MadSplashStudio" target="_blank"> </a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clear"> </div>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
SUPERNAV;
|
|
||||||
} else {
|
|
||||||
echo <<<SUPERNAV
|
|
||||||
<section id="SuperNav">
|
|
||||||
<div class="left" style="padding-left: 12px;">
|
|
||||||
Hey there, Guest. You can <a href="http://localhost:8888/community/index.php?page=login">login</a>
|
|
||||||
or <a href="http://localhost:8888/community/index.php?page=register">register</a> here.
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="right">
|
|
||||||
<a class="YouTube" href="http://youtube.com/User/MadSplashTV" target="_blank"> </a>
|
|
||||||
<a class="Twitter" href="http://twitter.com/MadSplashStudio" target="_blank"> </a>
|
|
||||||
|
|
||||||
<div class="CrossNav">
|
|
||||||
<img src="../Resources/Images/Icons/General/CrossNavDark.png" style="width: 28px; height: 28px;" />
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<a href="http://therpg.madsplash.net/" target="_blank">
|
|
||||||
<li class="RPG">
|
|
||||||
<img src="../Resources/Images/Logos/TheRPG.png" style="width: 38px; float: left; margin-right: 4px; margin-top: 4px;" />
|
|
||||||
|
|
||||||
<a class="RPGLink">The RPG</a> <br />
|
|
||||||
Our up-and-coming web-and-text-based RPG. Play!
|
|
||||||
</li>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<li class="footer">
|
|
||||||
<div style="padding: 4px 8px;">
|
|
||||||
Follow us here, too: <br />
|
|
||||||
|
|
||||||
<div class="right">
|
|
||||||
<a class="YouTube" href="http://youtube.com/User/MadSplashTV" target="_blank"> </a>
|
|
||||||
<a class="Twitter" href="http://twitter.com/MadSplashStudio" target="_blank"> </a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clear"> </div>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
SUPERNAV;
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #888; padding-top: 18px;">
|
|
||||||
<center><img style="max-height: 600px;" src="../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #888; padding-top: 18px;">
|
|
||||||
<center><img style="max-height: 600px;" src="../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,12 +0,0 @@
|
||||||
<?php
|
|
||||||
$template = <<<TMP
|
|
||||||
<form action="../Resources/Scripts/PHP/Hubs/CommunityHub.php?action=episodeComment&epID={{{epid}}}&show={{{id}}}" method="post" style="padding-left: 12px; margin-top: 36px; padding-top: 16px;">
|
|
||||||
<h3>Post a comment</h2>
|
|
||||||
<textarea name="theComment" style="width: 76%; min-height: 60px; margin-bottom: 8px; float: left;"></textarea>
|
|
||||||
|
|
||||||
<input class="blueButton" type="submit" name="postsubmit" value="POST" style="float: right;">
|
|
||||||
|
|
||||||
<div class="clear"> </div>
|
|
||||||
</form>
|
|
||||||
TMP;
|
|
||||||
?>
|
|
44
app/bootstrap.php
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
///
|
||||||
|
// This is the bootstrap file; grabs all the important things the library
|
||||||
|
// used to but needed separated.
|
||||||
|
///
|
||||||
|
*/
|
||||||
|
|
||||||
|
ini_set('display_errors', 'On');
|
||||||
|
error_reporting(E_ALL | E_STRICT);
|
||||||
|
|
||||||
|
session_start();
|
||||||
|
|
||||||
|
require_once('../app/library.php');
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------- //
|
||||||
|
// ---------------------------------------------------------------------------- //
|
||||||
|
/// Autoloader to get all our classes.
|
||||||
|
|
||||||
|
const MAP = [
|
||||||
|
'Article' => 'models/Article.php',
|
||||||
|
'ArticleComment' => 'models/ArticleComment.php',
|
||||||
|
'EpisodeComment' => 'models/EpisodeComment.php',
|
||||||
|
'Project' => 'models/Project.php',
|
||||||
|
'Show' => 'models/Show.php',
|
||||||
|
'User' => 'models/User.php',
|
||||||
|
|
||||||
|
'Database' => 'modules/Database.php',
|
||||||
|
'CommunityModule' => 'modules/CommunityModule.php',
|
||||||
|
'DisplayModule' => 'modules/DisplayModule.php',
|
||||||
|
'ParserModule' => 'modules/ParserModule.php',
|
||||||
|
|
||||||
|
'CommunityHub' => 'hubs/CommunityHub.php'
|
||||||
|
];
|
||||||
|
|
||||||
|
spl_autoload_register(function ($class) {
|
||||||
|
if (!isset(MAP[$class])) return false;
|
||||||
|
require_once '../app/' . MAP[$class];
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
// Initialize the database handler
|
||||||
|
Database::init('../app/database.db');
|
|
@ -1,20 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #425b5c;">
|
|
||||||
<center><img src="../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
///
|
///
|
||||||
// Author: Skylear Johnson Co-Author: None
|
// Author: Skylear Johnson Co-Author: None
|
||||||
|
@ -22,58 +6,17 @@ CANTTOUCH;
|
||||||
// This script is copyright (c) 2013, by Mad Splash Studios.
|
// This script is copyright (c) 2013, by Mad Splash Studios.
|
||||||
///
|
///
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ini_set('display_errors', 'On');
|
|
||||||
error_reporting(E_ALL | E_STRICT);
|
|
||||||
|
|
||||||
/* This entire block here is a method to rid POST, GET and COOKIE of unwanted slashes.
|
|
||||||
// I have to give some thanks to Atli from Dream.In.Code for helping me come up with this.
|
|
||||||
// However, this should never really be used. If magic_slashes is a problem, it's time to switch servers; ASAP. */
|
|
||||||
if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
|
|
||||||
function undo_magic_quotes_gpc(&$array) {
|
|
||||||
foreach($array as &$value) {
|
|
||||||
if(is_array($value)) {
|
|
||||||
|
|
||||||
undo_magic_quotes_gpc($value);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
$value = stripslashes($value);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
undo_magic_quotes_gpc($_POST);
|
|
||||||
undo_magic_quotes_gpc($_GET);
|
|
||||||
undo_magic_quotes_gpc($_COOKIE);
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------- //
|
|
||||||
// ---------------------------------------------------------------------------- //
|
|
||||||
/// Includes, so we can use them elsewhere without having to call them each time.
|
|
||||||
|
|
||||||
include($_SERVER["DOCUMENT_ROOT"] . "/Resources/Scripts/PHP/Classes/User.php");
|
|
||||||
include($_SERVER["DOCUMENT_ROOT"] . "/Resources/Scripts/PHP/Classes/Show.php");
|
|
||||||
include($_SERVER["DOCUMENT_ROOT"] . "/Resources/Scripts/PHP/Classes/Article.php");
|
|
||||||
include($_SERVER["DOCUMENT_ROOT"] . "/Resources/Scripts/PHP/Classes/Project.php");
|
|
||||||
include($_SERVER["DOCUMENT_ROOT"] . "/Resources/Scripts/PHP/Classes/ArticleComment.php");
|
|
||||||
include($_SERVER["DOCUMENT_ROOT"] . "/Resources/Scripts/PHP/Classes/EpisodeComment.php");
|
|
||||||
|
|
||||||
include($_SERVER["DOCUMENT_ROOT"] . "/Resources/Scripts/PHP/Modules/DisplayModule.php");
|
|
||||||
include($_SERVER["DOCUMENT_ROOT"] . "/Resources/Scripts/PHP/Modules/DatabaseModule.php");
|
|
||||||
include($_SERVER["DOCUMENT_ROOT"] . "/Resources/Scripts/PHP/Modules/CommunityModule.php");
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------- //
|
// ---------------------------------------------------------------------------- //
|
||||||
// ---------------------------------------------------------------------------- //
|
// ---------------------------------------------------------------------------- //
|
||||||
/// Misc functions - used for who-knows-what and who-knows-when.
|
/// Misc functions - used for who-knows-what and who-knows-when.
|
||||||
|
|
||||||
// Used for scripts that require some sort of timing.
|
// Used for scripts that require some sort of timing.
|
||||||
function getMicroTime() {
|
function getMicroTime() {
|
||||||
list($usec, $sec) = explode(" ", microtime());
|
list($usec, $sec) = explode(" ", microtime());
|
||||||
return ((float)$usec + (float)$sec);
|
return ((float)$usec + (float)$sec);
|
||||||
}
|
}
|
||||||
|
|
||||||
function arrayCheck($ArrayToCheck, $CheckAgainst) {
|
function arrayCheck($ArrayToCheck, $CheckAgainst) {
|
||||||
if(count(array_intersect($ArrayToCheck, $CheckAgainst)) > 0) {
|
if(count(array_intersect($ArrayToCheck, $CheckAgainst)) > 0) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -81,112 +24,70 @@ CANTTOUCH;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------- //
|
// ---------------------------------------------------------------------------- //
|
||||||
// ---------------------------------------------------------------------------- //
|
// ---------------------------------------------------------------------------- //
|
||||||
/// Pretty functions - used to makes things cleaner and look nicer.
|
/// Pretty functions - used to makes things cleaner and look nicer.
|
||||||
|
|
||||||
// Change the MySQL date format (YYYY-MM-DD) into something friendlier.
|
// Change the MySQL date format (YYYY-MM-DD) into something friendlier.
|
||||||
function betterDate($uglyDate) {
|
function betterDate($uglyDate) {
|
||||||
try {
|
try {
|
||||||
$date = new DateTime($uglyDate);
|
$date = new DateTime($uglyDate);
|
||||||
|
|
||||||
return $date->format("jS M Y, g:i A");
|
return $date->format("jS M Y, g:i A");
|
||||||
} catch(PDOException $ex) {
|
} catch(PDOException $ex) {
|
||||||
echo $ex->getMessage();
|
echo $ex->getMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function nicerDate($uglyDate) {
|
function nicerDate($uglyDate) {
|
||||||
try {
|
try {
|
||||||
$date = new DateTime($uglyDate);
|
$date = new DateTime($uglyDate);
|
||||||
|
|
||||||
return $date->format("jS M Y - g:i A");
|
return $date->format("jS M Y - g:i A");
|
||||||
} catch(PDOException $ex) {
|
} catch(PDOException $ex) {
|
||||||
echo $ex->getMessage();
|
echo $ex->getMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getAge($date) {
|
function getAge($date) {
|
||||||
$birthDay = new DateTime($date);
|
$birthDay = new DateTime($date);
|
||||||
$today = new DateTime();
|
$today = new DateTime();
|
||||||
|
|
||||||
$age = $today->diff($birthDay);
|
$age = $today->diff($birthDay);
|
||||||
return $age->y;
|
return $age->y;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------- //
|
// ---------------------------------------------------------------------------- //
|
||||||
// ---------------------------------------------------------------------------- //
|
// ---------------------------------------------------------------------------- //
|
||||||
/// Aegis functions - cleans data and parses it, as well as hashes and checks other stuff for protection.
|
/// Aegis functions - cleans data and parses it, as well as hashes and checks other stuff for protection.
|
||||||
|
|
||||||
// This function serves to prevent tags within HTML getting into things. It's basically a symbol cleaner.
|
// This function serves to prevent tags within HTML getting into things. It's basically a symbol cleaner.
|
||||||
// Kudos to Atli from Dream.In.Code for showing me htmlentities()!
|
// Kudos to Atli from Dream.In.Code for showing me htmlentities()!
|
||||||
function magicClean($text) {
|
function magicClean($text) {
|
||||||
$text = htmlentities($text, ENT_QUOTES, "UTF-8");
|
return htmlentities($text, ENT_QUOTES, "UTF-8");
|
||||||
return $text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hash a password thousands of times using a random salt.
|
// Hash a password thousands of times using a random salt.
|
||||||
function hashPass($password, $salt, $username = "failure") {
|
function hashPass($password, $salt, $username = "failure") {
|
||||||
for($round = 0; $round < 124363; $round++) {
|
for($round = 0; $round < 124363; $round++) {
|
||||||
$HashedPass = hash("sha512", $username . $salt . $password);
|
$HashedPass = hash("sha512", $username . $salt . $password);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $HashedPass;
|
return $HashedPass;
|
||||||
}
|
}
|
||||||
|
|
||||||
function generateSalt($max = 15) {
|
function generateSalt(int $length = 15): string
|
||||||
$characterList = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&*?";
|
{
|
||||||
$i = 0;
|
return bin2hex(random_bytes($length));
|
||||||
$salt = "";
|
|
||||||
|
|
||||||
while ($i < $max) {
|
|
||||||
$salt .= $characterList{mt_rand(0, (strlen($characterList) - 1))};
|
|
||||||
$i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $salt;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate the email address inputted!
|
// Validate the email address inputted!
|
||||||
function checkEmail($email) {
|
function checkEmail($email): bool
|
||||||
$isValid = true;
|
{
|
||||||
$atIndex = strrpos($email, "@");
|
return filter_var($email, FILTER_VALIDATE_EMAIL) ? true : false;
|
||||||
|
|
||||||
if(is_bool($atIndex) && !$atIndex) {
|
|
||||||
$isValid = false;
|
|
||||||
} else {
|
|
||||||
$domain = substr($email, $atIndex + 1);
|
|
||||||
$local = substr($email, 0, $atIndex);
|
|
||||||
$localLen = strlen($local);
|
|
||||||
$domainLen = strlen($domain);
|
|
||||||
|
|
||||||
if($localLen < 1 || $localLen > 64) {
|
|
||||||
$isValid = false;
|
|
||||||
} elseif($domainLen < 1 || $domainLen > 255) {
|
|
||||||
$isValid = false;
|
|
||||||
} elseif($local[0] == '.' || $local[$localLen - 1] == '.') {
|
|
||||||
$isValid = false;
|
|
||||||
} elseif(preg_match('/\\.\\./', $local)) {
|
|
||||||
$isValid = false;
|
|
||||||
} elseif(!preg_match('/^[A-Za-z0-9\\-\\.]+$/', $domain)) {
|
|
||||||
$isValid = false;
|
|
||||||
} elseif(preg_match('/\\.\\./', $domain)) {
|
|
||||||
$isValid = false;
|
|
||||||
} elseif(!preg_match('/^(\\\\.|[A-Za-z0-9!#%&`_=\\/$\'*+?^{}|~.-])+$/', str_replace("\\\\", "", $local))) {
|
|
||||||
if (!preg_match('/^"(\\\\"|[^"])+"$/', str_replace("\\\\", "", $local))) {
|
|
||||||
$isValid = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($isValid && !(checkdnsrr($domain, "MX") || checkdnsrr($domain, "A"))) {
|
|
||||||
$isValid = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $isValid;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Simple BBCode parse function.
|
// Simple BBCode parse function.
|
||||||
function BBCode($data) {
|
function BBCode($data) {
|
||||||
$input = array(
|
$input = array(
|
||||||
|
@ -214,7 +115,7 @@ CANTTOUCH;
|
||||||
'/\[code\](.*?)\[\/code\]/is',
|
'/\[code\](.*?)\[\/code\]/is',
|
||||||
'/ \:P/is'
|
'/ \:P/is'
|
||||||
);
|
);
|
||||||
|
|
||||||
$output = array(
|
$output = array(
|
||||||
'<br />',
|
'<br />',
|
||||||
'<br /><br />',
|
'<br /><br />',
|
||||||
|
@ -227,49 +128,49 @@ CANTTOUCH;
|
||||||
'<ul>',
|
'<ul>',
|
||||||
'</ul>',
|
'</ul>',
|
||||||
'<li>$1</li>',
|
'<li>$1</li>',
|
||||||
'<img class="Emote" src=\'../Resources/Images/Icons/Emotes/Smile.gif\' />',
|
'<img class="Emote" src=\'/assets/images/Icons/Emotes/Smile.gif\' />',
|
||||||
'<img class="Emote" src=\'../Resources/Images/Icons/Emotes/Blank.gif\' />',
|
'<img class="Emote" src=\'/assets/images/Icons/Emotes/Blank.gif\' />',
|
||||||
'<img class="Emote" src=\'../Resources/Images/Icons/Emotes/Bomb.gif\' />',
|
'<img class="Emote" src=\'/assets/images/Icons/Emotes/Bomb.gif\' />',
|
||||||
'<img class="Emote" src=\'../Resources/Images/Icons/Emotes/Grin.gif\' />',
|
'<img class="Emote" src=\'/assets/images/Icons/Emotes/Grin.gif\' />',
|
||||||
'<img class="Emote" src=\'../Resources/Images/Icons/Emotes/MegaSad.gif\' />',
|
'<img class="Emote" src=\'/assets/images/Icons/Emotes/MegaSad.gif\' />',
|
||||||
'<img class="Emote" src=\'../Resources/Images/Icons/Emotes/Blank.gif\' />',
|
'<img class="Emote" src=\'/assets/images/Icons/Emotes/Blank.gif\' />',
|
||||||
'<img class="Emote" src=\'../Resources/Images/Icons/Emotes/Huh.gif\' />',
|
'<img class="Emote" src=\'/assets/images/Icons/Emotes/Huh.gif\' />',
|
||||||
'<img class="Emote" src=\'../Resources/Images/Icons/Emotes/Huh.gif\' />',
|
'<img class="Emote" src=\'/assets/images/Icons/Emotes/Huh.gif\' />',
|
||||||
'<img class="Emote" src=\'../Resources/Images/Icons/Emotes/Huh.gif\' />',
|
'<img class="Emote" src=\'/assets/images/Icons/Emotes/Huh.gif\' />',
|
||||||
'<img class="Emote" src=\'../Resources/Images/Icons/Emotes/Horror.gif\' />',
|
'<img class="Emote" src=\'/assets/images/Icons/Emotes/Horror.gif\' />',
|
||||||
'<pre class="forumCode"><span class="title"><span class="hdr">CODE</span> </span><p style="padding: 5px;">$1</p></pre>',
|
'<pre class="forumCode"><span class="title"><span class="hdr">CODE</span> </span><p style="padding: 5px;">$1</p></pre>',
|
||||||
'<img class="Emote" src=\'../Resources/Images/Icons/Emotes/Tongue.gif\' />'
|
'<img class="Emote" src=\'/assets/images/Icons/Emotes/Tongue.gif\' />'
|
||||||
);
|
);
|
||||||
|
|
||||||
$rtrn = preg_replace($input, $output, $data);
|
$rtrn = preg_replace($input, $output, $data);
|
||||||
|
|
||||||
return $rtrn;
|
return $rtrn;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------- //
|
// ---------------------------------------------------------------------------- //
|
||||||
// ---------------------------------------------------------------------------- //
|
// ---------------------------------------------------------------------------- //
|
||||||
/// Email functions - used to send emails for various reasons
|
/// Email functions - used to send emails for various reasons
|
||||||
|
|
||||||
// Send an email to the specified recipient.
|
// Send an email to the specified recipient.
|
||||||
function sendMail($mailSubject, $mailContent, $mailDestinee, $templatename) {
|
function sendMail($mailSubject, $mailContent, $mailDestinee, $templatename) {
|
||||||
$mailHeaders = 'MIME-Version: 1.0' . "\r\n";
|
$mailHeaders = 'MIME-Version: 1.0' . "\r\n";
|
||||||
$mailHeaders .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
|
$mailHeaders .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
|
||||||
$mailHeaders .= 'From: theguys@localhost:8888' . "\r\n";
|
$mailHeaders .= 'From: theguys@localhost:8888' . "\r\n";
|
||||||
|
|
||||||
$filename = $_SERVER['DOCUMENT_ROOT'] . "/Resources/Templates/emails/" . $templatename . ".php";
|
$filename = $_SERVER['DOCUMENT_ROOT'] . "/Resources/Templates/emails/" . $templatename . ".php";
|
||||||
include("$filename");
|
include("$filename");
|
||||||
|
|
||||||
foreach($mailContent as $a => $b) {
|
foreach($mailContent as $a => $b) {
|
||||||
$template = str_replace("{{{" . $a . "}}}", $b, $template);
|
$template = str_replace("{{{" . $a . "}}}", $b, $template);
|
||||||
}
|
}
|
||||||
|
|
||||||
mail($mailDestinee, $mailSubject, $template, $mailHeaders);
|
mail($mailDestinee, $mailSubject, $template, $mailHeaders);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------- //
|
// ---------------------------------------------------------------------------- //
|
||||||
// ---------------------------------------------------------------------------- //
|
// ---------------------------------------------------------------------------- //
|
||||||
/// Generator functions - used to create things that would take too many lines to constantly repeat
|
/// Generator functions - used to create things that would take too many lines to constantly repeat
|
||||||
|
|
||||||
// Create the new and improved text editor.
|
// Create the new and improved text editor.
|
||||||
function textEditor($Width, $Height, $Name, $Default) {
|
function textEditor($Width, $Height, $Name, $Default) {
|
||||||
echo <<<EDITOR
|
echo <<<EDITOR
|
||||||
|
@ -283,14 +184,14 @@ CANTTOUCH;
|
||||||
<li onclick="addTXT('img', '{$Name}')"><span class="BBCButton">IMG</span></li>
|
<li onclick="addTXT('img', '{$Name}')"><span class="BBCButton">IMG</span></li>
|
||||||
<li onclick="addTXT('url', '{$Name}')"><span class="BBCButton">URL</span></li>
|
<li onclick="addTXT('url', '{$Name}')"><span class="BBCButton">URL</span></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<label for="{$Name}" style="color: #888; font-weight: bold; position: relative; top: 6px;">{$Name}</label>
|
<label for="{$Name}" style="color: #888; font-weight: bold; position: relative; top: 6px;">{$Name}</label>
|
||||||
|
|
||||||
<textarea id="{$Name}" class="message" name="{$Name}" style="width: 100%; max-width: 100%; height: {$Height};">{$Default}</textarea>
|
<textarea id="{$Name}" class="message" name="{$Name}" style="width: 100%; max-width: 100%; height: {$Height};">{$Default}</textarea>
|
||||||
</div>
|
</div>
|
||||||
EDITOR;
|
EDITOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function to check for errors and display them as needed.
|
// Function to check for errors and display them as needed.
|
||||||
function displayErrors($leErrors, $errorArray) {
|
function displayErrors($leErrors, $errorArray) {
|
||||||
$Errors = array(
|
$Errors = array(
|
||||||
|
@ -308,29 +209,50 @@ EDITOR;
|
||||||
"<!-- 12 -->That password doesn't match the username. <a href=\"iForgot.php?this=password\">Reset your password?</a>",
|
"<!-- 12 -->That password doesn't match the username. <a href=\"iForgot.php?this=password\">Reset your password?</a>",
|
||||||
"<1-- 13 -->Whoops! You need to give both your username and your password!"
|
"<1-- 13 -->Whoops! You need to give both your username and your password!"
|
||||||
);
|
);
|
||||||
|
|
||||||
$leErrors = array_intersect($leErrors, $errorArray);
|
$leErrors = array_intersect($leErrors, $errorArray);
|
||||||
|
|
||||||
foreach($leErrors as $error) {
|
foreach($leErrors as $error) {
|
||||||
$error = $error - 1;
|
$error = $error - 1;
|
||||||
echo "<span class=\"error\">" . $Errors[$error] . "</span>";
|
echo "<span class=\"error\">" . $Errors[$error] . "</span>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Retrieve template from the source.
|
// Retrieve template from the source.
|
||||||
function GetTemplate($templatename) {
|
function GetTemplate($templatename) {
|
||||||
$filename = $_SERVER['DOCUMENT_ROOT'] . "/Resources/Templates/" . $templatename . ".php";
|
$filename = $_SERVER['DOCUMENT_ROOT'] . "/Resources/Templates/" . $templatename . ".php";
|
||||||
include("$filename");
|
include("$filename");
|
||||||
|
|
||||||
return $template;
|
return $template;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse all proper content into the template.
|
// Parse all proper content into the template.
|
||||||
function ParseTemplate($template, $array) {
|
function ParseTemplate($template, $array) {
|
||||||
foreach($array as $a => $b) {
|
foreach($array as $a => $b) {
|
||||||
$template = str_replace("{{{" . $a . "}}}", $b, $template);
|
$template = str_replace("{{{" . $a . "}}}", $b, $template);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $template;
|
return $template;
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
/**
|
||||||
|
* Return the path to the given template.
|
||||||
|
*/
|
||||||
|
function template(string $name): string
|
||||||
|
{
|
||||||
|
return "../app/templates/$name.php";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Render a template. Pass data to it - uses an output buffer to have PHP process the template instead of using
|
||||||
|
* a template engine. If you're including partials in the page, call render('partial', $data), as $data will still
|
||||||
|
* be available.
|
||||||
|
*/
|
||||||
|
function render(string $baseView, array $data = []): string
|
||||||
|
{
|
||||||
|
ob_start();
|
||||||
|
extract($data);
|
||||||
|
include template($baseView);
|
||||||
|
return ob_get_clean();
|
||||||
|
}
|
||||||
|
?>
|
35
app/models/Article.php
Executable file
|
@ -0,0 +1,35 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class Article
|
||||||
|
{
|
||||||
|
private $ID;
|
||||||
|
private $Title;
|
||||||
|
private $Cover;
|
||||||
|
private $Author;
|
||||||
|
private $Content;
|
||||||
|
private $PostDate;
|
||||||
|
private $Comments;
|
||||||
|
private $Description;
|
||||||
|
|
||||||
|
public function __construct(int $id)
|
||||||
|
{
|
||||||
|
$this->ID = $id;
|
||||||
|
|
||||||
|
$result = Database::select('articles', '*', 'WHERE id = :id', data: [':id' => $id]);
|
||||||
|
|
||||||
|
$ArticleInfo = $result->fetch();
|
||||||
|
|
||||||
|
$this->Title = $ArticleInfo['articleName'];
|
||||||
|
$this->Cover = $ArticleInfo['articleCover'];
|
||||||
|
$this->Author = $ArticleInfo['articleAuthor'];
|
||||||
|
$this->Content = $ArticleInfo['articleContent'];
|
||||||
|
$this->PostDate = betterDate($ArticleInfo['articleDate']);
|
||||||
|
$this->Comments = $ArticleInfo['articleComments'];
|
||||||
|
$this->Description = $ArticleInfo['articleDescription'];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function __get($what)
|
||||||
|
{
|
||||||
|
return property_exists($this, $what) ? $this->{$what} : null;
|
||||||
|
}
|
||||||
|
}
|
29
app/models/ArticleComment.php
Executable file
|
@ -0,0 +1,29 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class ArticleComment
|
||||||
|
{
|
||||||
|
private $ID;
|
||||||
|
private $Author;
|
||||||
|
private $Content;
|
||||||
|
private $PostDate;
|
||||||
|
private $ArticleID;
|
||||||
|
|
||||||
|
public function __construct($id)
|
||||||
|
{
|
||||||
|
$this->ID = $id;
|
||||||
|
|
||||||
|
$result = Database::select('articlecomments', '*', 'WHERE id = :id', data: [':id' => $id]);
|
||||||
|
|
||||||
|
$ArticleInfo = $result->fetch();
|
||||||
|
|
||||||
|
$this->Author = $ArticleInfo['commentAuthor'];
|
||||||
|
$this->Content = $ArticleInfo['commentContent'];
|
||||||
|
$this->PostDate = betterDate($ArticleInfo['commentDate']);
|
||||||
|
$this->ArticleID = $ArticleInfo['articleID'];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function __get($what)
|
||||||
|
{
|
||||||
|
return property_exists($this, $what) ? $this->{$what} : null;
|
||||||
|
}
|
||||||
|
}
|
29
app/models/EpisodeComment.php
Executable file
|
@ -0,0 +1,29 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class EpisodeComment
|
||||||
|
{
|
||||||
|
private $ID;
|
||||||
|
private $Author;
|
||||||
|
private $Content;
|
||||||
|
private $PostDate;
|
||||||
|
private $ShowID;
|
||||||
|
|
||||||
|
public function __construct($id)
|
||||||
|
{
|
||||||
|
$this->ID = $id;
|
||||||
|
|
||||||
|
$result = Database::select('episodecomments', '*', 'WHERE id = :id', data: [':id' => $id]);
|
||||||
|
|
||||||
|
$data = $result->fetch();
|
||||||
|
|
||||||
|
$this->Author = $data['commentAuthor'];
|
||||||
|
$this->Content = $data['commentContent'];
|
||||||
|
$this->PostDate = betterDate($data['commentDate']);
|
||||||
|
$this->ShowID = $data['showID'];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function __get($what)
|
||||||
|
{
|
||||||
|
return property_exists($this, $what) ? $this->{$what} : null;
|
||||||
|
}
|
||||||
|
}
|
32
app/models/Project.php
Executable file
|
@ -0,0 +1,32 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class Project
|
||||||
|
{
|
||||||
|
private $ID;
|
||||||
|
private $Type;
|
||||||
|
private $Desc;
|
||||||
|
private $Title;
|
||||||
|
private $Cover;
|
||||||
|
private $LastUpdate;
|
||||||
|
|
||||||
|
public function __construct($id)
|
||||||
|
{
|
||||||
|
$this->ID = $id;
|
||||||
|
|
||||||
|
$result = Database::select('projects', '*', 'WHERE id = :id', data: [':id' => $id]);
|
||||||
|
|
||||||
|
$data = $result->fetch();
|
||||||
|
|
||||||
|
$this->ID = $data["id"];
|
||||||
|
$this->Type = $data["type"];
|
||||||
|
$this->Desc = $data["desc"];
|
||||||
|
$this->Title = $data["title"];
|
||||||
|
$this->Cover = $data["cover"];
|
||||||
|
$this->LastUpdate = betterDate($data["lastUpdate"]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function __get($what)
|
||||||
|
{
|
||||||
|
return property_exists($this, $what) ? $this->{$what} : null;
|
||||||
|
}
|
||||||
|
}
|
81
app/models/Show.php
Executable file
|
@ -0,0 +1,81 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class Show
|
||||||
|
{
|
||||||
|
private $ID;
|
||||||
|
private $Title;
|
||||||
|
private $ShowID;
|
||||||
|
private $Thumbnail;
|
||||||
|
private $Description;
|
||||||
|
private $EpisodeArray;
|
||||||
|
|
||||||
|
private $EpisodeComments;
|
||||||
|
|
||||||
|
private $ThumbPath = "/assets/images/Thumbs/Show/";
|
||||||
|
|
||||||
|
public string $CommentBox;
|
||||||
|
public string $CommentForm;
|
||||||
|
|
||||||
|
public function __construct($id)
|
||||||
|
{
|
||||||
|
$this->ShowID = $id;
|
||||||
|
|
||||||
|
$this->CommentForm = render('comments/commentform');
|
||||||
|
|
||||||
|
$this->getData();
|
||||||
|
$this->GetEpisodeList();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private function getData()
|
||||||
|
{
|
||||||
|
$get = Database::select('projects', '*', 'WHERE showid = :id', data: [':id' => $this->ShowID]);
|
||||||
|
|
||||||
|
$data = $get->fetch();
|
||||||
|
|
||||||
|
$this->ID = $data["id"];
|
||||||
|
$this->Title = $data["title"];
|
||||||
|
$this->Thumbnail = $this->ThumbPath . $data["thumbnail"];
|
||||||
|
$this->Description = $data["desc"];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function __get($what)
|
||||||
|
{
|
||||||
|
return property_exists($this, $what) ? $this->{$what} : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function GetEpisodeList()
|
||||||
|
{
|
||||||
|
$get = Database::select('episodes', '*', 'WHERE `show` = :s', 'id DESC', data: [':s' => $this->ShowID]);
|
||||||
|
|
||||||
|
$episodes = $get->fetchAll();
|
||||||
|
|
||||||
|
$this->EpisodeArray = $episodes;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function GetEpisodeComments($id)
|
||||||
|
{
|
||||||
|
$get = Database::select('episodecomments', '*', 'WHERE showID = :id', data: [':id' => $id]);
|
||||||
|
|
||||||
|
$data = $get->fetchAll();
|
||||||
|
|
||||||
|
$list = [];
|
||||||
|
|
||||||
|
foreach ($data as $ID) {
|
||||||
|
$comment = new EpisodeComment($ID['id']);
|
||||||
|
$poster = new User($comment->Author);
|
||||||
|
|
||||||
|
$list[] = render('comments/commentbox', [
|
||||||
|
'a' => $poster->Avatar,
|
||||||
|
'u' => $poster->Username,
|
||||||
|
'c' => BBCode(magicClean($comment->Content)),
|
||||||
|
'd' => $comment->PostDate
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $list;
|
||||||
|
}
|
||||||
|
}
|
48
app/models/User.php
Executable file
|
@ -0,0 +1,48 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class User
|
||||||
|
{
|
||||||
|
private $Email;
|
||||||
|
private $Title;
|
||||||
|
private $UserID;
|
||||||
|
private $Avatar;
|
||||||
|
private $Gender;
|
||||||
|
private $Badges;
|
||||||
|
private $AboutMe;
|
||||||
|
private $WhatsUp;
|
||||||
|
private $Username;
|
||||||
|
private $BirthDay;
|
||||||
|
private $JoinDate;
|
||||||
|
private $PostCount;
|
||||||
|
private $UserTitle;
|
||||||
|
private $Reputation;
|
||||||
|
private $isVerified;
|
||||||
|
private $MemberLevel;
|
||||||
|
|
||||||
|
public function __construct($id)
|
||||||
|
{
|
||||||
|
$this->UserID = $id;
|
||||||
|
|
||||||
|
$result = Database::select('users', '*', 'WHERE id = :id', data: [':id' => $id]);
|
||||||
|
$User = $result->fetch();
|
||||||
|
|
||||||
|
$this->Username = $User['username'];
|
||||||
|
$this->Title = $User['title'];
|
||||||
|
$this->Email = $User['email'];
|
||||||
|
$this->Gender = $User['gender'];
|
||||||
|
$this->Badges = $User['badges'];
|
||||||
|
$this->AboutMe = $User['blurb'];
|
||||||
|
$this->WhatsUp = $User['status'];
|
||||||
|
$this->BirthDay = $User['bday'];
|
||||||
|
$this->JoinDate = $User['joindate'];
|
||||||
|
$this->PostCount = $User['posts'];
|
||||||
|
$this->Avatar = $User['avatar'];
|
||||||
|
$this->Reputation = $User['reputation'];
|
||||||
|
$this->MemberLevel = $User['mlevel'];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function __get($what)
|
||||||
|
{
|
||||||
|
return property_exists($this, $what) ? $this->{$what} : null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,19 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #888; padding-top: 18px;">
|
|
||||||
<center><img style="max-height: 600px;" src="../../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
--- The Community Module
|
--- The Community Module
|
135
app/modules/Database.php
Executable file
|
@ -0,0 +1,135 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
--- The Database Module
|
||||||
|
--- This module is for the general CRUD methods.
|
||||||
|
--- This module was crafted by Skylear. : )
|
||||||
|
--- Copyright (c) Mad Splash, 2014, all rights reserved.
|
||||||
|
*/
|
||||||
|
|
||||||
|
class Database
|
||||||
|
{
|
||||||
|
/* --- Variables - data the module needs to work with. --- */
|
||||||
|
private static PDO $c;
|
||||||
|
|
||||||
|
/* --- Constructor - creates the module's instance. --- */
|
||||||
|
public static function init(string $path, array $opts = [])
|
||||||
|
{
|
||||||
|
$opts = !empty($opts) ? $opts : [
|
||||||
|
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||||
|
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
|
||||||
|
];
|
||||||
|
|
||||||
|
// Check to see if the database exists; if not, we have to build the tables
|
||||||
|
$new = !file_exists($path);
|
||||||
|
|
||||||
|
try {
|
||||||
|
self::$c = new PDO("sqlite:$path", null, null, $opts);
|
||||||
|
if ($new) { self::build(); }
|
||||||
|
} catch (PDOException $e) {
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Module Functions - the meat and purpose of the module. --- */
|
||||||
|
/* Create Table - for creating a table when need be.
|
||||||
|
* @param string $name - the name of the table to be created.
|
||||||
|
* @param string $columns - a long string containing the columns to be made.
|
||||||
|
*/
|
||||||
|
public static function createTable($name, $columns) {
|
||||||
|
// No need for creating tables for the time being.
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Select Data - used for getting data from the database.
|
||||||
|
* @return array $selectedRos - an array containing the data.
|
||||||
|
*/
|
||||||
|
public static function select(string $from, string $retrieve, string $condition, string $orderby = '', int $limit = 0, array $data = [])
|
||||||
|
{
|
||||||
|
$query = "SELECT $retrieve FROM $from $condition";
|
||||||
|
if (!empty($orderby)) { $query .= " ORDER BY $orderby"; }
|
||||||
|
if ($limit > 0) { $query .= " LIMIT $limit"; }
|
||||||
|
|
||||||
|
$selectQuery = self::$c->prepare($query);
|
||||||
|
$selectQuery->execute($data);
|
||||||
|
return $selectQuery;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function count(string $from, string $condition = ''): mixed
|
||||||
|
{
|
||||||
|
$query = "SELECT COUNT(*) FROM $from";
|
||||||
|
if (!empty($condition)) { $query .= " $condition"; }
|
||||||
|
return self::$c->query($query)->fetch();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static function build()
|
||||||
|
{
|
||||||
|
// Create the users table
|
||||||
|
self::$c->exec("CREATE TABLE users (
|
||||||
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
|
username TEXT NOT NULL,
|
||||||
|
password TEXT NOT NULL,
|
||||||
|
email TEXT NOT NULL,
|
||||||
|
title TEXT NOT NULL DEFAULT 'Newbie',
|
||||||
|
gender INTEGER NOT NULL DEFAULT 0,
|
||||||
|
badges TEXT NOT NULL DEFAULT '',
|
||||||
|
blurb TEXT NOT NULL DEFAULT '',
|
||||||
|
status TEXT NOT NULL DEFAULT '',
|
||||||
|
bday DATE NOT NULL DEFAULT '0000-00-00',
|
||||||
|
posts INTEGER NOT NULL DEFAULT 0,
|
||||||
|
avatar TEXT NOT NULL DEFAULT '',
|
||||||
|
reputation INTEGER NOT NULL DEFAULT 0,
|
||||||
|
mlevel INTEGER NOT NULL DEFAULT 0,
|
||||||
|
joindate DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
|
);");
|
||||||
|
|
||||||
|
// Create the articles table
|
||||||
|
self::$c->exec("CREATE TABLE articles (
|
||||||
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
|
articleName TEXT NOT NULL,
|
||||||
|
articleCover TEXT NOT NULL,
|
||||||
|
articleAuthor INTEGER NOT NULL DEFAULT 1,
|
||||||
|
articleContent TEXT NOT NULL,
|
||||||
|
articleDate DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
articleComments INTEGER NOT NULL DEFAULT 0,
|
||||||
|
articleDescription TEXT NOT NULL DEFAULT ''
|
||||||
|
);");
|
||||||
|
|
||||||
|
// Create the article comments table
|
||||||
|
self::$c->exec("CREATE TABLE articlecomments (
|
||||||
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
|
commentAuthor INTEGER NOT NULL,
|
||||||
|
commentContent TEXT NOT NULL,
|
||||||
|
commentDate DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
articleID INTEGER NOT NULL
|
||||||
|
);");
|
||||||
|
|
||||||
|
// Create the episode comments table
|
||||||
|
self::$c->exec("CREATE TABLE episodecomments (
|
||||||
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
|
commentAuthor INTEGER NOT NULL,
|
||||||
|
commentContent TEXT NOT NULL,
|
||||||
|
commentDate DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
showID INTEGER NOT NULL
|
||||||
|
);");
|
||||||
|
|
||||||
|
// Create the projects table
|
||||||
|
self::$c->exec("CREATE TABLE projects (
|
||||||
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
|
type TEXT NOT NULL,
|
||||||
|
desc TEXT NOT NULL,
|
||||||
|
title TEXT NOT NULL,
|
||||||
|
cover TEXT NOT NULL,
|
||||||
|
lastUpdate DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
|
);");
|
||||||
|
|
||||||
|
// Create the shows table
|
||||||
|
self::$c->exec("CREATE TABLE shows (
|
||||||
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
|
title TEXT NOT NULL,
|
||||||
|
thumbnail TEXT NOT NULL,
|
||||||
|
desc TEXT NOT NULL,
|
||||||
|
showid INTEGER NOT NULL,
|
||||||
|
lastUpdate DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
|
);");
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,20 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #888; padding-top: 18px;">
|
|
||||||
<center><img style="max-height: 600px;" src="../../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
--- The Display Module
|
--- The Display Module
|
||||||
--- This module is for the general listing and displaying of things.
|
--- This module is for the general listing and displaying of things.
|
||||||
|
@ -24,8 +8,8 @@ CANTTOUCH;
|
||||||
|
|
||||||
class DisplayModule {
|
class DisplayModule {
|
||||||
|
|
||||||
private $BlogCovers = 'http://localhost:8888/Resources/Images/Covers/BlogPosts/';
|
private $BlogCovers = '/assets/images/Covers/BlogPosts/';
|
||||||
private $ProjectThumbnails = 'http://localhost:8888/Resources/Images/Thumbs/';
|
private $ProjectThumbnails = '/assets/images/Thumbs/';
|
||||||
|
|
||||||
private $ListedArticle;
|
private $ListedArticle;
|
||||||
private $Article4Reading;
|
private $Article4Reading;
|
||||||
|
@ -39,7 +23,7 @@ CANTTOUCH;
|
||||||
|
|
||||||
/* --- Constructor - creates the module's instance. --- */
|
/* --- Constructor - creates the module's instance. --- */
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
/*
|
||||||
$this->ListedArticle = GetTemplate('articles/listedarticle');
|
$this->ListedArticle = GetTemplate('articles/listedarticle');
|
||||||
$this->Article4Reading = GetTemplate('articles/articlebody');
|
$this->Article4Reading = GetTemplate('articles/articlebody');
|
||||||
$this->FeaturedArticle = GetTemplate('articles/featured');
|
$this->FeaturedArticle = GetTemplate('articles/featured');
|
||||||
|
@ -48,7 +32,7 @@ CANTTOUCH;
|
||||||
|
|
||||||
$this->CommentBox = GetTemplate('comments/commentbox');
|
$this->CommentBox = GetTemplate('comments/commentbox');
|
||||||
$this->CommentForm = GetTemplate('comments/commentform');
|
$this->CommentForm = GetTemplate('comments/commentform');
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------------------------------------- */
|
||||||
|
@ -161,7 +145,7 @@ CANTTOUCH;
|
||||||
if($first) {
|
if($first) {
|
||||||
echo <<<FIRST
|
echo <<<FIRST
|
||||||
<a class="latestArticle" href="{$Link}">
|
<a class="latestArticle" href="{$Link}">
|
||||||
<img src="Resources/Images/Covers/BlogPosts/{$article->Cover}.png" alt="{$article->Title}" title="{$article->Title}" />
|
<img src="/assets/images/Covers/BlogPosts/{$article->Cover}.png" alt="{$article->Title}" title="{$article->Title}" />
|
||||||
|
|
||||||
{$cBox}
|
{$cBox}
|
||||||
|
|
||||||
|
@ -175,7 +159,7 @@ FIRST;
|
||||||
} else {
|
} else {
|
||||||
echo <<<ARTICLE
|
echo <<<ARTICLE
|
||||||
<a class="article" href="{$Link}">
|
<a class="article" href="{$Link}">
|
||||||
<img src="Resources/Images/Covers/BlogPosts/{$article->Cover}.png" />
|
<img src="/assets/images/Covers/BlogPosts/{$article->Cover}.png" />
|
||||||
|
|
||||||
{$cBox}
|
{$cBox}
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
<?php
|
<?php
|
||||||
$template = <<<TMP
|
$template = <<<TMP
|
||||||
<div id="articleComment">
|
<div id="articleComment">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<img src="../Resources/Images/Avatars/{{{a}}}" alt="{{{u}}}" title="{{{u}}}" />
|
<img src="/assets/images/Avatars/{{{a}}}" alt="{{{u}}}" title="{{{u}}}" />
|
||||||
<a href="#">{{{u}}}</a>
|
<a href="#">{{{u}}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="right" style="position: relative; height: 100%; display: block;">
|
<div class="right" style="position: relative; height: 100%; display: block;">
|
||||||
<p style="padding: 8px 8px 8px 0px;">
|
<p style="padding: 8px 8px 8px 0px;">
|
||||||
{{{c}}}
|
{{{c}}}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
|
|
||||||
<span class="footer"> Posted on {{{d}}}</span>
|
<span class="footer"> Posted on {{{d}}}</span>
|
||||||
|
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
</div>
|
</div>
|
||||||
TMP;
|
TMP;
|
||||||
?>
|
?>
|
8
app/templates/comments/episodeform.php
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
<form action="Hubs/CommunityHub.php?action=episodeComment&epID=<?= $epid ?>&show=<?= $id ?>" method="post" style="padding-left: 12px; margin-top: 36px; padding-top: 16px;">
|
||||||
|
<h3>Post a comment</h2>
|
||||||
|
<textarea name="theComment" style="width: 76%; min-height: 60px; margin-bottom: 8px; float: left;"></textarea>
|
||||||
|
|
||||||
|
<input class="blueButton" type="submit" name="postsubmit" value="POST" style="float: right;">
|
||||||
|
|
||||||
|
<div class="clear"> </div>
|
||||||
|
</form>
|
|
@ -1,39 +1,39 @@
|
||||||
<?php
|
<?php
|
||||||
$extra = <<<TMP
|
$extra = <<<TMP
|
||||||
<h1 class="H1-2" style="text-align: center;">
|
<h1 class="H1-2" style="text-align: center;">
|
||||||
Congratulations, {{{u}}}!<br />
|
Congratulations, {{{u}}}!<br />
|
||||||
You're bona fide verified.
|
You're bona fide verified.
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<img src="../Resources/Images/General/SkyDrawn.png" style="float: right; position: absolute; right: 50px; bottom: 0px;" />
|
<img src="/assets/images/General/SkyDrawn.png" style="float: right; position: absolute; right: 50px; bottom: 0px;" />
|
||||||
<img src="../Resources/Images/General/Batty1.png" style="float: left; position: absolute; left: 30px; top: 50px;" />
|
<img src="/assets/images/General/Batty1.png" style="float: left; position: absolute; left: 30px; top: 50px;" />
|
||||||
<img src="../Resources/Images/General/Car2.png" style="float: left; position: absolute; left: 80px; bottom: 20px; transform: rotate(24deg);
|
<img src="/assets/images/General/Car2.png" style="float: left; position: absolute; left: 80px; bottom: 20px; transform: rotate(24deg);
|
||||||
-ms-transform: rotate(24deg);
|
-ms-transform: rotate(24deg);
|
||||||
-webkit-transform: rotate(24deg);" />
|
-webkit-transform: rotate(24deg);" />
|
||||||
|
|
||||||
<p style="width: 50%; display: block; margin: 0px auto; text-align: center;">
|
<p style="width: 50%; display: block; margin: 0px auto; text-align: center;">
|
||||||
You're officially a verified member of the Mad Splash community. Not only have you gained access to all our awesome, but you've also recieved a shiny new forum badge in recognition of your accomplishment!
|
You're officially a verified member of the Mad Splash community. Not only have you gained access to all our awesome, but you've also recieved a shiny new forum badge in recognition of your accomplishment!
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
For sake of convenience, you can log in <b>right here</b>.
|
For sake of convenience, you can log in <b>right here</b>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<form action="../Resources/Scripts/PHP/Hubs/CommunityHub.php?action=login" method="post" style="padding-left: 12px; display: block; margin: 24px auto; width: 50%;">
|
<form action="../Resources/Scripts/PHP/Hubs/CommunityHub.php?action=login" method="post" style="padding-left: 12px; display: block; margin: 24px auto; width: 50%;">
|
||||||
|
|
||||||
<label for="username">Username</label> <input type="text" name="username" style="width: 100%;" value="{{{u}}}">
|
<label for="username">Username</label> <input type="text" name="username" style="width: 100%;" value="{{{u}}}">
|
||||||
<label for="password">Password</label> <input type="password" name="password" style="width: 100%;">
|
<label for="password">Password</label> <input type="password" name="password" style="width: 100%;">
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<input class="checkbox" type="checkbox" name="rememberMe" value="rememberMe"> <label for="rememberMe">Remember Me</label> <br />
|
<input class="checkbox" type="checkbox" name="rememberMe" value="rememberMe"> <label for="rememberMe">Remember Me</label> <br />
|
||||||
|
|
||||||
<br /><br />
|
<br /><br />
|
||||||
|
|
||||||
<input class="blueButton" type="submit" name="loginsubmit" value="LOGIN">
|
<input class="blueButton" type="submit" name="loginsubmit" value="LOGIN">
|
||||||
|
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
</form>
|
</form>
|
||||||
TMP;
|
TMP;
|
||||||
?>
|
?>
|
|
@ -1,17 +1,17 @@
|
||||||
<?php
|
<?php
|
||||||
$extra = <<<TMP
|
$extra = <<<TMP
|
||||||
<h1 class="H1-2" style="text-align: center;">
|
<h1 class="H1-2" style="text-align: center;">
|
||||||
Well, this is embarrassing.
|
Well, this is embarrassing.
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p style="width: 50%; display: block; margin: 0px auto; text-align: center;">
|
<p style="width: 50%; display: block; margin: 0px auto; text-align: center;">
|
||||||
It seems that somehow, there was an error in verifying your account. You can rest assured we'll fix this glitch in the future, but for now you'll just be given a new verification email.
|
It seems that somehow, there was an error in verifying your account. You can rest assured we'll fix this glitch in the future, but for now you'll just be given a new verification email.
|
||||||
|
|
||||||
<br /><br />
|
<br /><br />
|
||||||
|
|
||||||
Sorry about that...
|
Sorry about that...
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<img src="../Resources/Images/General/TamakiSad.png" style="margin: 12px auto; display: block;" />
|
<img src="/assets/images/General/TamakiSad.png" style="margin: 12px auto; display: block;" />
|
||||||
TMP;
|
TMP;
|
||||||
?>
|
?>
|
|
@ -4,48 +4,48 @@
|
||||||
|
|
||||||
<section id="HBIG">
|
<section id="HBIG">
|
||||||
<h1>LOGIN</h1>
|
<h1>LOGIN</h1>
|
||||||
|
|
||||||
<img src="../Resources/Images/General/Cookie.png" style="position: absolute; right: 22px; top: 16px; float: right;" />
|
<img src="/assets/images/General/Cookie.png" style="position: absolute; right: 22px; top: 16px; float: right;" />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="body">
|
<section id="body">
|
||||||
<div style="width: 100%; margin-bottom: 4px; height: 1px;"> </div>
|
<div style="width: 100%; margin-bottom: 4px; height: 1px;"> </div>
|
||||||
|
|
||||||
<section id="singleColumn">
|
<section id="singleColumn">
|
||||||
<div class="left" style="width: 380px; border-right: 1px solid #e0e0e0; display: inline-block;">
|
<div class="left" style="width: 380px; border-right: 1px solid #e0e0e0; display: inline-block;">
|
||||||
<h1 class="H1-2">Sign In</h1>
|
<h1 class="H1-2">Sign In</h1>
|
||||||
<form action="../Resources/Scripts/PHP/Hubs/CommunityHub.php?action=login" method="post" style="padding-left: 12px;">
|
<form action="../Resources/Scripts/PHP/Hubs/CommunityHub.php?action=login" method="post" style="padding-left: 12px;">
|
||||||
|
|
||||||
|
|
||||||
<label for="username">Username</label> <input type="text" name="username" style="width: 300px;">
|
<label for="username">Username</label> <input type="text" name="username" style="width: 300px;">
|
||||||
<?php if(isset($_SESSION['error'])) { displayErrors(array("11"), $_SESSION['error']); } ?>
|
<?php if(isset($_SESSION['error'])) { displayErrors(array("11"), $_SESSION['error']); } ?>
|
||||||
<label for="password">Password</label> <input type="password" name="password" style="width: 300px;">
|
<label for="password">Password</label> <input type="password" name="password" style="width: 300px;">
|
||||||
<?php if(isset($_SESSION['error'])) { displayErrors(array("12"), $_SESSION['error']); } ?>
|
<?php if(isset($_SESSION['error'])) { displayErrors(array("12"), $_SESSION['error']); } ?>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<input class="checkbox" type="checkbox" name="rememberMe" value="rememberMe"> <label for="rememberMe">Remember Me</label> <br />
|
<input class="checkbox" type="checkbox" name="rememberMe" value="rememberMe"> <label for="rememberMe">Remember Me</label> <br />
|
||||||
<a href="http://madsplash.net/community/iForgot.php?my=password">Forgot your password?</a>
|
<a href="http://madsplash.net/community/iForgot.php?my=password">Forgot your password?</a>
|
||||||
|
|
||||||
<br /><br />
|
<br /><br />
|
||||||
|
|
||||||
<?php if(isset($_SESSION['error'])) { displayErrors(array("13"), $_SESSION['error']); } ?>
|
<?php if(isset($_SESSION['error'])) { displayErrors(array("13"), $_SESSION['error']); } ?>
|
||||||
|
|
||||||
<input class="blueButton" type="submit" name="loginsubmit" value="LOGIN">
|
<input class="blueButton" type="submit" name="loginsubmit" value="LOGIN">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="right" style="width: 560px;">
|
<div class="right" style="width: 560px;">
|
||||||
<h1 class="H1-2">Don't Have an Account?</h1>
|
<h1 class="H1-2">Don't Have an Account?</h1>
|
||||||
|
|
||||||
<img src="../Resources/Images/General/Cookie.png" style="display: block; height: 280px; margin: 6px auto; margin-bottom: 16px;" />
|
<img src="/assets/images/General/Cookie.png" style="display: block; height: 280px; margin: 6px auto; margin-bottom: 16px;" />
|
||||||
|
|
||||||
<input class="blueButton" type="button" value="CREATE AN ACCOUNT" onClick="window.location.href='community.php?page=register'">
|
<input class="blueButton" type="button" value="CREATE AN ACCOUNT" onClick="window.location.href='community.php?page=register'">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
|
@ -4,27 +4,27 @@
|
||||||
|
|
||||||
<section id="HBIG">
|
<section id="HBIG">
|
||||||
<h1>VERIFY</h1>
|
<h1>VERIFY</h1>
|
||||||
|
|
||||||
<img src="../Resources/Images/General/Cookie.png" style="position: absolute; right: 22px; top: 16px; float: right;" />
|
<img src="/assets/images/General/Cookie.png" style="position: absolute; right: 22px; top: 16px; float: right;" />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="body">
|
<section id="body">
|
||||||
<div style="width: 100%; margin-bottom: 4px; height: 1px;"> </div>
|
<div style="width: 100%; margin-bottom: 4px; height: 1px;"> </div>
|
||||||
|
|
||||||
<section id="singleColumn">
|
<section id="singleColumn">
|
||||||
<?php
|
<?php
|
||||||
$CM = new CommunityModule();
|
$CM = new CommunityModule();
|
||||||
|
|
||||||
if($CM->VerifyUser($_GET['code'], $_GET['username'])) {
|
if($CM->VerifyUser($_GET['code'], $_GET['username'])) {
|
||||||
include('extras/verified.php');
|
include('extras/verified.php');
|
||||||
|
|
||||||
echo str_replace("{{{u}}}", $_GET['username'], $extra);
|
echo str_replace("{{{u}}}", $_GET['username'], $extra);
|
||||||
} else {
|
} else {
|
||||||
include('extras/verifiederror.php');
|
include('extras/verifiederror.php');
|
||||||
|
|
||||||
echo $extra;
|
echo $extra;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
|
@ -1,35 +1,35 @@
|
||||||
<?php
|
<?php
|
||||||
$template = <<<TMP
|
$template = <<<TMP
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<style>
|
<style>
|
||||||
html { background-color: #cacbca; }
|
html { background-color: #cacbca; }
|
||||||
body { width: 800px; margin: 0px auto; background-color: #cacbca; }
|
body { width: 800px; margin: 0px auto; background-color: #cacbca; }
|
||||||
|
|
||||||
div#head { width: 100%; height: 200px; background: #4aa1ef url('http://localhost:8888/Resources/Images/Backgrounds/EmailHead.jpg'); margin-bottom: -48px; box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2); }
|
div#head { width: 100%; height: 200px; background: #4aa1ef url('http://localhost:8888//assets/images/Backgrounds/EmailHead.jpg'); margin-bottom: -48px; box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2); }
|
||||||
div#body { width: 82%; min-height: 70px; margin: 0px auto; margin-bottom: 20px; background-color: #fffffe; padding-bottom: 16px; }
|
div#body { width: 82%; min-height: 70px; margin: 0px auto; margin-bottom: 20px; background-color: #fffffe; padding-bottom: 16px; }
|
||||||
|
|
||||||
h1 { color: #666; font: bold 28px Arial, Helvetica, Geneva, sans-serif; padding: 8px 0px 0px 12px; height: 20px; }
|
h1 { color: #666; font: bold 28px Arial, Helvetica, Geneva, sans-serif; padding: 8px 0px 0px 12px; height: 20px; }
|
||||||
p { width: 90%; padding-bottom: 17px; font-size: 16px; color: #444; line-height: 20px; display: block; margin: 0px auto; }
|
p { width: 90%; padding-bottom: 17px; font-size: 16px; color: #444; line-height: 20px; display: block; margin: 0px auto; }
|
||||||
|
|
||||||
img.logo { width: 450px; transform: rotate(-1deg); -ms-transform: rotate(-1deg); -webkit-transform: rotate(-1deg); display: block; position: relative; top: 20px; left: 18px; }
|
img.logo { width: 450px; transform: rotate(-1deg); -ms-transform: rotate(-1deg); -webkit-transform: rotate(-1deg); display: block; position: relative; top: 20px; left: 18px; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div id="head">
|
<div id="head">
|
||||||
<img class="logo" src="http://localhost:8888/Resources/Images/Logos/NewLogo.png" />
|
<img class="logo" src="http://localhost:8888//assets/images/Logos/NewLogo.png" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="body">
|
<div id="body">
|
||||||
{{{m}}}
|
{{{m}}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
TMP;
|
TMP;
|
||||||
?>
|
?>
|
|
@ -1,44 +1,44 @@
|
||||||
<?php
|
<?php
|
||||||
$template = <<<TMP
|
$template = <<<TMP
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<style>
|
<style>
|
||||||
html { background-color: #cacbca; }
|
html { background-color: #cacbca; }
|
||||||
body { width: 800px; margin: 0px auto; background-color: #cacbca; }
|
body { width: 800px; margin: 0px auto; background-color: #cacbca; }
|
||||||
|
|
||||||
div#head { width: 100%; height: 200px; background: #4aa1ef url('http://localhost:8888/Resources/Images/Backgrounds/EmailHead.jpg'); margin-bottom: -48px; box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2); }
|
div#head { width: 100%; height: 200px; background: #4aa1ef url('http://localhost:8888//assets/images/Backgrounds/EmailHead.jpg'); margin-bottom: -48px; box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2); }
|
||||||
div#body { width: 82%; min-height: 70px; margin: 0px auto; margin-bottom: 20px; background-color: #fffffe; padding-bottom: 16px; }
|
div#body { width: 82%; min-height: 70px; margin: 0px auto; margin-bottom: 20px; background-color: #fffffe; padding-bottom: 16px; }
|
||||||
|
|
||||||
h1 { color: #666; font: bold 28px Arial, Helvetica, Geneva, sans-serif; padding: 8px 0px 0px 12px; height: 20px; }
|
h1 { color: #666; font: bold 28px Arial, Helvetica, Geneva, sans-serif; padding: 8px 0px 0px 12px; height: 20px; }
|
||||||
p { width: 90%; padding-bottom: 17px; font-size: 16px; color: #444; line-height: 20px; display: block; margin: 0px auto; }
|
p { width: 90%; padding-bottom: 17px; font-size: 16px; color: #444; line-height: 20px; display: block; margin: 0px auto; }
|
||||||
|
|
||||||
img.logo { width: 450px; transform: rotate(-1deg); -ms-transform: rotate(-1deg); -webkit-transform: rotate(-1deg); display: block; position: relative; top: 20px; left: 18px; }
|
img.logo { width: 450px; transform: rotate(-1deg); -ms-transform: rotate(-1deg); -webkit-transform: rotate(-1deg); display: block; position: relative; top: 20px; left: 18px; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div id="head">
|
<div id="head">
|
||||||
<img class="logo" src="http://localhost:8888/Resources/Images/Logos/NewLogo.png" />
|
<img class="logo" src="http://localhost:8888//assets/images/Logos/NewLogo.png" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="body">
|
<div id="body">
|
||||||
<h1>Hey there, {{{u}}}!</h1>
|
<h1>Hey there, {{{u}}}!</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Thanks for signing up on Mad Splash! With this account, you'll have free access to all our content. Well, except the stuff that costs moolah. All you have to do now is just verify your account!
|
Thanks for signing up on Mad Splash! With this account, you'll have free access to all our content. Well, except the stuff that costs moolah. All you have to do now is just verify your account!
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<a href="http://localhost:8888/community/verify.php?code={{{vc}}}&username={{{u}}}">Click here to verify your account!
|
<a href="http://localhost:8888/community/verify.php?code={{{vc}}}&username={{{u}}}">Click here to verify your account!
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
TMP;
|
TMP;
|
||||||
?>
|
?>
|
|
@ -2,14 +2,14 @@
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div style="padding-top: 8px;">
|
<div style="padding-top: 8px;">
|
||||||
<section class="splash">
|
<section class="splash">
|
||||||
<img src="Resources/Images/Logos/LogoV7B.png" style="width: 90%; display: block; margin: 0px auto; margin-bottom: -12px;" />
|
<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&C</a> <br />
|
<a href="index.php?page=privacy">Privacy</a> | <a href="index.php?page=tandc">The T&C</a> <br />
|
||||||
<p style="width: 200px; margin: 0px auto;">
|
<p style="width: 200px; margin: 0px auto;">
|
||||||
Copyright © 2014, Mad Splash. <br />
|
Copyright © 2014, Mad Splash. <br />
|
||||||
All trademarked stuff is the property of it's respective owner(s).
|
All trademarked stuff is the property of it's respective owner(s).
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>OTHER STUFFS</h2>
|
<h2>OTHER STUFFS</h2>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
<li><a href="#">Jobs here</a></li>
|
<li><a href="#">Jobs here</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>PROJECTS</h2>
|
<h2>PROJECTS</h2>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -29,4 +29,4 @@
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
41
app/templates/header.php
Executable file
|
@ -0,0 +1,41 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Stuff, Community, Fun | Mad Splash!</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/assets/css/MadSplash_v3.css" type="text/css" />
|
||||||
|
<link rel="stylesheet" href="/assets/css/CustomFonts.css" type="text/css" />
|
||||||
|
|
||||||
|
<script src="/assets/scripts/latestTweet.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body id="index" class="home">
|
||||||
|
<?= render('supernav') ?>
|
||||||
|
|
||||||
|
<header>
|
||||||
|
<img class="Logo" src="/assets/images/Logos/LogoV7.png" alt="Mad Splash" title="Mad Splash!" />
|
||||||
|
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<li><a class="navLink" href="/">Home</a></li>
|
||||||
|
<li><a class="navLink" href="/blog">Blog</a></li>
|
||||||
|
<li><a class="navLink" href="http://forums.madsplash.net/">Forums</a></li>
|
||||||
|
|
||||||
|
<li class="dropdown">
|
||||||
|
<a class="dropLink" href="projects.php">Projects</a>
|
||||||
|
|
||||||
|
<div class="drop">
|
||||||
|
<section>
|
||||||
|
<a style="font: bold 18px Arial, Geneva, sans-serif;" href="projects.php?a=main&type=game">Games</a>
|
||||||
|
<a style="font: bold 18px Arial, Geneva, sans-serif;" href="projects.php?a=main&type=book">Books</a>
|
||||||
|
<a style="font: bold 18px Arial, Geneva, sans-serif;" href="projects.php?a=main&type=show">Shows</a>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="clear"> </div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
|
@ -1,32 +1,21 @@
|
||||||
<section id="body">
|
<section id="body">
|
||||||
<div style="width: 100%; margin-bottom: 4px; height: 1px;"> </div>
|
<div style="width: 100%; margin-bottom: 4px; height: 1px;"> </div>
|
||||||
|
|
||||||
<section id="leftColumn">
|
<section id="leftColumn">
|
||||||
<h1>Latest Updates</h1>
|
<h1>Latest Updates</h1>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$display->frontPageArticles();
|
//$display->frontPageArticles();
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a class="more" href="blog/blog.php" style="margin: 8px 0px 0px 8px;">Read more news »</a>
|
<a class="more" href="blog/blog.php" style="margin: 8px 0px 0px 8px;">Read more news »</a>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="rightColumn">
|
<section id="rightColumn">
|
||||||
|
|
||||||
<h1>Latest socials</h1>
|
|
||||||
<div id="tweets">
|
|
||||||
<a class="Twitter" style="background-color: #666; margin-right: 4px; float: left;"> </a>
|
|
||||||
|
|
||||||
<div id="tweet" style="float: right;">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clear"> </div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
</section>
|
</section>
|
|
@ -8,44 +8,42 @@
|
||||||
|
|
||||||
<section id="body">
|
<section id="body">
|
||||||
<div style="width: 100%; margin-bottom: 4px; height: 1px;"> </div>
|
<div style="width: 100%; margin-bottom: 4px; height: 1px;"> </div>
|
||||||
|
|
||||||
<div style="padding: 4px 8px 36px 8px;">
|
<div style="padding: 4px 8px 36px 8px;">
|
||||||
<p style="padding-left: 8px;">
|
<p style="padding-left: 8px;">
|
||||||
Your privacy is very important to us. Accordingly, we have developed this Policy in order for you to understand how we collect, use, communicate and disclose and make use of personal information. The following outlines our privacy policy.
|
Your privacy is very important to us. Accordingly, we have developed this Policy in order for you to understand how we collect, use, communicate and disclose and make use of personal information. The following outlines our privacy policy.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<ul style="padding-left: 16px; margin-lefts: 16px;">
|
<ul style="padding-left: 16px; margin-left: 16px;">
|
||||||
<li>
|
<li>
|
||||||
Before or at the time of collecting personal information, we will identify the purposes for which information is being collected.
|
Before or at the time of collecting personal information, we will identify the purposes for which information is being collected.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
We will collect and use of personal information solely with the objective of fulfilling those purposes specified by us and for other compatible purposes, unless we obtain the consent of the individual concerned or as required by law.
|
We will collect and use of personal information solely with the objective of fulfilling those purposes specified by us and for other compatible purposes, unless we obtain the consent of the individual concerned or as required by law.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
We will only retain personal information as long as necessary for the fulfillment of those purposes.
|
We will only retain personal information as long as necessary for the fulfillment of those purposes.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
We will collect personal information by lawful and fair means and, where appropriate, with the knowledge or consent of the individual concerned.
|
We will collect personal information by lawful and fair means and, where appropriate, with the knowledge or consent of the individual concerned.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Personal data should be relevant to the purposes for which it is to be used, and, to the extent necessary for those purposes, should be accurate, complete, and up-to-date.
|
Personal data should be relevant to the purposes for which it is to be used, and, to the extent necessary for those purposes, should be accurate, complete, and up-to-date.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
We will protect personal information by reasonable security safeguards against loss or theft, as well as unauthorized access, disclosure, copying, use or modification.
|
We will protect personal information by reasonable security safeguards against loss or theft, as well as unauthorized access, disclosure, copying, use or modification.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
We will make readily available to customers information about our policies and practices relating to the management of personal information.
|
We will make readily available to customers information about our policies and practices relating to the management of personal information.
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<p style="padding-left: 8px;">
|
<p style="padding-left: 8px;">
|
||||||
We are committed to conducting our business in accordance with these principles in order to ensure that the confidentiality of personal information is protected and maintained.
|
We are committed to conducting our business in accordance with these principles in order to ensure that the confidentiality of personal information is protected and maintained.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
</section>
|
||||||
<div class="clear"> </div>
|
|
||||||
</section>
|
|
|
@ -4,21 +4,21 @@
|
||||||
|
|
||||||
<section id="HBIG">
|
<section id="HBIG">
|
||||||
<h1>PROJECTS</h1>
|
<h1>PROJECTS</h1>
|
||||||
|
|
||||||
<img src="../Resources/Images/General/CC3.png" style="position: absolute; right: 22px; top: 16px; float: right;" />
|
<img src="/assets/images/General/CC3.png" style="position: absolute; right: 22px; top: 16px; float: right;" />
|
||||||
<img src="../Resources/Images/General/Batty1.png" style="position: absolute; right: 200px; top: 4px; float: right;" />
|
<img src="/assets/images/General/Batty1.png" style="position: absolute; right: 200px; top: 4px; float: right;" />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="body">
|
<section id="body">
|
||||||
<div style="width: 100%; margin-bottom: 4px; height: 1px;"> </div>
|
<div style="width: 100%; margin-bottom: 4px; height: 1px;"> </div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$display->categoryNav();
|
$display->categoryNav();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<section id="leftColumn" style="padding: 4px 12px;">
|
<section id="leftColumn" style="padding: 4px 12px;">
|
||||||
<h1>Mad Splash Projects</h1>
|
<h1>Mad Splash Projects</h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if(!empty($_GET['type'])) {
|
if(!empty($_GET['type'])) {
|
||||||
echo '<div style="margin-bottom: 18px;">
|
echo '<div style="margin-bottom: 18px;">
|
||||||
|
@ -30,21 +30,21 @@
|
||||||
<h2>Games</h2>';
|
<h2>Games</h2>';
|
||||||
$display->Projects('game');
|
$display->Projects('game');
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
echo '<div style="margin-bottom: 18px;">
|
echo '<div style="margin-bottom: 18px;">
|
||||||
<h2>Books</h2>';
|
<h2>Books</h2>';
|
||||||
$display->Projects('book');
|
$display->Projects('book');
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
echo '<div style="margin-bottom: 18px;">
|
echo '<div style="margin-bottom: 18px;">
|
||||||
<h2>Shows</h2>';
|
<h2>Shows</h2>';
|
||||||
$display->Projects('show');
|
$display->Projects('show');
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="rightColumn2" style="margin-top: 8px;">
|
<section id="rightColumn2" style="margin-top: 8px;">
|
||||||
<section>
|
<section>
|
||||||
<h1>Free Stuffs</h1>
|
<h1>Free Stuffs</h1>
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
$display->daPromos();
|
$display->daPromos();
|
||||||
?>
|
?>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h1>What's our goal?</h1>
|
<h1>What's our goal?</h1>
|
||||||
<p style="padding: 0px 6px;">
|
<p style="padding: 0px 6px;">
|
||||||
|
@ -61,6 +61,6 @@
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
</section>
|
</section>
|
|
@ -1,6 +1,3 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
$template = <<<TMP
|
|
||||||
<script>
|
<script>
|
||||||
document.getElementsByTagName('title')[0].innerHTML = "{{{t}}} | Mad Splash!";
|
document.getElementsByTagName('title')[0].innerHTML = "{{{t}}} | Mad Splash!";
|
||||||
</script>
|
</script>
|
||||||
|
@ -11,58 +8,55 @@ $template = <<<TMP
|
||||||
|
|
||||||
<section id="body">
|
<section id="body">
|
||||||
<div style="width: 100%; margin-bottom: 4px; height: 1px;"> </div>
|
<div style="width: 100%; margin-bottom: 4px; height: 1px;"> </div>
|
||||||
|
|
||||||
<section id="leftColumn" style="padding: 4px 12px;">
|
<section id="leftColumn" style="padding: 4px 12px;">
|
||||||
|
|
||||||
<section style="border-bottom: 2px solid rgba(0, 0, 0, 0.1); padding-bottom: 8px;">
|
<section style="border-bottom: 2px solid rgba(0, 0, 0, 0.1); padding-bottom: 8px;">
|
||||||
|
|
||||||
<div class="left" style="width: 18%;">
|
<div class="left" style="width: 18%;">
|
||||||
<img src="{{{thumb}}}" style="width: 100px;" />
|
<img src="{{{thumb}}}" style="width: 100px;" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="right" style="width: 82%;">
|
<div class="right" style="width: 82%;">
|
||||||
<a href="#" style="font: 24px Impact, Arial, Geneva, sans-serif;">{{{t}}}</a><br />
|
<a href="#" style="font: 24px Impact, Arial, Geneva, sans-serif;">{{{t}}}</a><br />
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
{{{d}}}
|
{{{d}}}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section style="padding-top: 16px; padding-bottom: 18px; border-bottom: 2px solid rgba(0, 0, 0, 0.1);">
|
<section style="padding-top: 16px; padding-bottom: 18px; border-bottom: 2px solid rgba(0, 0, 0, 0.1);">
|
||||||
|
|
||||||
<h1>Other Episodes</h1>
|
<h1>Other Episodes</h1>
|
||||||
<ul style="margin-left: 28px; list-style: none;">
|
<ul style="margin-left: 28px; list-style: none;">
|
||||||
<li><a href="#">Episode 1</a></li>
|
<li><a href="#">Episode 1</a></li>
|
||||||
<li><a href="#">Episode 2</a></li>
|
<li><a href="#">Episode 2</a></li>
|
||||||
<li><a href="#">Episode 3</a></li>
|
<li><a href="#">Episode 3</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!--<a id="comments"> </a>
|
<!--<a id="comments"> </a>
|
||||||
<section>
|
<section>
|
||||||
<h2 style="font-size: 24px;">{{{ccount}}}</h2>
|
<h2 style="font-size: 24px;">{{{ccount}}}</h2>
|
||||||
|
|
||||||
{{{comments}}}
|
{{{comments}}}
|
||||||
|
|
||||||
{{{form}}}
|
{{{form}}}
|
||||||
</section>-->
|
</section>-->
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<section id="rightColumn2" style="margin-top: 8px; padding: 48px 0px;">
|
<section id="rightColumn2" style="margin-top: 8px; padding: 48px 0px;">
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
</section>
|
</section>
|
||||||
TMP;
|
|
||||||
|
|
||||||
?>
|
|
6
app/templates/slider.php
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
<section id="slider">
|
||||||
|
<div class="slide" style="background: url('/assets/images/Covers/Slides/NewLogoSlide.jpg') no-repeat center center; background-size: cover;">
|
||||||
|
<!--<a class="slideLink" href="http://the-rpg-makers.wikia.com/" target="_blank"
|
||||||
|
style="background: url('/assets/images/Covers/SlideLinks/CIOButton.png') no-repeat top center;"></a>-->
|
||||||
|
</div>
|
||||||
|
</section>
|
45
app/templates/supernav.php
Executable file
|
@ -0,0 +1,45 @@
|
||||||
|
<section id="SuperNav">
|
||||||
|
<?php if(!empty($_COOKIE['MadSplashUser'])): ?>
|
||||||
|
<div class="left" style="padding-left: 12px;">
|
||||||
|
Heyas, <a href="#">{$user[1]}</a>! You can go to your <a href="#">User CP</a> or <a href="http://localhost:8888/Resources/Scripts/PHP/Hubs/CommunityHub.php?user={$user[0]}&action=logout">logout</a>.
|
||||||
|
</div>
|
||||||
|
<?php else: ?>
|
||||||
|
<div class="left" style="padding-left: 12px;">
|
||||||
|
Hey there, Guest. You can <a href="http://localhost:8888/community/index.php?page=login">login</a>
|
||||||
|
or <a href="http://localhost:8888/community/index.php?page=register">register</a> here.
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<div class="right">
|
||||||
|
<a class="YouTube" href="http://youtube.com/User/MadSplashTV" target="_blank"> </a>
|
||||||
|
<a class="Twitter" href="http://twitter.com/MadSplashStudio" target="_blank"> </a>
|
||||||
|
|
||||||
|
<div class="CrossNav">
|
||||||
|
<img src="/assets/images/Icons/General/CrossNavDark.png" style="width: 28px; height: 28px;" />
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<a href="http://therpg.madsplash.net/" target="_blank">
|
||||||
|
<li class="RPG">
|
||||||
|
<img src="/assets/images/Logos/TheRPG.png" style="width: 38px; float: left; margin-right: 4px; margin-top: 4px;" />
|
||||||
|
|
||||||
|
<a class="RPGLink">The RPG</a> <br />
|
||||||
|
Our up-and-coming web-and-text-based RPG. Play!
|
||||||
|
</li>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<li class="footer">
|
||||||
|
<div style="padding: 4px 8px;">
|
||||||
|
Follow us here, too: <br />
|
||||||
|
|
||||||
|
<div class="right">
|
||||||
|
<a class="YouTube" href="http://youtube.com/User/MadSplashTV" target="_blank"> </a>
|
||||||
|
<a class="Twitter" href="http://twitter.com/MadSplashStudio" target="_blank"> </a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clear"> </div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
|
@ -8,34 +8,34 @@
|
||||||
|
|
||||||
<section id="body">
|
<section id="body">
|
||||||
<div style="width: 100%; margin-bottom: 4px; height: 1px;"> </div>
|
<div style="width: 100%; margin-bottom: 4px; height: 1px;"> </div>
|
||||||
|
|
||||||
<div style="padding: 4px 8px 36px 8px;">
|
<div style="padding: 4px 8px 36px 8px;">
|
||||||
<h3>
|
<h3>
|
||||||
1. Terms
|
1. Terms
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<p style="padding-left: 8px;">
|
<p style="padding-left: 8px;">
|
||||||
By accessing this web site, you are agreeing to be bound by these
|
By accessing this web site, you are agreeing to be bound by these
|
||||||
web site Terms and Conditions of Use, all applicable laws and regulations,
|
web site Terms and Conditions of Use, all applicable laws and regulations,
|
||||||
and agree that you are responsible for compliance with any applicable local
|
and agree that you are responsible for compliance with any applicable local
|
||||||
laws. If you do not agree with any of these terms, you are prohibited from
|
laws. If you do not agree with any of these terms, you are prohibited from
|
||||||
using or accessing this site. The materials contained in this web site are
|
using or accessing this site. The materials contained in this web site are
|
||||||
protected by applicable copyright and trade mark law.
|
protected by applicable copyright and trade mark law.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<h3>
|
<h3>
|
||||||
2. Use License
|
2. Use License
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<ol type="a" style="padding-left: 16px; margin-left: 16px;">
|
<ol type="a" style="padding-left: 16px; margin-left: 16px;">
|
||||||
<li>
|
<li>
|
||||||
Permission is granted to download copies of the materials
|
Permission is granted to download copies of the materials
|
||||||
(information or software) on Mad Splash's web site for personal,
|
(information or software) on Mad Splash's web site for personal,
|
||||||
non-commercial viewing and usage only. This is the grant of a license,
|
non-commercial viewing and usage only. This is the grant of a license,
|
||||||
not a transfer of title, and under this license you may not:
|
not a transfer of title, and under this license you may not:
|
||||||
|
|
||||||
<ol type="i" style="padding-left: 16px; margin-left: 16px;">
|
<ol type="i" style="padding-left: 16px; margin-left: 16px;">
|
||||||
<li>use the materials for any commercial purpose without express permission from the CEO/President of Mad Splash;</li>
|
<li>use the materials for any commercial purpose without express permission from the CEO/President of Mad Splash;</li>
|
||||||
<li>attempt to decompile or reverse engineer any software contained on Mad Splash's web site;</li>
|
<li>attempt to decompile or reverse engineer any software contained on Mad Splash's web site;</li>
|
||||||
|
@ -47,67 +47,67 @@
|
||||||
This license shall automatically terminate if you violate any of these restrictions and may be terminated by Mad Splash at any time. Upon terminating your viewing of these materials or upon the termination of this license, you must destroy any downloaded materials in your possession whether in electronic or printed format.
|
This license shall automatically terminate if you violate any of these restrictions and may be terminated by Mad Splash at any time. Upon terminating your viewing of these materials or upon the termination of this license, you must destroy any downloaded materials in your possession whether in electronic or printed format.
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<h3>
|
<h3>
|
||||||
3. Disclaimer
|
3. Disclaimer
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<p style="padding-left: 8px;">
|
<p style="padding-left: 8px;">
|
||||||
The materials on Mad Splash's web site are provided "as is". Mad Splash makes no implied warranties, and hereby disclaims and negates all other warranties, including without limitation, implied warranties or conditions of merchantability, fitness for a particular purpose, or non-infringement of intellectual property or other violation of rights. Further, Mad Splash does not warrant or make any representations concerning the accuracy, likely results, or reliability of the use of the materials on its Internet web site or otherwise relating to such materials or on any sites linked to this site.
|
The materials on Mad Splash's web site are provided "as is". Mad Splash makes no implied warranties, and hereby disclaims and negates all other warranties, including without limitation, implied warranties or conditions of merchantability, fitness for a particular purpose, or non-infringement of intellectual property or other violation of rights. Further, Mad Splash does not warrant or make any representations concerning the accuracy, likely results, or reliability of the use of the materials on its Internet web site or otherwise relating to such materials or on any sites linked to this site.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<h3>
|
<h3>
|
||||||
4. Limitations
|
4. Limitations
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<p style="padding-left: 8px;">
|
<p style="padding-left: 8px;">
|
||||||
In no event shall Mad Splash or its suppliers be liable for any damages (including, without limitation, damages for loss of data or profit, or due to business interruption,) arising out of the use or inability to use the materials on Mad Splash's Internet site, even if Mad Splash or a Mad Splash authorized representative has been notified orally or in writing of the possibility of such damage. Because some jurisdictions do not allow limitations on implied warranties, or limitations of liability for consequential or incidental damages, these limitations may not apply to you.
|
In no event shall Mad Splash or its suppliers be liable for any damages (including, without limitation, damages for loss of data or profit, or due to business interruption,) arising out of the use or inability to use the materials on Mad Splash's Internet site, even if Mad Splash or a Mad Splash authorized representative has been notified orally or in writing of the possibility of such damage. Because some jurisdictions do not allow limitations on implied warranties, or limitations of liability for consequential or incidental damages, these limitations may not apply to you.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<h3>
|
<h3>
|
||||||
5. Revisions and Errata
|
5. Revisions and Errata
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<p style="padding-left: 8px;">
|
<p style="padding-left: 8px;">
|
||||||
The materials appearing on Mad Splash's web site could include technical, typographical, or photographic errors. Mad Splash does not warrant that any of the materials on its web site are accurate, complete, or current. Mad Splash may make changes to the materials contained on its web site at any time without notice. Mad Splash does not, however, make any commitment to update the materials.
|
The materials appearing on Mad Splash's web site could include technical, typographical, or photographic errors. Mad Splash does not warrant that any of the materials on its web site are accurate, complete, or current. Mad Splash may make changes to the materials contained on its web site at any time without notice. Mad Splash does not, however, make any commitment to update the materials.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<h3>
|
<h3>
|
||||||
6. Links
|
6. Links
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<p style="padding-left: 8px;">
|
<p style="padding-left: 8px;">
|
||||||
Mad Splash has not reviewed all of the sites linked to its Internet web site and is not responsible for the contents of any such linked site. The inclusion of any link does not imply endorsement by Mad Splash of the site. Use of any such linked web site is at the user's own risk.
|
Mad Splash has not reviewed all of the sites linked to its Internet web site and is not responsible for the contents of any such linked site. The inclusion of any link does not imply endorsement by Mad Splash of the site. Use of any such linked web site is at the user's own risk.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<h3>
|
<h3>
|
||||||
7. Site Terms of Use Modifications
|
7. Site Terms of Use Modifications
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<p style="padding-left: 8px;">
|
<p style="padding-left: 8px;">
|
||||||
Mad Splash may revise these terms of use for its web site at any time without notice. By using this web site you are agreeing to be bound by the then current version of these Terms and Conditions of Use.
|
Mad Splash may revise these terms of use for its web site at any time without notice. By using this web site you are agreeing to be bound by the then current version of these Terms and Conditions of Use.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<h3>
|
<h3>
|
||||||
8. Governing Law
|
8. Governing Law
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<p style="padding-left: 8px;">
|
<p style="padding-left: 8px;">
|
||||||
Any claim relating to Mad Splash's web site shall be governed by the laws of the State of Kansas without regard to its conflict of law provisions.
|
Any claim relating to Mad Splash's web site shall be governed by the laws of the State of Kansas without regard to its conflict of law provisions.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
</section>
|
</section>
|
495
app/templates/tictactoe.php
Normal file
|
@ -0,0 +1,495 @@
|
||||||
|
<script>
|
||||||
|
if (document.all || document.getElementById) {
|
||||||
|
document.write('<style>.tictac{')
|
||||||
|
document.write('width:50px;height:50px;')
|
||||||
|
document.write('}</style>')
|
||||||
|
}
|
||||||
|
|
||||||
|
var sqr1
|
||||||
|
var sqr2
|
||||||
|
var sqr3
|
||||||
|
var sqr4
|
||||||
|
var sqr5
|
||||||
|
var sqr6
|
||||||
|
var sqr7
|
||||||
|
var sqr8
|
||||||
|
var sqr9
|
||||||
|
var sqr1T = 0
|
||||||
|
var sqr2T = 0
|
||||||
|
var sqr3T = 0
|
||||||
|
var sqr4T = 0
|
||||||
|
var sqr5T = 0
|
||||||
|
var sqr6T = 0
|
||||||
|
var sqr7T = 0
|
||||||
|
var sqr8T = 0
|
||||||
|
var sqr9T = 0
|
||||||
|
var moveCount = 0
|
||||||
|
var turn = 0
|
||||||
|
var mode = 1
|
||||||
|
|
||||||
|
function vari() {
|
||||||
|
sqr1 = document.tic.sqr1.value
|
||||||
|
sqr2 = document.tic.sqr2.value
|
||||||
|
sqr3 = document.tic.sqr3.value
|
||||||
|
sqr4 = document.tic.sqr4.value
|
||||||
|
sqr5 = document.tic.sqr5.value
|
||||||
|
sqr6 = document.tic.sqr6.value
|
||||||
|
sqr7 = document.tic.sqr7.value
|
||||||
|
sqr8 = document.tic.sqr8.value
|
||||||
|
sqr9 = document.tic.sqr9.value
|
||||||
|
}
|
||||||
|
|
||||||
|
function check() {
|
||||||
|
if (sqr1 == " X " && sqr2 == " X " && sqr3 == " X ") {
|
||||||
|
alert("Congrats, you've beat the computer!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr4 == " X " && sqr5 == " X " && sqr6 == " X ") {
|
||||||
|
alert("Congrats, you've beat the computer!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr7 == " X " && sqr8 == " X " && sqr9 == " X ") {
|
||||||
|
alert("Congrats, you've beat the computer!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr1 == " X " && sqr5 == " X " && sqr9 == " X ") {
|
||||||
|
alert("Congrats, you've beat the computer!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr1 == " X " && sqr4 == " X " && sqr7 == " X ") {
|
||||||
|
alert("Congrats, you've beat the computer!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr2 == " X " && sqr5 == " X " && sqr8 == " X ") {
|
||||||
|
alert("Congrats, you've beat the computer!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr3 == " X " && sqr6 == " X " && sqr9 == " X ") {
|
||||||
|
alert("Congrats, you've beat the computer!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr1 == " X " && sqr5 == " X " && sqr9 == " X ") {
|
||||||
|
alert("Congrats, you've beat the computer!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr3 == " X " && sqr5 == " X " && sqr7 == " X ") {
|
||||||
|
alert("Congrats, you've beat the computer!")
|
||||||
|
reset()
|
||||||
|
} else {
|
||||||
|
winCheck()
|
||||||
|
check2()
|
||||||
|
drawCheck()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function check2() {
|
||||||
|
vari()
|
||||||
|
drawCheck()
|
||||||
|
if (sqr1 == " O " && sqr2 == " O " && sqr3 == " O ") {
|
||||||
|
alert("Unfortunately, you've lost. Try again!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr4 == " O " && sqr5 == " O " && sqr6 == " O ") {
|
||||||
|
alert("Unfortunately, you've lost. Try again!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr7 == " O " && sqr8 == " O " && sqr9 == " O ") {
|
||||||
|
alert("Unfortunately, you've lost. Try again!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr1 == " O " && sqr5 == " O " && sqr9 == " O ") {
|
||||||
|
alert("Unfortunately, you've lost. Try again!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr1 == " O " && sqr4 == " O " && sqr7 == " O ") {
|
||||||
|
alert("Unfortunately, you've lost. Try again!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr2 == " O " && sqr5 == " O " && sqr8 == " O ") {
|
||||||
|
alert("Unfortunately, you've lost. Try again!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr3 == " O " && sqr6 == " O " && sqr9 == " O ") {
|
||||||
|
alert("Unfortunately, you've lost. Try again!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr1 == " O " && sqr5 == " O " && sqr9 == " O ") {
|
||||||
|
alert("Unfortunately, you've lost. Try again!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr3 == " O " && sqr5 == " O " && sqr7 == " O ") {
|
||||||
|
alert("Unfortunately, you've lost. Try again!")
|
||||||
|
reset()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function player1Check() {
|
||||||
|
if (sqr1 == " X " && sqr2 == " X " && sqr3 == " X ") {
|
||||||
|
alert("Woot! Player 1 has won!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr4 == " X " && sqr5 == " X " && sqr6 == " X ") {
|
||||||
|
alert("Woot! Player 1 has won!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr7 == " X " && sqr8 == " X " && sqr9 == " X ") {
|
||||||
|
alert("Woot! Player 1 has won!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr1 == " X " && sqr5 == " X " && sqr9 == " X ") {
|
||||||
|
alert("Woot! Player 1 has won!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr1 == " X " && sqr4 == " X " && sqr7 == " X ") {
|
||||||
|
alert("Woot! Player 1 has won!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr2 == " X " && sqr5 == " X " && sqr8 == " X ") {
|
||||||
|
alert("Woot! Player 1 has won!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr3 == " X " && sqr6 == " X " && sqr9 == " X ") {
|
||||||
|
alert("Woot! Player 1 has won!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr1 == " X " && sqr5 == " X " && sqr9 == " X ") {
|
||||||
|
alert("Woot! Player 1 has won!")
|
||||||
|
reset()
|
||||||
|
} else if (sqr3 == " X " && sqr5 == " X " && sqr7 == " X ") {
|
||||||
|
alert("Woot! Player 1 has won!")
|
||||||
|
reset()
|
||||||
|
} else {
|
||||||
|
player2Check()
|
||||||
|
drawCheck()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function player2Check() {
|
||||||
|
vari()
|
||||||
|
drawCheck()
|
||||||
|
if (sqr1 == " O " && sqr2 == " O " && sqr3 == " O ") {
|
||||||
|
alert("Blast. Player 2 has won.")
|
||||||
|
reset()
|
||||||
|
} else if (sqr4 == " O " && sqr5 == " O " && sqr6 == " O ") {
|
||||||
|
alert("Blast. Player 2 has won.")
|
||||||
|
reset()
|
||||||
|
} else if (sqr7 == " O " && sqr8 == " O " && sqr9 == " O ") {
|
||||||
|
alert("Blast. Player 2 has won.")
|
||||||
|
reset()
|
||||||
|
} else if (sqr1 == " O " && sqr5 == " O " && sqr9 == " O ") {
|
||||||
|
alert("Blast. Player 2 has won.")
|
||||||
|
reset()
|
||||||
|
} else if (sqr1 == " O " && sqr4 == " O " && sqr7 == " O ") {
|
||||||
|
alert("Blast. Player 2 has won.")
|
||||||
|
reset()
|
||||||
|
} else if (sqr2 == " O " && sqr5 == " O " && sqr8 == " O ") {
|
||||||
|
alert("Blast. Player 2 has won.")
|
||||||
|
reset()
|
||||||
|
} else if (sqr3 == " O " && sqr6 == " O " && sqr9 == " O ") {
|
||||||
|
alert("Blast. Player 2 has won.")
|
||||||
|
reset()
|
||||||
|
} else if (sqr1 == " O " && sqr5 == " O " && sqr9 == " O ") {
|
||||||
|
alert("Blast. Player 2 has won.")
|
||||||
|
reset()
|
||||||
|
} else if (sqr3 == " O " && sqr5 == " O " && sqr7 == " O ") {
|
||||||
|
alert("Blast. Player 2 has won.")
|
||||||
|
reset()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function drawCheck() {
|
||||||
|
vari()
|
||||||
|
moveCount = sqr1T + sqr2T + sqr3T + sqr4T + sqr5T + sqr6T + sqr7T + sqr8T + sqr9T
|
||||||
|
if (moveCount == 9) {
|
||||||
|
reset()
|
||||||
|
alert("You tied with the computer. Try harder next time!")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function winCheck() {
|
||||||
|
check2()
|
||||||
|
if (sqr1 == " O " && sqr2 == " O " && sqr3T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr3.value = " O "
|
||||||
|
sqr3T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr2 == " O " && sqr3 == " O " && sqr1T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr1.value = " O "
|
||||||
|
sqr1T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr4 == " O " && sqr5 == " O " && sqr6T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr6.value = " O "
|
||||||
|
sqr6T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr5 == " O " && sqr6 == " O " && sqr4T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr4.value = " O "
|
||||||
|
sqr4T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr7 == " O " && sqr8 == " O " && sqr9T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr9.value = " O "
|
||||||
|
sqr9T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr8 == " O " && sqr9 == " O " && sqr7T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr7.value = " O "
|
||||||
|
sqr7T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr1 == " O " && sqr5 == " O " && sqr9T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr9.value = " O "
|
||||||
|
sqr9T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr5 == " O " && sqr9 == " O " && sqr1T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr1.value = " O "
|
||||||
|
sqr1T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr3 == " O " && sqr5 == " O " && sqr7T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr7.value = " O "
|
||||||
|
sqr7T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr7 == " O " && sqr5 == " O " && sqr3T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr3.value = " O "
|
||||||
|
sqr3T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr1 == " O " && sqr3 == " O " && sqr2T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr2.value = " O "
|
||||||
|
sqr2T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr4 == " O " && sqr6 == " O " && sqr5T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr5.value = " O "
|
||||||
|
sqr5T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr7 == " O " && sqr9 == " O " && sqr8T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr8.value = " O "
|
||||||
|
sqr8T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr1 == " O " && sqr7 == " O " && sqr4T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr4.value = " O "
|
||||||
|
sqr4T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr2 == " O " && sqr8 == " O " && sqr5T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr5.value = " O "
|
||||||
|
sqr5T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr3 == " O " && sqr9 == " O " && sqr6T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr6.value = " O "
|
||||||
|
sqr6T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr1 == " O " && sqr5 == " O " && sqr9T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr9.value = " O "
|
||||||
|
sqr9T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr4 == " O " && sqr7 == " O " && sqr1T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr1.value = " O "
|
||||||
|
sqr1T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr5 == " O " && sqr8 == " O " && sqr2T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr2.value = " O "
|
||||||
|
sqr2T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr6 == " O " && sqr9 == " O " && sqr3T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr3.value = " O "
|
||||||
|
sqr3T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr1 == " O " && sqr4 == " O " && sqr7T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr7.value = " O "
|
||||||
|
sqr7T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr2 == " O " && sqr5 == " O " && sqr8T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr8.value = " O "
|
||||||
|
sqr8T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr3 == " O " && sqr6 == " O " && sqr9T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr9.value = " O "
|
||||||
|
sqr9T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr1 == " O " && sqr9 == " O " && sqr5T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr5.value = " O "
|
||||||
|
sqr5T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr3 == " O " && sqr7 == " O " && sqr5T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr5.value = " O "
|
||||||
|
sqr5T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else {
|
||||||
|
computer()
|
||||||
|
}
|
||||||
|
check2()
|
||||||
|
}
|
||||||
|
|
||||||
|
function computer() {
|
||||||
|
check2()
|
||||||
|
if (sqr1 == " X " && sqr2 == " X " && sqr3T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr3.value = " O "
|
||||||
|
sqr3T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr2 == " X " && sqr3 == " X " && sqr1T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr1.value = " O "
|
||||||
|
sqr1T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr4 == " X " && sqr5 == " X " && sqr6T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr6.value = " O "
|
||||||
|
sqr6T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr5 == " X " && sqr6 == " X " && sqr4T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr4.value = " O "
|
||||||
|
sqr4T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr7 == " X " && sqr8 == " X " && sqr9T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr9.value = " O "
|
||||||
|
sqr9T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr8 == " X " && sqr9 == " X " && sqr7T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr7.value = " O "
|
||||||
|
sqr7T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr1 == " X " && sqr5 == " X " && sqr9T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr9.value = " O "
|
||||||
|
sqr9T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr5 == " X " && sqr9 == " X " && sqr1T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr1.value = " O "
|
||||||
|
sqr1T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr3 == " X " && sqr5 == " X " && sqr7T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr7.value = " O "
|
||||||
|
sqr7T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr7 == " X " && sqr5 == " X " && sqr3T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr3.value = " O "
|
||||||
|
sqr3T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr1 == " X " && sqr3 == " X " && sqr2T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr2.value = " O "
|
||||||
|
sqr2T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr4 == " X " && sqr6 == " X " && sqr5T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr5.value = " O "
|
||||||
|
sqr5T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr7 == " X " && sqr9 == " X " && sqr8T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr8.value = " O "
|
||||||
|
sqr8T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr1 == " X " && sqr7 == " X " && sqr4T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr4.value = " O "
|
||||||
|
sqr4T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr2 == " X " && sqr8 == " X " && sqr5T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr5.value = " O "
|
||||||
|
sqr5T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr3 == " X " && sqr9 == " X " && sqr6T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr6.value = " O "
|
||||||
|
sqr6T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr1 == " X " && sqr5 == " X " && sqr9T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr9.value = " O "
|
||||||
|
sqr9T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr4 == " X " && sqr7 == " X " && sqr1T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr1.value = " O "
|
||||||
|
sqr1T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr5 == " X " && sqr8 == " X " && sqr2T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr2.value = " O "
|
||||||
|
sqr2T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr6 == " X " && sqr9 == " X " && sqr3T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr3.value = " O "
|
||||||
|
sqr3T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr1 == " X " && sqr4 == " X " && sqr7T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr7.value = " O "
|
||||||
|
sqr7T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr2 == " X " && sqr5 == " X " && sqr8T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr8.value = " O "
|
||||||
|
sqr8T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr3 == " X " && sqr6 == " X " && sqr9T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr9.value = " O "
|
||||||
|
sqr9T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr1 == " X " && sqr9 == " X " && sqr5T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr5.value = " O "
|
||||||
|
sqr5T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else if (sqr3 == " X " && sqr7 == " X " && sqr5T == 0 && turn == 1) {
|
||||||
|
document.tic.sqr5.value = " O "
|
||||||
|
sqr5T = 1;
|
||||||
|
turn = 0;
|
||||||
|
} else {
|
||||||
|
AI()
|
||||||
|
}
|
||||||
|
check2()
|
||||||
|
}
|
||||||
|
|
||||||
|
function AI() {
|
||||||
|
vari()
|
||||||
|
if (document.tic.sqr5.value == " " && turn == 1) {
|
||||||
|
document.tic.sqr5.value = " O "
|
||||||
|
turn = 0
|
||||||
|
sqr5T = 1
|
||||||
|
} else if (document.tic.sqr1.value == " " && turn == 1) {
|
||||||
|
document.tic.sqr1.value = " O "
|
||||||
|
turn = 0
|
||||||
|
sqr1T = 1
|
||||||
|
} else if (document.tic.sqr9.value == " " && turn == 1) {
|
||||||
|
document.tic.sqr9.value = " O "
|
||||||
|
turn = 0
|
||||||
|
sqr9T = 1
|
||||||
|
} else if (document.tic.sqr6.value == " " && turn == 1) {
|
||||||
|
document.tic.sqr6.value = " O "
|
||||||
|
turn = 0
|
||||||
|
sqr6T = 1
|
||||||
|
} else if (document.tic.sqr2.value == " " && turn == 1) {
|
||||||
|
document.tic.sqr2.value = " O "
|
||||||
|
turn = 0
|
||||||
|
sqr2T = 1
|
||||||
|
} else if (document.tic.sqr8.value == " " && turn == 1) {
|
||||||
|
document.tic.sqr8.value = " O "
|
||||||
|
turn = 0
|
||||||
|
sqr8T = 1
|
||||||
|
} else if (document.tic.sqr3.value == " " && turn == 1) {
|
||||||
|
document.tic.sqr3.value = " O "
|
||||||
|
turn = 0
|
||||||
|
sqr3T = 1
|
||||||
|
} else if (document.tic.sqr7.value == " " && turn == 1) {
|
||||||
|
document.tic.sqr7.value = " O "
|
||||||
|
turn = 0
|
||||||
|
sqr7T = 1
|
||||||
|
} else if (document.tic.sqr4.value == " " && turn == 1) {
|
||||||
|
document.tic.sqr4.value = " O "
|
||||||
|
turn = 0
|
||||||
|
sqr4T = 1
|
||||||
|
}
|
||||||
|
check2()
|
||||||
|
}
|
||||||
|
|
||||||
|
function reset() {
|
||||||
|
document.tic.sqr1.value = " "
|
||||||
|
document.tic.sqr2.value = " "
|
||||||
|
document.tic.sqr3.value = " "
|
||||||
|
document.tic.sqr4.value = " "
|
||||||
|
document.tic.sqr5.value = " "
|
||||||
|
document.tic.sqr6.value = " "
|
||||||
|
document.tic.sqr7.value = " "
|
||||||
|
document.tic.sqr8.value = " "
|
||||||
|
document.tic.sqr9.value = " "
|
||||||
|
sqr1T = 0
|
||||||
|
sqr2T = 0
|
||||||
|
sqr3T = 0
|
||||||
|
sqr4T = 0
|
||||||
|
sqr5T = 0
|
||||||
|
sqr6T = 0
|
||||||
|
sqr7T = 0
|
||||||
|
sqr8T = 0
|
||||||
|
sqr9T = 0
|
||||||
|
vari()
|
||||||
|
turn = 0
|
||||||
|
moveCount = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
function resetter() {
|
||||||
|
reset()
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<section id="cover">
|
||||||
|
<div class="cover" style="background-image: url('/assets/images/Covers/BlogPosts/BlueCheckers.png');"> </div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section id="body">
|
||||||
|
<div style="width: 100%; margin-bottom: 4px; height: 1px;"> </div>
|
||||||
|
|
||||||
|
<h1>Set's Tic-Tac-Toe</h1>
|
||||||
|
|
||||||
|
<form name="tic" style="width: 50%; display: block; margin: 0px auto; padding: 12px 0px;">
|
||||||
|
<center>
|
||||||
|
<input type="button" name="sqr1" class="tictac" value=" " onClick="if(document.tic.sqr1.value == ' ' && turn == 0 && mode == 1) {document.tic.sqr1.value = ' X '; sqr1T = 1; turn = 1; vari(); check();} else if(document.tic.sqr1.value == ' ' && turn == 1 && mode == 2) {document.tic.sqr1.value = ' X '; sqr1T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr1.value == ' ' && turn == 0 && mode == 2) {document.tic.sqr1.value = ' O '; sqr1T = 1; turn = 1; vari(); player1Check()} drawCheck()"></INPUT>
|
||||||
|
<input type="button" name="sqr2" class="tictac" value=" " onClick="if(document.tic.sqr2.value == ' ' && turn == 0 && mode == 1) {document.tic.sqr2.value = ' X '; sqr2T = 1; turn = 1; vari(); check();} else if(document.tic.sqr2.value == ' ' && turn == 1 && mode == 2) {document.tic.sqr2.value = ' X '; sqr2T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr2.value == ' ' && turn == 0 && mode == 2) {document.tic.sqr2.value = ' O '; sqr2T = 1; turn = 1; vari(); player1Check()} drawCheck()"></INPUT>
|
||||||
|
<input type="button" name="sqr3" class="tictac" value=" " onClick="if(document.tic.sqr3.value == ' ' && turn == 0 && mode == 1) {document.tic.sqr3.value = ' X '; sqr3T = 1; turn = 1; vari(); check();} else if(document.tic.sqr3.value == ' ' && turn == 1 && mode == 2) {document.tic.sqr3.value = ' X '; sqr3T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr3.value == ' ' && turn == 0 && mode == 2) {document.tic.sqr3.value = ' O '; sqr3T = 1; turn = 1; vari(); player1Check()} drawCheck()"></INPUT><br />
|
||||||
|
<input type="button" name="sqr4" class="tictac" value=" " onClick="if(document.tic.sqr4.value == ' ' && turn == 0 && mode == 1) {document.tic.sqr4.value = ' X '; sqr4T = 1; turn = 1; vari(); check();} else if(document.tic.sqr4.value == ' ' && turn == 1 && mode == 2) {document.tic.sqr4.value = ' X '; sqr4T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr4.value == ' ' && turn == 0 && mode == 2) {document.tic.sqr4.value = ' O '; sqr4T = 1; turn = 1; vari(); player1Check()} drawCheck()"></INPUT>
|
||||||
|
<input type="button" name="sqr5" class="tictac" value=" " onClick="if(document.tic.sqr5.value == ' ' && turn == 0 && mode == 1) {document.tic.sqr5.value = ' X '; sqr5T = 1; turn = 1; vari(); check();} else if(document.tic.sqr5.value == ' ' && turn == 1 && mode == 2) {document.tic.sqr5.value = ' X '; sqr5T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr5.value == ' ' && turn == 0 && mode == 2) {document.tic.sqr5.value = ' O '; sqr5T = 1; turn = 1; vari(); player1Check()} drawCheck()"></INPUT>
|
||||||
|
<input type="button" name="sqr6" class="tictac" value=" " onClick="if(document.tic.sqr6.value == ' ' && turn == 0 && mode == 1) {document.tic.sqr6.value = ' X '; sqr6T = 1; turn = 1; vari(); check();} else if(document.tic.sqr6.value == ' ' && turn == 1 && mode == 2) {document.tic.sqr6.value = ' X '; sqr6T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr6.value == ' ' && turn == 0 && mode == 2) {document.tic.sqr6.value = ' O '; sqr6T = 1; turn = 1; vari(); player1Check()} drawCheck()"></INPUT><br />
|
||||||
|
<input type="button" name="sqr7" class="tictac" value=" " onClick="if(document.tic.sqr7.value == ' ' && turn == 0 && mode == 1) {document.tic.sqr7.value = ' X '; sqr7T = 1; turn = 1; vari(); check();} else if(document.tic.sqr7.value == ' ' && turn == 1 && mode == 2) {document.tic.sqr7.value = ' X '; sqr7T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr7.value == ' ' && turn == 0 && mode == 2) {document.tic.sqr7.value = ' O '; sqr7T = 1; turn = 1; vari(); player1Check()} drawCheck()"></INPUT>
|
||||||
|
<input type="button" name="sqr8" class="tictac" value=" " onClick="if(document.tic.sqr8.value == ' ' && turn == 0 && mode == 1) {document.tic.sqr8.value = ' X '; sqr8T = 1; turn = 1; vari(); check();} else if(document.tic.sqr8.value == ' ' && turn == 1 && mode == 2) {document.tic.sqr8.value = ' X '; sqr8T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr8.value == ' ' && turn == 0 && mode == 2) {document.tic.sqr8.value = ' O '; sqr8T = 1; turn = 1; vari(); player1Check()} drawCheck()"></INPUT>
|
||||||
|
<input type="button" name="sqr9" class="tictac" value=" " onClick="if(document.tic.sqr9.value == ' ' && turn == 0 && mode == 1) {document.tic.sqr9.value = ' X '; sqr9T = 1; turn = 1; vari(); check();} else if(document.tic.sqr9.value == ' ' && turn == 1 && mode == 2) {document.tic.sqr9.value = ' X '; sqr9T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr9.value == ' ' && turn == 0 && mode == 2) {document.tic.sqr9.value = ' O '; sqr9T = 1; turn = 1; vari(); player1Check()} drawCheck()"></INPUT>
|
||||||
|
</center>
|
||||||
|
</form>
|
||||||
|
</section>
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #425b5c;">
|
|
||||||
<center><img src="../../Images/General/PerryCantTouch2.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,32 +0,0 @@
|
||||||
<footer>
|
|
||||||
<div class="box">
|
|
||||||
<div style="padding-top: 8px;">
|
|
||||||
<section class="splash">
|
|
||||||
<img src="../Resources/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&C</a> <br />
|
|
||||||
<p style="width: 200px; margin: 0px auto;">
|
|
||||||
Copyright © 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>
|
|
|
@ -1,59 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<title>Blog | 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" />
|
|
||||||
|
|
||||||
<!--[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
|
|
||||||
include('../Resources/Scripts/PHP/Library.php');
|
|
||||||
require_once('../Resources/Scripts/PHP/SuperNav.php');
|
|
||||||
|
|
||||||
$display = new DisplayModule();
|
|
||||||
?>
|
|
||||||
|
|
||||||
<header>
|
|
||||||
<img class="Logo" src="../Resources/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.php">Blog</a></li>
|
|
||||||
<li><a class="navLink" href="http://forums.madsplash.net/">Forums</a></li>
|
|
||||||
|
|
||||||
<li class="dropdown">
|
|
||||||
<a class="dropLink" href="../projects.php">Projects</a>
|
|
||||||
|
|
||||||
<div class="drop">
|
|
||||||
<section>
|
|
||||||
<a style="font: bold 18px Arial, Geneva, sans-serif;" href="../projects.php?a=main&type=game">Games</a>
|
|
||||||
<a style="font: bold 18px Arial, Geneva, sans-serif;" href="../projects.php?a=main&type=book">Books</a>
|
|
||||||
<a style="font: bold 18px Arial, Geneva, sans-serif;" href="../projects.php?a=main&type=show">Shows</a>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<div class="clear"> </div>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<section id="HBIG">
|
|
||||||
<h1>THE BLOG</h1>
|
|
||||||
|
|
||||||
<img src="../Resources/Images/General/SkyDrawn.png" style="position: absolute; right: 22px; top: 16px; float: right;" />
|
|
||||||
</section>
|
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #425b5c;">
|
|
||||||
<center><img src="../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,27 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
define('SAFE', true);
|
|
||||||
|
|
||||||
$LockedPages = array();
|
|
||||||
|
|
||||||
include("Pieces/header.htm");
|
|
||||||
|
|
||||||
if (!empty($_GET['do'])) {
|
|
||||||
$do = "list";
|
|
||||||
|
|
||||||
$TmpDo = basename($_GET['do']);
|
|
||||||
|
|
||||||
// If it's not a disallowed path, and if the file exists, update $do
|
|
||||||
if (!in_array($TmpDo, $LockedPages) && file_exists("Pieces/Blog/{$TmpDo}.htm")) {
|
|
||||||
$do = $TmpDo;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$do = "list";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Include $page
|
|
||||||
include("Pieces/Blog/$do.htm");
|
|
||||||
|
|
||||||
include("Pieces/footer.htm");
|
|
||||||
|
|
||||||
?>
|
|
|
@ -1,32 +0,0 @@
|
||||||
<footer>
|
|
||||||
<div class="box">
|
|
||||||
<div style="padding-top: 8px;">
|
|
||||||
<section class="splash">
|
|
||||||
<img src="../Resources/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&C</a> <br />
|
|
||||||
<p style="width: 200px; margin: 0px auto;">
|
|
||||||
Copyright © 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>
|
|
|
@ -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="../Resources/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>
|
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
if(!defined('SAFE')) {
|
|
||||||
$page = <<<CANTTOUCH
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="padding:0px; margin:0px; background-color: #425b5c;">
|
|
||||||
<center><img src="../../Images/General/CantTouchThis.png" /></center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
CANTTOUCH;
|
|
||||||
|
|
||||||
die($page);
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,25 +0,0 @@
|
||||||
<?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");
|
|
||||||
?>
|
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
define('SAFE', true);
|
|
||||||
|
|
||||||
$LockedPages = array();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!empty($_GET['code']) && !empty($_GET['username'])) {
|
|
||||||
include("Pieces/header.htm");
|
|
||||||
|
|
||||||
include("Pieces/Community/verify.htm");
|
|
||||||
|
|
||||||
include("Pieces/footer.htm");
|
|
||||||
} else {
|
|
||||||
header('Location: http://localhost:8888/index.php');
|
|
||||||
}
|
|
||||||
?>
|
|
29
index.php
|
@ -1,29 +0,0 @@
|
||||||
<?php
|
|
||||||
define('SAFE', true);
|
|
||||||
|
|
||||||
$LockedPages = array();
|
|
||||||
|
|
||||||
include("Pieces/header.htm");
|
|
||||||
|
|
||||||
if (!empty($_GET['page'])) {
|
|
||||||
$page = "home";
|
|
||||||
|
|
||||||
$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/{$TmpPage}.htm")) {
|
|
||||||
$page = $TmpPage;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$page = "home";
|
|
||||||
}
|
|
||||||
|
|
||||||
if($page == "home") {
|
|
||||||
include("Pieces/slider.htm");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Include $page
|
|
||||||
include("Pieces/$page.htm");
|
|
||||||
|
|
||||||
include("Pieces/footer.htm");
|
|
||||||
?>
|
|
|
@ -1,32 +0,0 @@
|
||||||
<footer>
|
|
||||||
<div class="box">
|
|
||||||
<div style="padding-top: 8px;">
|
|
||||||
<section class="splash">
|
|
||||||
<img src="../Resources/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&C</a> <br />
|
|
||||||
<p style="width: 200px; margin: 0px auto;">
|
|
||||||
Copyright © 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>
|
|
|
@ -1,53 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<title>Blog | 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" />
|
|
||||||
|
|
||||||
<!--[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
|
|
||||||
include('../Resources/Scripts/PHP/Library.php');
|
|
||||||
require_once('../Resources/Scripts/PHP/SuperNav.php');
|
|
||||||
|
|
||||||
$display = new DisplayModule();
|
|
||||||
?>
|
|
||||||
|
|
||||||
<header>
|
|
||||||
<img class="Logo" src="../Resources/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.php">Blog</a></li>
|
|
||||||
<li><a class="navLink" href="http://forums.madsplash.net/">Forums</a></li>
|
|
||||||
|
|
||||||
<li class="dropdown">
|
|
||||||
<a class="dropLink" href="../projects.php">Projects</a>
|
|
||||||
|
|
||||||
<div class="drop">
|
|
||||||
<section>
|
|
||||||
<a style="font: bold 18px Arial, Geneva, sans-serif;" href="../projects.php?a=main&type=game">Games</a>
|
|
||||||
<a style="font: bold 18px Arial, Geneva, sans-serif;" href="../projects.php?a=main&type=book">Books</a>
|
|
||||||
<a style="font: bold 18px Arial, Geneva, sans-serif;" href="../projects.php?a=main&type=show">Shows</a>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<div class="clear"> </div>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
|
@ -1,60 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
define('SAFE', true);
|
|
||||||
|
|
||||||
include("Pieces/header.htm");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$CommentForm = GetTemplate('comments/episodeform');
|
|
||||||
|
|
||||||
if(!empty($_GET['show'])) { $showid = $_GET['show']; } else { $showid = 1; }
|
|
||||||
|
|
||||||
if(!empty($_GET['episode'])) { $epnum = $_GET['episode']; } else { $epnum = 1; }
|
|
||||||
|
|
||||||
$episode = new Show($showid);
|
|
||||||
$epdata = $episode->EpisodeArray[$epnum - 1];
|
|
||||||
|
|
||||||
|
|
||||||
if($epdata['comments'] == 1) { $oneOrMore = $epdata['comments'] . " Comment"; } else { $oneOrMore = $epdata['comments'] . " Comments"; }
|
|
||||||
|
|
||||||
if($epdata['comments'] == 0) {
|
|
||||||
|
|
||||||
$epComments = '<p style="padding: 4px 8px;">No comments? Be the first to comment on this video!</p>';
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
$epComments = $episode->GetEpisodeComments($_GET['episode']);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!empty($_COOKIE['MadSplashUser'])) { $form = ParseTemplate($CommentForm, array('epid' => $_GET['episode'], 'id' => $_GET['show'])); } else { $form = ''; }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$data = array(
|
|
||||||
't' => $epdata['title'],
|
|
||||||
'l' => $epdata['embed'],
|
|
||||||
'd' => $epdata['description'],
|
|
||||||
'thumb' => $episode->Thumbnail,
|
|
||||||
'comments' => $epComments,
|
|
||||||
'ccount' => $oneOrMore,
|
|
||||||
'form' => $form
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
include("Pieces/Templates/show.php");
|
|
||||||
|
|
||||||
foreach($data as $a => $b) {
|
|
||||||
|
|
||||||
$template = str_replace("{{{" . $a . "}}}", $b, $template);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $template;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
include("Pieces/footer.htm");
|
|
||||||
|
|
||||||
?>
|
|
56
public/assets/css/CustomFonts.css
Executable file
|
@ -0,0 +1,56 @@
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Bebas';
|
||||||
|
src: url('/assets/fonts/BebasNeue-webfont.eot');
|
||||||
|
src: url('/assets/fonts/BebasNeue-webfont.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('/assets/fonts/BebasNeue-webfont.woff') format('woff'),
|
||||||
|
url('/assets/fonts/BebasNeue-webfont.ttf') format('truetype'),
|
||||||
|
url('/assets/fonts/BebasNeue-webfont.svg#BebasNeueRegular') format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "Minecraft";
|
||||||
|
src: url("/assets/fonts/Minecraft_font.eot?") format("eot"),
|
||||||
|
url("/assets/fonts/Minecraft_font.woff") format("woff"),
|
||||||
|
url("/assets/fonts/Minecraft_font.ttf") format("truetype"),
|
||||||
|
url("/assets/fonts/Minecraft_font.svg#Minecraft") format("svg");
|
||||||
|
font-weight:normal;
|
||||||
|
font-style:normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Candara';
|
||||||
|
src: url('/assets/fonts/candara-webfont.eot');
|
||||||
|
src: url('/assets/fonts/candara-webfont.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('/assets/fonts/candara-webfont.woff') format('woff'),
|
||||||
|
url('/assets/fonts/candara-webfont.ttf') format('truetype'),
|
||||||
|
url('/assets/fonts/candara-webfont.svg#CandaraRegular') format('svg');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'CandaraB';
|
||||||
|
src: url('/assets/fonts/candarab-webfont.eot');
|
||||||
|
src: url('/assets/fonts/candarab-webfont.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('/assets/fonts/candarab-webfont.woff') format('woff'),
|
||||||
|
url('/assets/fonts/candarab-webfont.ttf') format('truetype'),
|
||||||
|
url('/assets/fonts/candarab-webfont.svg#CandaraBold') format('svg');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Handwriting';
|
||||||
|
src: url('/assets/fonts/SF_Arch_Rival-webfont.eot');
|
||||||
|
src: url('/assets/fonts/SF_Arch_Rival-webfont.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('/assets/fonts/SF_Arch_Rival-webfont.woff') format('woff'),
|
||||||
|
url('/assets/fonts/SF_Arch_Rival-webfont.ttf') format('truetype'),
|
||||||
|
url('/assets/fonts/SF_Arch_Rival-webfont.svg#sf_arch_rivalregular') format('svg');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'ZeroNero';
|
||||||
|
src: url('/assets/fonts/zeronero-webfont.eot');
|
||||||
|
src: url('/assets/fonts/zeronero-webfont.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('/assets/fonts/zeronero-webfont.woff') format('woff'),
|
||||||
|
url('/assets/fonts/zeronero-webfont.ttf') format('truetype'),
|
||||||
|
url('/assets/fonts/zeronero-webfont.svg#zeroneroblack') format('svg');
|
||||||
|
}
|
|
@ -2,7 +2,7 @@
|
||||||
* { margin: 0; padding: 0; border: none; }
|
* { margin: 0; padding: 0; border: none; }
|
||||||
*:focus { outline: none !important; }
|
*:focus { outline: none !important; }
|
||||||
|
|
||||||
html { background: #cacbca url('../Images/Backgrounds/NewOceanWave.jpg') fixed;
|
html { background: #cacbca url(/assets/images/Backgrounds/NewOceanWave.jpg) fixed;
|
||||||
-webkit-background-size: cover; -o-background-size: cover; background-size: cover; }
|
-webkit-background-size: cover; -o-background-size: cover; background-size: cover; }
|
||||||
|
|
||||||
body { font: 14px Arial, Helvetica, Geneva, sans-serif; margin: 0px 0px 0px 0px; color: #444; line-height: 18px; }
|
body { font: 14px Arial, Helvetica, Geneva, sans-serif; margin: 0px 0px 0px 0px; color: #444; line-height: 18px; }
|
||||||
|
@ -24,9 +24,9 @@ header {
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
border-top: 4px solid #4aa1ef;
|
border-top: 4px solid #4aa1ef;
|
||||||
|
|
||||||
background: #fffffe url('../Images/Backgrounds/Wave3.png') no-repeat right top;
|
background: #fffffe url('../Images/Backgrounds/Wave3.png') no-repeat right top;
|
||||||
|
|
||||||
box-shadow: 0px 2px 5px rgba(100, 100, 100, 0.5);
|
box-shadow: 0px 2px 5px rgba(100, 100, 100, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,6 @@ img.Logo {
|
||||||
height: 130px;
|
height: 130px;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-right: 24px;
|
margin-right: 24px;
|
||||||
display: inline-block;
|
|
||||||
transform: rotate(-2deg);
|
transform: rotate(-2deg);
|
||||||
-ms-transform: rotate(-2deg); /* IE 9 */
|
-ms-transform: rotate(-2deg); /* IE 9 */
|
||||||
-webkit-transform: rotate(-2deg); /* Safari and Chrome */
|
-webkit-transform: rotate(-2deg); /* Safari and Chrome */
|
||||||
|
@ -53,22 +52,21 @@ nav {
|
||||||
top: 61px;
|
top: 61px;
|
||||||
float: right;
|
float: right;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nav ul { list-style: none; }
|
nav ul { list-style: none; }
|
||||||
nav ul li {
|
nav ul li {
|
||||||
color: #666;
|
color: #666;
|
||||||
line-height: 45px;
|
line-height: 45px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
margin-right: 12px;
|
margin-right: 12px;
|
||||||
padding: 0px 8px;
|
padding: 0px 8px;
|
||||||
position: relative;
|
position: relative;
|
||||||
font: 32px "Bebas", "Helvetica Neue", Arial, Helvetica, sans-serif;
|
font: 32px "Bebas", "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||||||
}
|
}
|
||||||
nav ul li:hover { color: #5aaffa; }
|
nav ul li:hover { color: #5aaffa; }
|
||||||
nav ul li.dropdown div.drop { visibility: hidden; opacity: 0; position: absolute; left: 0; max-width: 210px;
|
nav ul li.dropdown div.drop { visibility: hidden; opacity: 0; position: absolute; left: 0; max-width: 210px;
|
||||||
padding: 10px 10px; }
|
padding: 10px 10px; }
|
||||||
nav ul li.dropdown:hover { background-color: #666; }
|
nav ul li.dropdown:hover { background-color: #666; }
|
||||||
nav ul li.dropdown:hover div.drop {
|
nav ul li.dropdown:hover div.drop {
|
||||||
|
@ -78,18 +76,18 @@ nav ul li.dropdown:hover div.drop {
|
||||||
background-color: #666;
|
background-color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.drop section { min-height: 100px; max-width: 210px; min-width: 120px; display: inline-block; float: left; }
|
div.drop section { min-height: 100px; max-width: 210px; min-width: 120px; float: left; }
|
||||||
div.drop h2 { font: bold 26px "Bebas", Arial, Geneva, sans-serif; color: white; margin-bottom: -2px; }
|
div.drop h2 { font: bold 26px "Bebas", Arial, Geneva, sans-serif; color: white; margin-bottom: -2px; }
|
||||||
|
|
||||||
nav ul li a.navLink, nav ul li a.dropLink { color: inherit !important; }
|
nav ul li a.navLink, nav ul li a.dropLink { color: inherit !important; }
|
||||||
nav ul li a.navLink:hover { text-decoration: none; }
|
nav ul li a.navLink:hover { text-decoration: none; }
|
||||||
nav ul li.dropdown:hover a.dropLink { color: white !important; }
|
nav ul li.dropdown:hover a.dropLink { color: white !important; }
|
||||||
nav ul li.dropdown a.dropLink:after {
|
nav ul li.dropdown a.dropLink:after {
|
||||||
content: ' v';
|
content: ' v';
|
||||||
position: relative;
|
position: relative;
|
||||||
bottom: 7px;
|
bottom: 7px;
|
||||||
left: 1px;
|
left: 1px;
|
||||||
font: bold 16px sans-serif;
|
font: bold 16px sans-serif;
|
||||||
color: #41adf6;
|
color: #41adf6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,8 +150,8 @@ section#body {
|
||||||
section#leftColumn { width: 600px; float: left; padding: 2px 8px 8px 8px; }
|
section#leftColumn { width: 600px; float: left; padding: 2px 8px 8px 8px; }
|
||||||
|
|
||||||
section#rightColumn { width: 332px; float: right; border-left: 2px solid #dfdfdf; padding-left: 8px; padding-bottom: 8px; }
|
section#rightColumn { width: 332px; float: right; border-left: 2px solid #dfdfdf; padding-left: 8px; padding-bottom: 8px; }
|
||||||
section#rightColumn2 {
|
section#rightColumn2 {
|
||||||
width: 332px;
|
width: 332px;
|
||||||
float: right;
|
float: right;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
padding: 8px 0px 0px 4px;
|
padding: 8px 0px 0px 4px;
|
||||||
|
@ -165,7 +163,7 @@ section#singleColumn { width: 99%; margin: 0px auto !important; padding-bottom:
|
||||||
/* ------------------------------------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------------------------------------- */
|
||||||
/* ------------------------------------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
color: #555;
|
color: #555;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
text-shadow: 0px 1px 2px rgba(86, 86, 86, 0.1);
|
text-shadow: 0px 1px 2px rgba(86, 86, 86, 0.1);
|
||||||
|
@ -177,7 +175,7 @@ section#rightColumn2 h1:after { content: none; }
|
||||||
|
|
||||||
span.error { display: block; color: #FF5353; margin-top: -4px; padding-bottom: 4px; }
|
span.error { display: block; color: #FF5353; margin-top: -4px; padding-bottom: 4px; }
|
||||||
|
|
||||||
h1.H1-2 { font: bold 36px Arial, Geneva, sans-serif; margin-bottom: 16px;
|
h1.H1-2 { font: bold 36px Arial, Geneva, sans-serif; margin-bottom: 16px;
|
||||||
text-shadow: 0px 1px 2px rgba(86, 86, 86, 0.1); }
|
text-shadow: 0px 1px 2px rgba(86, 86, 86, 0.1); }
|
||||||
h1.H1-2:after { content: none; }
|
h1.H1-2:after { content: none; }
|
||||||
|
|
||||||
|
@ -186,12 +184,12 @@ h2 { font: 42px "Bebas", Arial, Geneva, sans-serif; }
|
||||||
section#rightColumn2 section { margin-bottom: 6px; }
|
section#rightColumn2 section { margin-bottom: 6px; }
|
||||||
|
|
||||||
section#cover { width: 960px; margin: 0px auto; height: 250px; position: relative; z-index: -100; background-color: #666; }
|
section#cover { width: 960px; margin: 0px auto; height: 250px; position: relative; z-index: -100; background-color: #666; }
|
||||||
section#cover div.cover {
|
section#cover div.cover {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 250px;
|
height: 250px;
|
||||||
display: block;
|
display: block;
|
||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------------------------------------- */
|
||||||
|
@ -211,16 +209,16 @@ section#HBIG h1 {
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 54px;
|
top: 54px;
|
||||||
color: #2382dc;
|
color: #2382dc;
|
||||||
|
|
||||||
text-shadow: 1px 1px 0px #165086, 2px 2px 0px #165086;
|
text-shadow: 1px 1px 0px #165086, 2px 2px 0px #165086;
|
||||||
}
|
}
|
||||||
section#HBIG h1:after {
|
section#HBIG h1:after {
|
||||||
content: 'v';
|
content: 'v';
|
||||||
position: relative;
|
position: relative;
|
||||||
bottom: 1px;
|
bottom: 1px;
|
||||||
left: 1px;
|
left: 1px;
|
||||||
font: bold 36px Impact, sans-serif; color: #dc2323;
|
font: bold 36px Impact, sans-serif; color: #dc2323;
|
||||||
|
|
||||||
text-shadow: 1px 1px 0px #7b1414, 2px 2px 0px #7b1414;
|
text-shadow: 1px 1px 0px #7b1414, 2px 2px 0px #7b1414;
|
||||||
}
|
}
|
||||||
section#HBIG h1.noA:after {
|
section#HBIG h1.noA:after {
|
||||||
|
@ -229,11 +227,11 @@ section#HBIG h1.noA:after {
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------------------------------------- */
|
||||||
/* ------------------------------------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
ul.BBCodeButtons { list-style: none; }
|
ul.BBCodeButtons { list-style: none; }
|
||||||
ul.BBCodeButtons li { display: inline; }
|
ul.BBCodeButtons li { display: inline; }
|
||||||
|
|
||||||
span.BBCButton {
|
span.BBCButton {
|
||||||
color: #888;
|
color: #888;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin: 0px -2px;
|
margin: 0px -2px;
|
||||||
|
@ -279,7 +277,7 @@ a.latestArticle div.headline {
|
||||||
a.latestArticle img { height: 100%; position: relative; right: 72px; z-index: 75; }
|
a.latestArticle img { height: 100%; position: relative; right: 72px; z-index: 75; }
|
||||||
a.latestArticle:hover div.headline { color: #4aa1ef; }
|
a.latestArticle:hover div.headline { color: #4aa1ef; }
|
||||||
a.latestArticle:hover { cursor: pointer; }
|
a.latestArticle:hover { cursor: pointer; }
|
||||||
a.latestArticle div.cBox { min-width: 24px; height: 24px; background-color: #4aa1ef; color: #fefefe;
|
a.latestArticle div.cBox { min-width: 24px; height: 24px; background-color: #4aa1ef; color: #fefefe;
|
||||||
position: absolute; top: 0; right: 0; border: 4px solid #fffffe; z-index: 100;
|
position: absolute; top: 0; right: 0; border: 4px solid #fffffe; z-index: 100;
|
||||||
font: bold 18px "ZeroNero", Arial, Geneva, sans-serif; }
|
font: bold 18px "ZeroNero", Arial, Geneva, sans-serif; }
|
||||||
a.latestArticle div.cBox span { min-width: 24px; padding: 0px 4px 0px 4px; position: relative; top: 4px; }
|
a.latestArticle div.cBox span { min-width: 24px; padding: 0px 4px 0px 4px; position: relative; top: 4px; }
|
||||||
|
@ -309,7 +307,7 @@ a.article div.headline {
|
||||||
a.article img { height: 69%; position: relative; right: 6px; z-index: 75; }
|
a.article img { height: 69%; position: relative; right: 6px; z-index: 75; }
|
||||||
a.article:hover div.headline { color: #4aa1ef; }
|
a.article:hover div.headline { color: #4aa1ef; }
|
||||||
a.article:hover { cursor: pointer; }
|
a.article:hover { cursor: pointer; }
|
||||||
a.article div.cBox { min-width: 24px; height: 24px; background-color: #4aa1ef; color: #fefefe;
|
a.article div.cBox { min-width: 24px; height: 24px; background-color: #4aa1ef; color: #fefefe;
|
||||||
position: absolute; bottom: 40px; right: 0; border: 4px solid #fffffe; z-index: 100;
|
position: absolute; bottom: 40px; right: 0; border: 4px solid #fffffe; z-index: 100;
|
||||||
font: bold 18px "ZeroNero", Arial, Geneva, sans-serif; }
|
font: bold 18px "ZeroNero", Arial, Geneva, sans-serif; }
|
||||||
a.article div.cBox span { min-width: 24px; padding: 0px 4px 0px 4px; position: relative; top: 4px; }
|
a.article div.cBox span { min-width: 24px; padding: 0px 4px 0px 4px; position: relative; top: 4px; }
|
||||||
|
@ -321,7 +319,7 @@ div#articleComment { background-color: #efefef; width: 100%; min-height: 80px; m
|
||||||
|
|
||||||
div#articleComment div.left { width: 20%; }
|
div#articleComment div.left { width: 20%; }
|
||||||
div#articleComment div.left img { max-width: 60%; margin: 8px auto 4px auto; display: block; }
|
div#articleComment div.left img { max-width: 60%; margin: 8px auto 4px auto; display: block; }
|
||||||
div#articleComment div.left a { font: 12px "ZeroNero", Arial, Geneva, sans-serif; text-align: center; display: block;
|
div#articleComment div.left a { font: 12px "ZeroNero", Arial, Geneva, sans-serif; text-align: center; display: block;
|
||||||
width: 100%; }
|
width: 100%; }
|
||||||
|
|
||||||
div#articleComment div.right { width: 78%; }
|
div#articleComment div.right { width: 78%; }
|
||||||
|
@ -356,7 +354,7 @@ a.more:hover { color: #333; }
|
||||||
div#tweet {
|
div#tweet {
|
||||||
width: 294px;
|
width: 294px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
@ -369,16 +367,16 @@ ul.articleList { list-style: none; }
|
||||||
ul.articleList li { border-bottom: 2px solid #dfdfdf; padding-bottom: 8px; margin-bottom: 16px; }
|
ul.articleList li { border-bottom: 2px solid #dfdfdf; padding-bottom: 8px; margin-bottom: 16px; }
|
||||||
ul.articleList li:last-child { border: none; }
|
ul.articleList li:last-child { border: none; }
|
||||||
ul.articleList li img.cover { display: block; width: 96%; margin: 6px auto; max-height: 210px; }
|
ul.articleList li img.cover { display: block; width: 96%; margin: 6px auto; max-height: 210px; }
|
||||||
ul.articleList li p { width: 98%; margin: 0px auto; display: block; word-break: break-word; position: relative;
|
ul.articleList li p { width: 98%; margin: 0px auto; display: block; word-break: break-word; position: relative;
|
||||||
left: 3px; }
|
left: 3px; }
|
||||||
ul.articleList li section.head { font-family: "Bebas", Arial, Geneva, sans-serif; font-weight: bold; }
|
ul.articleList li section.head { font-family: "Bebas", Arial, Geneva, sans-serif; font-weight: bold; }
|
||||||
ul.articleList li section.head h2 { font-size: 32px; float: left; color: #008be8; }
|
ul.articleList li section.head h2 { font-size: 32px; float: left; color: #008be8; }
|
||||||
ul.articleList li section.head div.comments {
|
ul.articleList li section.head div.comments {
|
||||||
float: right;
|
float: right;
|
||||||
color: white;
|
color: white;
|
||||||
top: 6px;
|
top: 6px;
|
||||||
right: 12px;
|
right: 12px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
padding: 2px 4px;
|
padding: 2px 4px;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: #008be8;
|
background-color: #008be8;
|
||||||
|
@ -406,16 +404,16 @@ section#rightColumn2 section {
|
||||||
section#rightColumn2 section:last-of-type {
|
section#rightColumn2 section:last-of-type {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.featured div.miniCover { width: 99%; margin: 0px auto 8px auto; height: 100px; overflow: hidden; }
|
div.featured div.miniCover { width: 99%; margin: 0px auto 8px auto; height: 100px; overflow: hidden; }
|
||||||
div.featured img.miniCover { width: 100%; position: relative; }
|
div.featured img.miniCover { width: 100%; position: relative; }
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------------------------------------- */
|
||||||
/* ------------------------------------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
div#categoryNav { background-color: #555; height: 32px; position: relative; bottom: 5px;
|
div#categoryNav { background-color: #555; height: 32px; position: relative; bottom: 5px;
|
||||||
box-shadow: 0px 3px 3px rgba(65, 65, 65, 0.3); }
|
box-shadow: 0px 3px 3px rgba(65, 65, 65, 0.3); }
|
||||||
div#categoryNav a { height: 32px; width: 100px; color: #fff; display: inline-block; text-align: center; font-weight: bold;
|
div#categoryNav a { height: 32px; width: 100px; color: #fff; display: inline-block; text-align: center; font-weight: bold;
|
||||||
font-size: 18px; line-height: 32px; }
|
font-size: 18px; line-height: 32px; }
|
||||||
div#categoryNav a:hover { color: #fff; background-color: #999; }
|
div#categoryNav a:hover { color: #fff; background-color: #999; }
|
||||||
div#categoryNav a:last-child { border-right: none; }
|
div#categoryNav a:last-child { border-right: none; }
|
||||||
|
@ -473,7 +471,7 @@ footer a { color: #333 !important; }
|
||||||
footer a:hover { color: #fffffe !important; }
|
footer a:hover { color: #fffffe !important; }
|
||||||
footer h2 { color: #fffffe; font: bold 28px 'Bebas', Arial, Geneva, sans-serif; }
|
footer h2 { color: #fffffe; font: bold 28px 'Bebas', Arial, Geneva, sans-serif; }
|
||||||
footer div section ul { list-style: none; }
|
footer div section ul { list-style: none; }
|
||||||
footer div section.splash { width: 240px; float: left; text-align: center; color: #fffffe; font-size: 12px;
|
footer div section.splash { width: 240px; float: left; text-align: center; color: #fffffe; font-size: 12px;
|
||||||
margin-right: 8px; margin-top: 4px; }
|
margin-right: 8px; margin-top: 4px; }
|
||||||
footer div section.splash a { border: none; color: #fffffe; padding-left: 0; font-size: 14px; font-weight: bold; }
|
footer div section.splash a { border: none; color: #fffffe; padding-left: 0; font-size: 14px; font-weight: bold; }
|
||||||
footer div section.splash a:hover { border: none; color: orange; }
|
footer div section.splash a:hover { border: none; color: orange; }
|
||||||
|
@ -482,11 +480,11 @@ footer div section.splash a:hover { border: none; color: orange; }
|
||||||
/* ------------------------------------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
section#SuperNav {
|
section#SuperNav {
|
||||||
width: 960px;
|
width: 960px;
|
||||||
color: #bbb;
|
color: #bbb;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
z-index: 4000;
|
z-index: 4000;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
background: #666;
|
background: #666;
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
line-height: 32px;
|
line-height: 32px;
|
||||||
|
@ -501,7 +499,7 @@ div.CrossNav {
|
||||||
height: 28px;
|
height: 28px;
|
||||||
float: right;
|
float: right;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
line-height: 11px;
|
line-height: 11px;
|
||||||
padding: 0px 12px;
|
padding: 0px 12px;
|
||||||
padding-left: 12px;
|
padding-left: 12px;
|
||||||
|
@ -548,7 +546,7 @@ div.CrossNav:hover ul {
|
||||||
|
|
||||||
div.CrossNav ul li.RPG { padding-bottom: 8px; cursor: pointer; }
|
div.CrossNav ul li.RPG { padding-bottom: 8px; cursor: pointer; }
|
||||||
div.CrossNav ul li.RPG:hover { color: white; }
|
div.CrossNav ul li.RPG:hover { color: white; }
|
||||||
div.CrossNav ul li.RPG a.RPGLink { color: #ff7e00; font-weight: bold; text-shadow: 0 1px 1px rgba(60, 60, 60, 0.3);
|
div.CrossNav ul li.RPG a.RPGLink { color: #ff7e00; font-weight: bold; text-shadow: 0 1px 1px rgba(60, 60, 60, 0.3);
|
||||||
font-size: 14px; line-height: 16px; margin-bottom: 4px; }
|
font-size: 14px; line-height: 16px; margin-bottom: 4px; }
|
||||||
div.CrossNav ul li.RPG:hover a.RPGLink { color: inherit; }
|
div.CrossNav ul li.RPG:hover a.RPGLink { color: inherit; }
|
||||||
|
|
||||||
|
@ -568,5 +566,5 @@ a.YouTube:hover { width: 32px; height: 32px;
|
||||||
.right { float: right; }
|
.right { float: right; }
|
||||||
.clear { clear: both; }
|
.clear { clear: both; }
|
||||||
|
|
||||||
input.tictac { background-color: #292b2f; font-weight: bold; margin: 0px !important; color: #f1f2f1;
|
input.tictac { background-color: #292b2f; font-weight: bold; margin: 0px !important; color: #f1f2f1;
|
||||||
padding: 0px !important; border-bottom: 4px solid #fffffe; }
|
padding: 0px !important; border-bottom: 4px solid #fffffe; }
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 143 KiB After Width: | Height: | Size: 143 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |