From 7e3ab267d9e74856ed0cafffcdab34fd40b48228 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Thu, 17 Jan 2013 21:41:00 -0800 Subject: Adjusted / added footerlinks. --- includes/datas.php | 2 +- index.php | 17 +++++++++++++++-- pages/challengelist.php | 2 +- 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 "
Please login to do the challenges!
"; + echo "
Please login to do the challenges!
"; echo "

"; htmlFooter(); return; -- cgit v1.2.3