summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-01-17 21:41:00 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-01-17 21:41:00 -0800
commit7e3ab267d9e74856ed0cafffcdab34fd40b48228 (patch)
treed77388f36e57f77a94023f0c11feb3eddcad692d
parentf4c16b40f54ce14de3ab30637269f74908149dd0 (diff)
downloadpathery-7e3ab267d9e74856ed0cafffcdab34fd40b48228.tar.xz
Adjusted / added footerlinks.
-rw-r--r--includes/datas.php2
-rw-r--r--index.php17
-rw-r--r--pages/challengelist.php2
3 files changed, 17 insertions, 4 deletions
diff --git a/includes/datas.php b/includes/datas.php
index 4415eb4..8ae5d5f 100644
--- a/includes/datas.php
+++ b/includes/datas.php
@@ -582,7 +582,7 @@ function getAchievementCurrency($userID, $aType) {
}
if ($sql == '')
return false;
- $result = mysql_query($sql);
+ $result = mysql_query($sql) OR die("SQL query failed; $sql");
if (mysql_num_rows($result) == 1)
list($r) = mysql_fetch_row($result);
diff --git a/index.php b/index.php
index 6117d9f..34048b9 100644
--- a/index.php
+++ b/index.php
@@ -40,13 +40,26 @@ if ($accepted) {
}
// Footer Links
-$footerLinks['tutorial'] = "Tutorial";
-$footerLinks['members'] = "Member List";
+//ROW 1
+if ($accepted) {
+ $linkname = 'achievements?id='.$_SESSION['userID'];
+ $footerLinks[$linkname] = "Achievements";
+} else
+ $footerLinks['tutorial'] = "Tutorial";
$footerLinks['faq'] = "FAQ";
+$footerLinks['members'] = "Member List";
+
+//ROW 2
+$footerLinks['chat'] = "Chat";
+$footerLinks['leaderboard'] = "Scores";
$footerLinks['about'] = "About Us";
+
+//ROW 3
+$footerLinks['challengelist'] = "Challenges";
$footerLinks['feedback'] = "Contact Us";
$footerLinks['#top'] = "Back to Top";
+
// if ($accepted) {
// $footerLinks['cp'] = "Settings";
// }
diff --git a/pages/challengelist.php b/pages/challengelist.php
index ca9fe46..fcc384b 100644
--- a/pages/challengelist.php
+++ b/pages/challengelist.php
@@ -20,7 +20,7 @@ topbar($Links);
//Check that the user is allowed to do the challenges
if (!$accepted) {
- echo "<center>Please <a href='login'>login</a> to do the challenges!</center>";
+ echo "<center>Please <a href='javascript:showSignin();'>login</a> to do the challenges!</center>";
echo "<br /><br /></div>";
htmlFooter();
return;