summaryrefslogtreecommitdiffstats
path: root/pages/home.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2012-11-29 15:00:11 -0800
committerPatrick Davison <snapwilliam@gmail.com>2012-11-29 15:00:11 -0800
commit1399d45c68e7d14fc1f3e8f2b5451669cce4ffa4 (patch)
treeab28080501f9dc8e4ffdc29742f45e2acf3fdcbf /pages/home.php
parent23b7ddabd4c2c6286a9b3ef0791befbc6f4ef89f (diff)
downloadpathery-1399d45c68e7d14fc1f3e8f2b5451669cce4ffa4.tar.xz
Lots of fixes and changes.
nofollow on login links. tutorial fix changed how $accepted works changed how $wallColor/Emblem works fixed a bug when multiple players scored at the same momment.
Diffstat (limited to 'pages/home.php')
-rw-r--r--pages/home.php26
1 files changed, 6 insertions, 20 deletions
diff --git a/pages/home.php b/pages/home.php
index ad9f74e..dbc1a01 100644
--- a/pages/home.php
+++ b/pages/home.php
@@ -1,33 +1,19 @@
<?php
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');
include_once ('./includes/db.inc.php');
include_once ('./includes/datas.php');
+htmlHeader(
+ array('stats'), 'Pathery',
+ 'Compete to create the longest path possible. New maps every day!',
+ array('scores', 'dateformat')
+);
$noteScript = '';
if ($accepted) {
- $userID = $_SESSION['userID'];
-
- // $sql = "
- // SELECT
- // userData.wallColor,
- // userData.wallEmblem
- // FROM `userData`
- // WHERE userID = '$userID' ";
- // $result = mysql_query($sql);
- // if ($result)
- // list($wallColor, $wallEmblem) = mysql_fetch_row($result);
- //global $wallColor;
- //echo ": Wallcolor: $wallColor :" ;
-
//$note = getNotified($userID);
$note = false;
if ($note !== false) {
@@ -268,7 +254,7 @@ $timerem = strtotime("tomorrow") - strtotime("now");
var stamp = hours + ":" + minutes;
//if (hours < 1 && minutes < 5)
stamp = stamp + ":" + seconds
- stamp = 'New maps ' + formatedTomorrow + '<br />' + stamp + ' Remain';
+ stamp = 'New maps ' + formatedTomorrow + '<br />Time remaining: ' + stamp;
document.getElementById("countdown").innerHTML = stamp;
if (totalSeconds <= 1 && userConfirm == true) {