summaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/embed.php114
-rw-r--r--pages/home.php5
-rw-r--r--pages/tutorial.php5
3 files changed, 2 insertions, 122 deletions
diff --git a/pages/embed.php b/pages/embed.php
index 7d7e615..ba3ca3d 100644
--- a/pages/embed.php
+++ b/pages/embed.php
@@ -1,113 +1 @@
-<?PHP
-htmlHeader();
-?>
-
-<body>
-<script type="text/javascript" src="sounds/script/soundmanager.js"></script>
-
-<?php
-include('./includes/maps.php');
-include('./includes/mapoftheday.php');
-
-include('./includes/datas.php');
-
-
-
-//Get the current day as int.
-$numday = date('w');
-$numday = intval($numday);
-switch ($numday) {
- case 0:
- $mapstyle = 'Thirty';
- break;
- case 1:
- $mapstyle = 'Simple';
- break;
- case 2:
- $mapstyle = "ABC's";
- break;
- case 3:
- $mapstyle = 'Teleport Madness';
- break;
- case 4:
- $mapstyle = 'Rocky Maze';
- break;
- case 5: //Friday
- $mapstyle = 'Side to Side';
- break;
- case 6: //Saturday
- $mapstyle = "Seeing Double";
- break;
-}
-
-$normal = 'Normal';
-$easy = 'Simple';
-$hard = 'Complex';
-
-$today = date('l');
-//if ($today == 'Sunday' OR $today == 'Saturday')
- //$today = 'Weekend Map';
-//else
- $today .= "'s";
-$special = "$today $mapstyle";
-
-switch ($_GET['maptype']) {
- case "normal":
- case "2":
- $maptype = 2;
- $normal = '<b>Normal</b>';
- break;
-
- case "hard":
- case "3":
- $maptype = 3;
- $hard = '<b>Complex</b>';
- break;
-
- case "day":
- case "4":
- $maptype = 4;
- $special = "<b>$special</b>";
- break;
-
- case "easy":
- case "1":
- default:
- $maptype = 1;
- $easy = '<b>Simple</b>';
-}
-
-$motd = MapOfTheDay($maptype);
-$mapID = $motd['id'];
-$map = $motd['map'];
-$userID = $_SESSION['userID'];
-$date = date("m-d-y");
-//$mergesolution = mergeMapSolution($map, $mysolution);
-$topscores = topScores($motd['id'], 30);
-$topscorediv = "<div id='$mapID,dspScore'>\n$topscores\n</div>";
-$mergesolution = $map;
-
-?>
-<div class="col2" style="text-align: center">
-<?
-echo "$date: <a href='embed?maptype=easy'>Easy</a> | ";
-echo "<a href='embed?maptype=normal'>Normal</a> | ";
-echo "<a href='embed?maptype=hard'>Hard</a> | ";
-echo "<a href='embed?maptype=day'>Special</a>";
-
-echo DisplayMap($mergesolution, $mapID);
-
-$mysolution = getSolution($userID, $mapID);
-$solutiondiv .= "<div id='mapsol' style='visibility:hidden;display:none'>";
-//$solutiondiv .= "<div id='mapsol'>";
-$solutiondiv .= $mapID.":".$mysolution;
-$solutiondiv .= '</div>';
-
-echo $solutiondiv;
-?>
-<a href="http://www.pathery.com">www.pathery.com</a>
-</div>
-<script type="text/javascript">soundManagerInit();</script>
-
-</body>
-</html>
+Service no longer available. \ No newline at end of file
diff --git a/pages/home.php b/pages/home.php
index f8841b5..cc94068 100644
--- a/pages/home.php
+++ b/pages/home.php
@@ -196,11 +196,6 @@ function displayMaze($motd, $mapType) {
//Gather data for map;
$mapID = $motd['id'];
$map = $motd['map'];
- $width = $map[0][0];
-
- //data for the topscores
- //$topscores = topScores($motd['id'], 30);
- //$topscorediv = "<div id='$mapID,dspScore'>\n$topscores\n</div>";
$topscorediv = "
<div class='scoreContainer2' style='position:relative;' id='$mapID,dspScore'>
diff --git a/pages/tutorial.php b/pages/tutorial.php
index 88095da..10e5372 100644
--- a/pages/tutorial.php
+++ b/pages/tutorial.php
@@ -1,8 +1,5 @@
<?php
-if ($request == 'tutorial')
- htmlHeader(array('tutorial'), 'Pathery Tutorial', 'How to play Pathery', array('scores') );
-else
- htmlHeader(array('tutorial'), 'Pathery', 'Compete to create the longest maze possible. 4 New maps every day at 9 PM Pacific', array('scores') );
+htmlHeader(array('tutorial'), 'Pathery', 'Compete to create the longest maze possible. 4 New maps every day at 9 PM Pacific', array('scores') );
?>
<body>