some small changes
authorarun <arun@nubati.net>
Mon, 4 Dec 2006 16:59:49 +0000 (16:59 +0000)
committerarun <arun>
Mon, 4 Dec 2006 16:59:49 +0000 (16:59 +0000)
index.php
standard.css

index f2228988735f7ae6b926a33eb4b972afc453d8b7..6ab8f2e2fe65e2df05228022039f8a42751c2f5a 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
     "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
   <head>
-     <title>e-Doko</title>
+     <title>e-DoKo</title>
      <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />
      <link rel="stylesheet" type="text/css" href="standard.css" />     
      <script type="text/javascript">
@@ -33,7 +33,7 @@
   </head>
 <body onload="high_last();">
 <div class="header">
-<h1> Welcome to E-Doko </h1>
+<h1> Welcome to E-DoKo </h1>
 <?php
 
 /*
@@ -42,7 +42,7 @@
 
 $host  = "http://doko.nubati.net/index.php";
 $wiki  = "http://wiki.nubati.net/index.php?title=EmailDoko";
-$debug = 1;
+$debug = 0;
 
 $last=-2;
 
@@ -53,7 +53,6 @@ $last=-2;
 echo "</div>\n";
 
 /* end header */
-
                                        
 /* helper function */
 function mymail($To,$Subject,$message)
@@ -480,7 +479,6 @@ function save_status()
 
 /*****************  M A I N **************************/
 
-
 $history=array();
 
 /* check for status file and read it, if possible */
@@ -539,7 +537,7 @@ if( isset($_REQUEST["PlayerA"]) &&
     else
       die("no random file");
  
-    $randomNR = explode( ":", $random[2] );
+    $randomNR = explode( ":", $random[4] );
     
     /* write initial status into file */
     $output = fopen("status.txt","w");
@@ -955,7 +953,7 @@ else
                 
                 echo "    </div>\n  </li>\n";
               }
-            echo "</ul>\n";
+            echo "</ul> <hr />\n";
 
             echo "<div class=\"line\"></div>";
 
@@ -1083,7 +1081,14 @@ else
                 if(strlen($player[$hash[0]]["cards"]))
                   $history[] = "\n".$win.":\n"; /* not sure why I need the first \n here */
 
+                /* check if game is done */
+                $end = 1;
+                for($i=0;$i<4;$i++)
+                  if(strlen(trim($player[$hash[$i]]["cards"]))!=0)
+                    $end = 0;
+
                 /* email the player who needs to move next*/
+                if(!$end)
                 for($i=0;$i<4;$i++)
                   {
                     if((ereg("c",$player[$hash[$i]]["option"]) || $i==$win) )
index 8abd07ccb9782a598e01dac388c65667bbfce087..4e6650aa9e6e12ff1775045e74806e26f56f48df 100644 (file)
 
 
 ul.oldtrick {
+  position:relative;
   list-style:none;
   margin:3px;
   padding:0;
   /*background-color:yellow;*/
   text-align:center;
+
 }
 
 ul.oldtrick a { text-decoration:none; color:#000;}
 
 ul.oldtrick li {
   /*background-color:blue;*/
-  margin:0 0.5em;  
+  margin:0.2em 0.5em;  
   display:inline;
 }
 ul.oldtrick li:hover {
@@ -39,9 +41,9 @@ ul.oldtrick li div.table img.table {
   position:absolute;
   margin:0;
   padding:0;
-  top: 3em;
-  left: 4em;
-  height:24em;
+  top: 4em;
+  left: 3em;
+  height:22em;
   z-index:-2;
 }
 
@@ -58,8 +60,9 @@ ul.oldtrick li div.table {
   display:none;
 }
 
-/*ul.oldtrick li:hover div.table{ display:block; }
-*/
+hr {clear:both;}
+
+/*ul.oldtrick li:hover div.table{ display:block; }*/
 
 ul.oldtrick li div div.card0 {
   position:absolute;
@@ -172,7 +175,7 @@ ul.oldtrick li div div.card3 span span{
 .mycards {
   clear:both;
   margin:0;
-  margin-top:33em;
+  margin-top:38em;
   padding:0;
   border:1px solid red;
   background-color:yellow;