summaryrefslogtreecommitdiffstats
path: root/include/user.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-04-26 13:01:41 -0700
committerArun Persaud <arun@nubati.net>2008-04-26 13:01:41 -0700
commit924f395a39eeccbcd54d540613e440cbedd6ba3d (patch)
treef78d88b5285bb2d0bcd87e7281411df18749943b /include/user.php
parent09515348107d9aab7823a12d31b082a2ebb75555 (diff)
downloade-DoKo-924f395a39eeccbcd54d540613e440cbedd6ba3d.tar.gz
e-DoKo-924f395a39eeccbcd54d540613e440cbedd6ba3d.tar.bz2
e-DoKo-924f395a39eeccbcd54d540613e440cbedd6ba3d.zip
CLEANUP: cleaned up index.php a bit more by introducing an 'action' variable
no more if, but one nice switch statement in index.php Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'include/user.php')
-rw-r--r--include/user.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/user.php b/include/user.php
index 0f67a68..8feac01 100644
--- a/include/user.php
+++ b/include/user.php
@@ -212,14 +212,14 @@ if(myisset("forgot"))
}
if($r[4]=='pre')
{
- echo "\n <span class=\"gamestatuspre\"><a href=\"".$INDEX."?me=".$r[0]."\">p </a></span> ";
+ echo "\n <span class=\"gamestatuspre\"><a href=\"".$INDEX."?action=game&me=".$r[0]."\">p </a></span> ";
}
else if ($r[4]=='gameover')
- echo "\n <span class=\"gamestatusover\"><a href=\"".$INDEX."?me=".$r[0]."\">F </a></span> ";
+ echo "\n <span class=\"gamestatusover\"><a href=\"".$INDEX."?action=game&me=".$r[0]."\">F </a></span> ";
else
{
- echo "\n <span class=\"gamestatusplay\"><a href=\"".$INDEX."?me=".$r[0]."\">P </a></span> ";
+ echo "\n <span class=\"gamestatusplay\"><a href=\"".$INDEX."?action=game&me=".$r[0]."\">P </a></span> ";
}
if($r[4] != 'gameover')
{
@@ -233,12 +233,12 @@ if(myisset("forgot"))
if(DB_get_reminder($r[3],$gameid)==0)
if(time()-strtotime($r[2]) > 60*60*24*7)
echo "".
- "<a href=\"$INDEX?remind=1&amp;me=".$r[0]."\">Send a reminder.</a>";
+ "<a href=\"$INDEX?action=reminder&amp;me=".$r[0]."\">Send a reminder.</a>";
echo "(it's $name's turn)\n";
};
if(time()-strtotime($r[2]) > 60*60*24*30)
echo "".
- "<a href=\"$INDEX?cancel=1&amp;me=".$r[0]."\">Cancel?</a>".
+ "<a href=\"$INDEX?action=cancel&amp;me=".$r[0]."\">Cancel?</a>".
" (clicking here is final and can't be restored)";
}