echo " <input type=\"hidden\" name=\"PlayerD\" value=\"$playerD\" />\n";
echo " <input type=\"hidden\" name=\"dullen\" value=\"".$RULES["dullen"]."\" />\n";
echo " <input type=\"hidden\" name=\"schweinchen\" value=\"".$RULES["schweinchen"]."\" />\n";
- echo " <input type=\"hidden\" name=\"call\" value=\"".$RULES["call"]."\" />\n";
+ echo " <input type=\"hidden\" name=\"callrule\" value=\"".$RULES["call"]."\" />\n";
echo " <input type=\"hidden\" name=\"followup\" value=\"$oldgameid\" />\n";
echo " <input type=\"submit\" value=\"keep playing\" />\n";
?>
<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">
<div class="table">
</p>
<p> Call Re/Contra, etc.:
<ul>
- <li><input type="radio" name="call" value="1st-own-card" checked="checked" />
+ <li><input type="radio" name="callrule" value="1st-own-card" checked="checked" />
Can call re/contra on the first <strong>own</strong> card played, 90 on the second, etc.</li>
- <li><input type="radio" name="call" value="5th-card" />
+ <li><input type="radio" name="callrule" value="5th-card" />
Can call re/contra until 5th card is played, 90 until 9th card is played, etc.</li>
- <li><input type="radio" name="call" value="9-cards" />
+ <li><input type="radio" name="callrule" value="9-cards" />
Can call re/contra until 5th card is played, 90 if player still has 9 cards, etc.</li>
</ul>
</p>
{
if( can_call(120,$me) )
echo " re/contra (120):".
- " <input type=\"radio\" name=\"call120\" value=\"yes\" /> <br />";
+ " <input type=\"radio\" name=\"call\" value=\"120\" /> <br />";
if( can_call(90,$me) )
echo " 90:".
- " <input type=\"radio\" name=\"call90\" value=\"yes\" /> <br />";
+ " <input type=\"radio\" name=\"call\" value=\"90\" /> <br />";
if( can_call(60,$me) )
echo " 60:".
- " <input type=\"radio\" name=\"call60\" value=\"yes\" /> <br />";
+ " <input type=\"radio\" name=\"call\" value=\"60\" /> <br />";
if( can_call(30,$me) )
echo " 30:".
- " <input type=\"radio\" name=\"call30\" value=\"yes\" /> <br />";
+ " <input type=\"radio\" name=\"call\" value=\"30\" /> <br />";
if( can_call(0,$me) )
echo " 0:".
- " <input type=\"radio\" name=\"call0\" value=\"yes\" /> <br />".
+ " <input type=\"radio\" name=\"call\" value=\"0\" /> <br />".
" no call:".
- " <input type=\"radio\" name=\"call0\" value=\"no\" /> <br />";
+ " <input type=\"radio\" name=\"call\" value=\"no\" /> <br />";
}
function output_home_page($pre,$game,$done,$avgtime)
{
-?>
- <p> If you want to play a game of Doppelkopf, you found the right place ;) </p>
-<?php
- if($pre == 0)
- echo "<p> At the moment there are no games that are being started ";
- else if($pre==1)
- echo "<p> At the moment there is one games that is being started ";
- else
- echo "<p> At the moment there are $pre games that are being started ";
-
- echo "and ";
-
- if($game==0)
- echo "zero games that are ongoing. ";
- else if($game==1)
- echo "one game that is ongoing. ";
- else
- echo "$game games that are ongoing. ";
-
- echo "<br />\n";
-
- if($done==0)
- echo "No game has been completed on this server. </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. Average time of a game: $avgtime days</p>";
+ global $WIKI;
+
+ echo"<p> If you want to play a game of Doppelkopf, you found the right place ;)".
+ " For more information please visit our <a href=\"$WIKI\">wiki</a>. </p>";
+
+ if($pre == 0)
+ echo "<p> At the moment there are no games that are being started ";
+ else if($pre==1)
+ echo "<p> At the moment there is one games that is being started ";
+ else
+ echo "<p> At the moment there are $pre games that are being started ";
+
+ echo "and ";
+
+ if($game==0)
+ echo "zero games that are ongoing. ";
+ else if($game==1)
+ echo "one game that is ongoing. ";
+ else
+ echo "$game games that are ongoing. ";
+
+ echo "<br />\n";
+
+ if($done==0)
+ echo "No game has been completed on this server. </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. Average time of a game: $avgtime days</p>";
?>
- <p> Please <a href="register.php">register</a>, in case you have not done that yet <br />
+ <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">
<head>
<title>e-Doko</title>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />
+ <link rel="shortcut icon" type="image/x-icon" href="pics/edoko-favicon.png" />
<link rel="stylesheet" type="text/css" href="css/standard.css" />
<script type="text/javascript">
function hl(num) {
<h1> Welcome to E-Doko <sup style="color:#888;">(beta)</sup> </h1>
</div>
<?php
- if(isset($_SESSION["name"]))
- {
- $name = $_SESSION["name"];
-
- /* logout info */
- echo "<div class=\"status\">\n";
- echo $name;
- echo " <a href=\"index.php?logout=1\">logout</a>\n";
- echo "</div>";
-
- /* last logon time */
- $myid = DB_get_userid_by_name($name);
- $zone = DB_get_user_timezone($myid);
- date_default_timezone_set($zone);
-
- $time = DB_get_user_timestamp($myid);
- $unixtime = strtotime($time);
-
- echo "<div class=\"lastlogin\">last login: ".date("r",$unixtime)."</div>";
- };
echo "<div class=\"main\">";
return;
echo "</div>\n\n";
echo "<div class=\"footer\">\n";
- echo " <p class=\"left\"> copyright 2006-2007 Arun Persaud <br />\n".
+ echo " <p class=\"left\"> copyright 2006-2008 Arun Persaud, Lance Thornton <br />\n".
" Verwendung der [deutschen] Kartenbilder mit Genehmigung <br />der Spielkartenfabrik Altenburg GmbH,(c) ASS Altenburger <br />\n".
" - ASS Altenburger Spielkarten - Spielkartenfabrik Altenburg GmbH <br />\n".
" a Carta Mundi Company Email: info@spielkarten.com Internet: www.spielkarten.com</p>\n";
return;
}
-function output_status($name)
+function output_status()
{
+ global $defaulttimezone;
+ if(isset($_SESSION["name"]))
+ {
+ $name = $_SESSION["name"];
+
+ /* logout info */
+ echo "\n<div class=\"status\">";
+ echo $name;
+ echo " <a href=\"index.php?logout=1\">logout</a>";
+ echo "</div>\n";
+
+ /* last logon time */
+ $myid = DB_get_userid("name",$name);
+ $zone = DB_get_user_timezone($myid);
+
+ $time = DB_get_user_timestamp($myid);
+ date_default_timezone_set($defaulttimezone);
+ $unixtime = strtotime($time);
+ date_default_timezone_set($zone);
+ echo "<div class=\"lastlogin\">last login: ".date("r",$unixtime)."</div>\n";
+ };
return;
}