diff options
author | Arun Persaud <arun@nubati.net> | 2008-04-26 13:01:41 -0700 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2008-04-26 13:01:41 -0700 |
commit | 924f395a39eeccbcd54d540613e440cbedd6ba3d (patch) | |
tree | f78d88b5285bb2d0bcd87e7281411df18749943b /include/output.php | |
parent | 09515348107d9aab7823a12d31b082a2ebb75555 (diff) | |
download | e-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/output.php')
-rw-r--r-- | include/output.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/output.php b/include/output.php index 1637603..b22b6ef 100644 --- a/include/output.php +++ b/include/output.php @@ -56,7 +56,7 @@ function output_form_for_new_game($names) <h2> Players </h2> <p>Please select four players (or use the randomly pre-selected names)</p> <p>Remember: you need to be one of the players ;) </p> - <form action="index.php" method="post"> + <form action="index.php?action=new" method="post"> <div class="table"> <img src="pics/table.png" alt="table" /> @@ -278,7 +278,7 @@ function output_home_page($pre,$game,$done,$avgtime) <p> Please <a href="./register.php">register</a>, in case you have not done that yet <br /> or login with you email-address or name and password here: </p> - <form action="index.php" method="post"> + <form action="index.php?action=login" method="post"> <fieldset> <legend>Login</legend> <table> @@ -383,7 +383,7 @@ function output_status() /* logout info */ echo "\n<div class=\"status\">"; echo $name; - echo " <a href=\"index.php?logout=1\">logout</a>"; + echo " <a href=\"index.php?action=logout\">logout</a>"; echo "</div>\n"; /* last logon time */ |