diff options
-rw-r--r-- | index.php | 19 | ||||
-rw-r--r-- | standard.css | 17 |
2 files changed, 22 insertions, 14 deletions
@@ -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) ) diff --git a/standard.css b/standard.css index 8abd07c..4e6650a 100644 --- a/standard.css +++ b/standard.css @@ -17,18 +17,20 @@ 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; |