summaryrefslogtreecommitdiffstats
path: root/pages/home.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2011-12-13 15:09:31 -0800
committerPatrick Davison <snapwilliam@gmail.com>2011-12-13 15:09:31 -0800
commitc53c6eb6476ab7f9ef1f080eaa34ec0d076d5ea3 (patch)
treec4b4b75e9f4cdfacd8408ab4029af8a2bdb375e7 /pages/home.php
parentfbae790d584f2e37c001f793f9532387d601dbbe (diff)
downloadpathery-c53c6eb6476ab7f9ef1f080eaa34ec0d076d5ea3.tar.xz
Clean URL's
Diffstat (limited to 'pages/home.php')
-rw-r--r--pages/home.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/pages/home.php b/pages/home.php
index 815f8fd..e347d54 100644
--- a/pages/home.php
+++ b/pages/home.php
@@ -36,34 +36,34 @@ switch ($numday) {
break;
}
-$easy = '<a href="?page=home&amp;maptype=easy">Simple</a>';
-$normal = '<a href="?page=home&amp;maptype=normal">Normal</a>';
-$hard = '<a href="?page=home&amp;maptype=hard">Complex</a>';
+$easy = '<a href="home?maptype=easy">Simple</a>';
+$normal = '<a href="home?maptype=normal">Normal</a>';
+$hard = '<a href="home?maptype=hard">Complex</a>';
$today = date('l') . "'s";
-$special = "<a href=\"?page=home&amp;maptype=day\">$today $mapstyle</a>";
+$special = "<a href=\"home?maptype=day\">$today $mapstyle</a>";
switch ($_GET['maptype']) {
case "easy":
case "1":
default:
$maptype = 1;
- $easy = '<a href="?page=home&amp;maptype=easy" class="selected">Simple</a>';
+ $easy = '<a href="home?maptype=easy" class="selected">Simple</a>';
break;
case "normal":
case "2":
$maptype = 2;
- $normal = '<a href="?page=home&amp;maptype=normal" class="selected">Normal</a>';
+ $normal = '<a href="home?maptype=normal" class="selected">Normal</a>';
break;
case "hard":
case "3":
$maptype = 3;
- $hard = '<a href="?page=home&amp;maptype=hard" class="selected">Complex</a>';
+ $hard = '<a href="home?maptype=hard" class="selected">Complex</a>';
break;
case "day":
case "4":
$maptype = 4;
- $special = "<a href=\"?page=home&amp;maptype=day\" class=\"selected\">$today $mapstyle</a>";
+ $special = "<a href=\"home?maptype=day\" class=\"selected\">$today $mapstyle</a>";
break;
}
@@ -106,7 +106,7 @@ $mergesolution = $map;
if ($_SESSION['accepted'] != 1) {
echo "
<div style='text-align: center; margin-top: 20px'>
- <a href='?page=login'>Sign in</a> to have your best solution saved.
+ <a href='login'>Sign in</a> to have your best solution saved.
</div>
";
}