summaryrefslogtreecommitdiffstats
path: root/include/functions.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/functions.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/functions.php')
-rw-r--r--include/functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions.php b/include/functions.php
index 991d53d..28e5937 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -700,7 +700,7 @@ function display_table ()
if(!$debug)
echo " $name \n";
else
- echo " <a href=\"".$INDEX."?me=".$hash."\">$name</a>\n";
+ echo " <a href=\"".$INDEX."?action=game&me=".$hash."\">$name</a>\n";
/* add hints for poverty, wedding, solo, etc */
if($GT=="poverty" && $party=="re")
@@ -823,10 +823,10 @@ function display_user_menu()
while( $r = mysql_fetch_array($result,MYSQL_NUM))
{
- echo "<a href=\"".$INDEX."?me=".$r[0]."\">game ".DB_format_gameid($r[1])." </a><br />\n";
+ echo "<a href=\"".$INDEX."?action=game&me=".$r[0]."\">game ".DB_format_gameid($r[1])." </a><br />\n";
}
- echo "<hr /> <a href=\"".$INDEX."?new\">Start a new game</a>\n";
+ echo "<hr /> <a href=\"".$INDEX."?action=new\">Start a new game</a>\n";
echo "<hr /> <a href=\"".$STATS."\">Statistics</a>\n";