small bugfix, had a wrong name for a variable
[e-DoKo.git] / functions.php
index a52ad7a86cca139b4660d31f34c75b9ab4230977..390f6c9dde0cb8a05ca234296843a2e002752911 100644 (file)
@@ -1,21 +1,5 @@
 <?php
 
-/*
- * config 
- */
-
-$host  = "http://doko.nubati.net/database/index.php";
-$wiki  = "http://wiki.nubati.net/index.php?title=EmailDoko";
-$debug = 1;
-
-$last=-2;
-
-/*
- * end config
- */    
-
-
-/* helper function */
 function mymail($To,$Subject,$message)
 {  
   global $debug;
@@ -420,7 +404,7 @@ function display_news()
   global $wiki;
   echo "<div class=\"bug\"> ".
     "Please hit shift+reload.<br /><hr />".
-    "New Database backend, lost a few features on the way.<br /><hr />".
+    "Fixed a few bugs, comments might be working again <br /><hr />".
     "If you find more bugs, please list them in the <a href=\"".$wiki.
     "\">wiki</a>.</div>\n";
   return;
@@ -431,4 +415,39 @@ function display_cards($me,$myturn)
   return;
 }
 
+function return_timezone($offset)
+{
+  switch($offset)
+    {
+    case '1':
+      $zone = "Europe/Berlin";
+      break;
+    case '-8':
+      $zone = "America/Vancouver";
+      break;
+    case '13':
+      $zone = "Pacific/Auckland";
+      break;
+    default:
+      $zone = "Europe/London";
+    }
+  
+  return $zone;
+}
+
+function output_form_for_new_game()
+{
+?>
+    <p>Please add 4 names, please make sure that the names are correct! </p>
+       <form action="index.php" method="post">
+   Name:  <input name="PlayerA" type="text" size="10" maxlength="20" /> 
+   Name:  <input name="PlayerB" type="text" size="10" maxlength="20" /> 
+   Name:  <input name="PlayerC" type="text" size="10" maxlength="20" /> 
+   Name:  <input name="PlayerD" type="text" size="10" maxlength="20" /> 
+
+   <input type="submit" value="start game" />
+ </form>
+<?php
+}
+
 ?>
\ No newline at end of file