summaryrefslogtreecommitdiffstats
path: root/output.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-02-28 23:01:08 -0800
committerArun Persaud <arun@nubati.net>2008-02-28 23:07:46 -0800
commita35c7c7be53220ddeea8442396be0b4299589088 (patch)
tree4e781a76364447ab30ff1e605f687654a9ca353a /output.php
parenta5274cbae84c49977d6d1195d8c4e7a3d96391a1 (diff)
downloade-DoKo-a35c7c7be53220ddeea8442396be0b4299589088.tar.gz
e-DoKo-a35c7c7be53220ddeea8442396be0b4299589088.tar.bz2
e-DoKo-a35c7c7be53220ddeea8442396be0b4299589088.zip
BUGFIX: link to wiki wasn't in the config file, added link on the home page
* the home page now links to the wiki * the wiki-url is now part of the config file Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'output.php')
-rw-r--r--output.php56
1 files changed, 29 insertions, 27 deletions
diff --git a/output.php b/output.php
index cf84e8b..77ef0f6 100644
--- a/output.php
+++ b/output.php
@@ -239,33 +239,35 @@ function output_check_want_to_play($me)
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 />