From: Arun Persaud
Date: Fri, 29 Feb 2008 07:01:08 +0000 (-0800)
Subject: BUGFIX: link to wiki wasn't in the config file, added link on the home page
X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a35c7c7be53220ddeea8442396be0b4299589088;p=e-DoKo.git
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
---
diff --git a/config.php_template b/config.php_template
index 0ccd540..29212ca 100644
--- a/config.php_template
+++ b/config.php_template
@@ -31,6 +31,9 @@
$INDEX = "/index.php";
$HOST = "http://www.example.com";
+ /* point this to a Wiki that explains the rules, etc (or use this one)*/
+ $WIKI = "http://wiki.nubati.net/index.php?title=EmailDoko";
+
/* the default timezone for you domain */
$defaulttimezone = date_default_timezone_get();
?>
\ No newline at end of file
diff --git a/functions.php b/functions.php
index 0ce3104..5adf4fa 100644
--- a/functions.php
+++ b/functions.php
@@ -785,7 +785,7 @@ function display_table ()
function display_user_menu()
{
- global $wiki,$myid,$INDEX,$STATS;
+ global $WIKI,$myid,$INDEX,$STATS;
echo "\n";
return;
}
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)
{
-?>
- If you want to play a game of Doppelkopf, you found the right place ;)
- At the moment there are no games that are being started ";
- else if($pre==1)
- echo " At the moment there is one games that is being started ";
- else
- echo "
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 "
\n";
-
- if($done==0)
- echo "No game has been completed on this server.
";
- else if($done==1)
- echo "One game has been completed on this server.
";
- else
- echo "$done games have been completed on this server. Average time of a game: $avgtime days";
+ global $WIKI;
+
+ echo" If you want to play a game of Doppelkopf, you found the right place ;)".
+ " For more information please visit our wiki.
";
+
+ if($pre == 0)
+ echo " At the moment there are no games that are being started ";
+ else if($pre==1)
+ echo "
At the moment there is one games that is being started ";
+ else
+ echo "
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 "
\n";
+
+ if($done==0)
+ echo "No game has been completed on this server.
";
+ else if($done==1)
+ echo "One game has been completed on this server. ";
+ else
+ echo "$done games have been completed on this server. Average time of a game: $avgtime days";
?>
Please register, in case you have not done that yet