echo " <input type=\"hidden\" name=\"setpref\" value=\"germancards\" />\n";
echo " <input type=\"submit\" class=\"submitbutton\" value=\"use german cards\" /> <br />\n";
echo "</form>\n";
- echo "<form action=\"index.php\" method=\"post\">\n";
- echo " <input type=\"hidden\" name=\"email\" value=\"".$email."\" />\n";
- echo " <input type=\"hidden\" name=\"password\" value=\"".$password."\" />\n";
- echo " <input type=\"hidden\" name=\"setpref\" value=\"ccemail\" />\n";
- if($PREF["ccemail"]=="no")
- echo " <input type=\"submit\" class=\"submitbutton\" value=\"CC me on final email\" /> <br />\n";
- else
- echo " <input type=\"submit\" class=\"submitbutton\" value=\"don't CC me on final email\" /> <br />\n";
- echo "</form>\n";
echo "</div>\n";
return;
}
function output_register()
{
echo "IMPORTANT: passwords are going over the net as clear text, so pick an easy password. No need to pick anything complicated here ;)<br /><br />";
- echo "TODO: convert timezone into a menu<br />\n";
- echo "TODO: figure out a way to handle passwords <br />\n";
+ echo "TODO: figure out a better way to handle passwords <br />\n";
?>
<form action="index.php" method="post">
<fieldset>
</tr><tr>
<td><label for="Rtimezone">Timezone:</label></td>
<td>
- <input type="text" id="Rtimezone" name="Rtimezone" size="4" maxsize="4" value="+1" />
+ <select id="Rtimezone" name="Rtimezone" size="1">
+ <option value="1">Berlin</option>
+ <option value="-8">Berkeley</option>
+ <option value="13">Wellington</option>
+ </select>
+ (If your timezone is not listed, just select whatever you want and email the admin your correct time zone.)
</td>
</tr><tr>
<td colspan="2"> <input type="submit" value="register" /></td>
return;
}
-function output_home_page($pre,$game,$done)
+function output_home_page($pre,$game,$done,$avgtime)
{
?>
<p> If you want to play a game of Doppelkopf, you found the right place ;) </p>
else if($done==1)
echo "One game has been completed on this server. </p>";
else
- echo "$done games have been completed on this server. </p>";
+ echo "$done games have been completed on this server. Average time of a game: $avgtime days</p>";
?>
<p> Please <a href="index.php?register">register</a>, in case you haven't done that yet <br />