summaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2012-07-31 22:34:08 -0700
committerPatrick Davison <snapwilliam@gmail.com>2012-07-31 22:34:08 -0700
commit2d290b23c402561ef30c1de665895c120dd79483 (patch)
tree8bde5ebd953f3dd375abe88e61e40571df313b1f /pages
parent628c2e712e39fe85762583fd1ddc12609746fc58 (diff)
downloadpathery-2d290b23c402561ef30c1de665895c120dd79483.tar.xz
Everything related to the scoreboard.
New feedback page. Changed the speed of the pauses on checkpoints during a path animation. Changed how notifications are recieved.
Diffstat (limited to 'pages')
-rw-r--r--pages/about.php3
-rw-r--r--pages/achievements.php6
-rw-r--r--pages/feedback.php71
-rw-r--r--pages/home.php43
4 files changed, 103 insertions, 20 deletions
diff --git a/pages/about.php b/pages/about.php
index b45883a..77d7712 100644
--- a/pages/about.php
+++ b/pages/about.php
@@ -10,6 +10,9 @@ topbar($Links);
?>
<div class="wrapper">
+ <h2>About Pathery</h2>
+ Send us feedback using the <a href='feedback'>Feedback Page</a>
+ <br /><br />
Email us: <a href='mailto:snap@pathery.com'>snap@pathery.com</a>
<br /><br />Follow us on twitter:
<a href="https://twitter.com/Pathery" class="twitter-follow-button" data-show-count="false">Follow @Pathery</a>
diff --git a/pages/achievements.php b/pages/achievements.php
index 4b508eb..76d993d 100644
--- a/pages/achievements.php
+++ b/pages/achievements.php
@@ -343,7 +343,7 @@ $UTotalSolutions = number_format($UTotalSolutions);
$uStats[1] = $UTotalMoves;
$uStats[2] = $UTotalSolutions;
-echo "<div class='wrapper' style='width:600px;'>";
+echo "<div class='wrapper' style='padding-left:30px; width:800px;'>";
if ($viewer)
echo "<center><h3>Viewing</h3></center>";
echo "
@@ -480,8 +480,8 @@ foreach($achievements as $aType => $a) {
$aTypeNames[1] = "Path Career Level $aLevel!";
$aTypeNames[2] = "Mazes Career Level $aLevel!";
- $aTypeNames[3] = "Maze Mastery Level $aLevel!";
- $aTypeNames[4] = "Champion Level $aLevel!";
+ $aTypeNames[3] = "<img src='../images/MedalSilverCAR.png' style='width:36px;height:36px;vertical-align:middle'>Maze Mastery Level $aLevel!";
+ $aTypeNames[4] = "<img src='../images/MedalGoldCAR.png' style='width:36px;height:36px;vertical-align:middle'>Champion Level $aLevel!";
$aTypeNames[32] = 'Tutorial Complete!';
$aTypeCurrency[1] = "total moves mazed";
diff --git a/pages/feedback.php b/pages/feedback.php
new file mode 100644
index 0000000..dfe022f
--- /dev/null
+++ b/pages/feedback.php
@@ -0,0 +1,71 @@
+<?php
+
+if (isset($_POST['regarding'])) {
+ $data = $_POST;
+ $data['session'] = print_r($_SESSION, true);
+ EmailError($data, "Pathery Feedback");
+ DoRedirect("Thank you for your feedback! <br />
+ I'm Reading this right now.<br />
+ Well, obviously I'm not reading it right NOW.<br />
+ I guess what I meant to say is that I'll be reading it soon.<br />
+ Wow this redirect is taking a while.. Sorry<br />
+ Are you still here?<br />
+ Something must be wrong, you should really have been redirected by now", $mydomain, 8);
+ exit;
+}
+
+htmlHeader(array(), 'Feedback & Contact', 'Send feedback or contact us.');
+?>
+
+<body>
+<?php
+topbar($Links);
+
+if (!$accepted) {
+ echo "
+ <div class='wrapper'>
+ Sorry, you must be logged in to use this.
+ <br />Please email us instead @ snap@pathery.com
+ </div>";
+ exit;
+}
+
+
+?>
+
+
+<div class="wrapper">
+<h2>Contact us</h2>
+<h3>Send us a line!</h3>
+
+<p>Thanks so much for taking the time to say hello!
+
+</p>
+
+<form action="feedback" method="post" name="feedback">
+
+<select id='Regarding' name='regarding'>
+ <option value='Feedback' selected='selected'>General Feedback</option>
+ <option value='Bug'>Bug report</option>
+ <option value='Suggestion'>Suggestion</option>
+ <option value='Hi'>Just saying Hi</option>
+ <option value='Other'>Other</option>
+</select>
+<br /><br />
+
+Title: <input type="text" size="25" maxlength="60" value="" name="title" class="forminput" /><br />
+
+<textarea name='body' rows="10" cols="30"></textarea><br />
+
+<input type="checkbox" name="emailback" value="yes" /> Please email me back
+<br /><br />
+<input type="submit" value="Submit" />
+
+</form>
+
+</div>
+
+
+<?php
+htmlFooter();
+?> \ No newline at end of file
diff --git a/pages/home.php b/pages/home.php
index b1335a4..c2a8e8a 100644
--- a/pages/home.php
+++ b/pages/home.php
@@ -1,5 +1,10 @@
<?php
-htmlHeader(array('stats'), 'Pathery', 'Compete to create the longest maze possible. 4 New maps every day at 9 PM Pacific');
+ob_start("ob_gzhandler");
+htmlHeader(
+ array('stats'), 'Pathery',
+ 'Compete to create the longest maze possible. 4 New maps every day at 9 PM Pacific',
+ array('scores', 'dateformat')
+);
include_once ('./includes/maps.php');
include_once ('./includes/mapoftheday.php');
@@ -100,6 +105,11 @@ topbar($Links);
<div class="wrapper">
+<center>Site update complete!
+<br />If you find any problems/bugs please report them using our <a href='feedback'>Feedback Page</a>
+<br />Thank you!!
+<br /><br />
+</center>
<?
if ($accepted) {
@@ -156,8 +166,14 @@ function displayMaze($motd, $mapType) {
$width = $map[0][0];
//data for the topscores
- $topscores = topScores($motd['id'], 30);
- $topscorediv = "<div id='$mapID,dspScore'>\n$topscores\n</div>";
+ //$topscores = topScores($motd['id'], 30);
+ //$topscorediv = "<div id='$mapID,dspScore'>\n$topscores\n</div>";
+
+ $topscorediv = "
+<div class='scoreContainer2' style='position:relative;' id='$mapID,dspScore'>
+</div>
+<script>scoresShowPage($mapID, 1);</script>
+ ";
$mysolution = '';
$mymoves = '';
@@ -174,16 +190,7 @@ function displayMaze($motd, $mapType) {
$r = "<div id=\"yms-$mapType\" class='hidden-maps'>";
$r .= " <div class='wrapper'>";
-
- // if ($width <= 16) {
- // $r .= ' <div class="col1">';
- // $r .= $topscorediv;
- // $r .= ' </div>';
-
- // $r .= ' <div class="col2">';
- // $r .= "<a href='javascript:requestSol(\"$mapID\");'>Load your best solution</a><br />";
- // $r .= DisplayMap($map, $mapID);
- // $r .= ' </div>';
+
$r .= " <div style='text-align: center;'>";
$r .= " <div style='display:inline-block;margin: 0 auto;text-align: left;'>";
$r .= " <a href='javascript:requestSol(\"$mapID\");'><strong>Load your best solution</strong></a><br />";
@@ -210,7 +217,7 @@ function displayMaze($motd, $mapType) {
$timerem = strtotime("tomorrow") - strtotime("now");
?>
- <div style='text-align: center; margin-top: 5px;'>
+ <div style='text-align: center; margin-top: 5px; position:fixed; bottom:20px; left:20px;'>
New maps in: <span id="countdown">00:00:00</span>
</div>
<script type="text/javascript">
@@ -238,7 +245,10 @@ $timerem = strtotime("tomorrow") - strtotime("now");
timerem = timerem%60;
var seconds = addZero(timerem);
- var stamp = hours + ":" + minutes + ":" + seconds;
+ var stamp = hours + ":" + minutes;
+ if (hours < 1 && minutes < 5)
+ stamp = stamp + ":" + seconds
+
document.getElementById("countdown").innerHTML = stamp;
if (totalSeconds <= 1 && userConfirm == true) {
userConfirm = confirm("It's Tomorrow Today! Go to new maps?")
@@ -291,13 +301,12 @@ function showStats(type) {
jmid[4] = '$jmid[4]';
";
?>
- updateScoresReq(jmid[type], type);
+ scoresRequestPage(jmid[type], currentPage[jmid[type]]);
}
showStats(1);
</script>
<script src="sounds/script/soundmanager.js"></script>
<script type="text/javascript">soundManagerInit();</script>
-
<?PHP echo $noteScript; ?>
<?php