summaryrefslogtreecommitdiffstats
path: root/pages/home.php
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2012-08-27 00:36:38 -0500
committerBlueRaja <BlueRaja.admin@gmail.com>2012-08-27 00:36:38 -0500
commit79d84f2040068424994eecf542fee3686849845c (patch)
treee785a3fc0280a61fade600e4ead8b649aaec14ec /pages/home.php
parent9f7611ee27cec55de6c697312389d8fd0bc072ff (diff)
downloadpathery-79d84f2040068424994eecf542fee3686849845c.tar.xz
Created remanants of a challenge page (loaded completely from the database). Kept the old challenge page, because Snap will probably want to reuse the Javascript.
Diffstat (limited to 'pages/home.php')
-rw-r--r--pages/home.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/pages/home.php b/pages/home.php
index 4e46ac6..89bc817 100644
--- a/pages/home.php
+++ b/pages/home.php
@@ -47,17 +47,6 @@ if (getCookie('pref_mute') != 'true') {
}
}
-
-function tutorialComplete($userID) {
- $sql = "SELECT * FROM `achievements`
- WHERE `type` = 32 AND `userID` = '$userID'";
- $result = mysql_query($sql);
- if (mysql_num_rows($result) >= 1)
- return true;
- else
- return false;
-}
-
?>
<body>
@@ -82,7 +71,7 @@ topbar($Links);
<?
if ($accepted) {
- if (tutorialComplete($userID) == false) {
+ if (!hasCompletedTutorial($userID)) {
echo "<center><a href='tutorial'>Complete the tutorial</a> to unlock a blue wall color:";
echo "<table><tr><td style='background-color:#4444ff;' class='grid_td_rocks'></td></tr></table></center><br />";
}